first commit
This commit is contained in:
138
.editorconfig
Normal file
138
.editorconfig
Normal file
@@ -0,0 +1,138 @@
|
|||||||
|
root = true
|
||||||
|
# top-most EditorConfig file
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
|
||||||
|
# 4 space indentation
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
||||||
|
|
||||||
|
# disable redundant style warnings
|
||||||
|
|
||||||
|
# Microsoft .NET properties
|
||||||
|
csharp_indent_braces = false
|
||||||
|
csharp_new_line_before_catch = true
|
||||||
|
csharp_new_line_before_else = true
|
||||||
|
csharp_new_line_before_finally = true
|
||||||
|
csharp_new_line_before_members_in_object_initializers = false
|
||||||
|
csharp_new_line_before_open_brace = all
|
||||||
|
csharp_preferred_modifier_order = public, private, protected, internal, new, abstract, virtual, sealed, override, static, readonly, extern, unsafe, volatile, async:suggestion
|
||||||
|
csharp_style_var_elsewhere = true:suggestion
|
||||||
|
csharp_style_var_for_built_in_types = true:suggestion
|
||||||
|
csharp_style_var_when_type_is_apparent = true:suggestion
|
||||||
|
dotnet_code_quality_unused_parameters = non_public
|
||||||
|
dotnet_naming_rule.event_rule.severity = warning
|
||||||
|
dotnet_naming_rule.event_rule.style = on_upper_camel_case_style
|
||||||
|
dotnet_naming_rule.event_rule.symbols = event_symbols
|
||||||
|
dotnet_naming_rule.private_constants_rule.severity = warning
|
||||||
|
dotnet_naming_rule.private_constants_rule.style = upper_camel_case_style
|
||||||
|
dotnet_naming_rule.private_constants_rule.symbols = private_constants_symbols
|
||||||
|
dotnet_naming_rule.private_instance_fields_rule.severity = warning
|
||||||
|
dotnet_naming_rule.private_instance_fields_rule.style = lower_camel_case_style
|
||||||
|
dotnet_naming_rule.private_instance_fields_rule.symbols = private_instance_fields_symbols
|
||||||
|
dotnet_naming_rule.private_static_fields_rule.severity = warning
|
||||||
|
dotnet_naming_rule.private_static_fields_rule.style = upper_camel_case_style
|
||||||
|
dotnet_naming_rule.private_static_fields_rule.symbols = private_static_fields_symbols
|
||||||
|
dotnet_naming_rule.private_static_readonly_rule.severity = warning
|
||||||
|
dotnet_naming_rule.private_static_readonly_rule.style = upper_camel_case_style
|
||||||
|
dotnet_naming_rule.private_static_readonly_rule.symbols = private_static_readonly_symbols
|
||||||
|
dotnet_naming_style.lower_camel_case_style.capitalization = camel_case
|
||||||
|
dotnet_naming_style.on_upper_camel_case_style.capitalization = pascal_case
|
||||||
|
dotnet_naming_style.on_upper_camel_case_style.required_prefix = On
|
||||||
|
dotnet_naming_style.upper_camel_case_style.capitalization = pascal_case
|
||||||
|
dotnet_naming_symbols.event_symbols.applicable_accessibilities = *
|
||||||
|
dotnet_naming_symbols.event_symbols.applicable_kinds = event
|
||||||
|
dotnet_naming_symbols.private_constants_symbols.applicable_accessibilities = private
|
||||||
|
dotnet_naming_symbols.private_constants_symbols.applicable_kinds = field
|
||||||
|
dotnet_naming_symbols.private_constants_symbols.required_modifiers = const
|
||||||
|
dotnet_naming_symbols.private_instance_fields_symbols.applicable_accessibilities = private
|
||||||
|
dotnet_naming_symbols.private_instance_fields_symbols.applicable_kinds = field
|
||||||
|
dotnet_naming_symbols.private_static_fields_symbols.applicable_accessibilities = private
|
||||||
|
dotnet_naming_symbols.private_static_fields_symbols.applicable_kinds = field
|
||||||
|
dotnet_naming_symbols.private_static_fields_symbols.required_modifiers = static
|
||||||
|
dotnet_naming_symbols.private_static_readonly_symbols.applicable_accessibilities = private
|
||||||
|
dotnet_naming_symbols.private_static_readonly_symbols.applicable_kinds = field
|
||||||
|
dotnet_naming_symbols.private_static_readonly_symbols.required_modifiers = static,readonly
|
||||||
|
dotnet_style_parentheses_in_arithmetic_binary_operators =always_for_clarity:suggestion
|
||||||
|
dotnet_style_parentheses_in_other_binary_operators =always_for_clarity:suggestion
|
||||||
|
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:suggestion
|
||||||
|
dotnet_style_predefined_type_for_member_access = true:suggestion
|
||||||
|
dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion
|
||||||
|
dotnet_style_parentheses_in_other_operators=always_for_clarity:silent
|
||||||
|
dotnet_style_object_initializer = false
|
||||||
|
csharp_space_between_method_call_empty_parameter_list_parentheses = false
|
||||||
|
csharp_space_between_method_call_parameter_list_parentheses = false
|
||||||
|
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
|
||||||
|
csharp_space_between_empty_square_brackets = false
|
||||||
|
csharp_space_before_semicolon_in_for_statement = false
|
||||||
|
csharp_space_before_open_square_brackets = false
|
||||||
|
csharp_space_before_comma = false
|
||||||
|
csharp_space_after_keywords_in_control_flow_statements = true
|
||||||
|
csharp_space_after_comma = true
|
||||||
|
csharp_space_after_cast = false
|
||||||
|
csharp_space_around_binary_operators = before_and_after
|
||||||
|
csharp_space_between_method_declaration_name_and_open_parenthesis = false
|
||||||
|
csharp_space_between_method_declaration_parameter_list_parentheses = false
|
||||||
|
csharp_space_between_parentheses = none
|
||||||
|
csharp_space_between_square_brackets = false
|
||||||
|
|
||||||
|
# ReSharper properties
|
||||||
|
resharper_align_linq_query = true
|
||||||
|
resharper_align_multiline_argument = true
|
||||||
|
resharper_align_multiline_calls_chain = true
|
||||||
|
resharper_align_multiline_expression = true
|
||||||
|
resharper_align_multiline_extends_list = true
|
||||||
|
resharper_align_multiline_for_stmt = true
|
||||||
|
resharper_align_multline_type_parameter_constrains = true
|
||||||
|
resharper_align_multline_type_parameter_list = true
|
||||||
|
resharper_apply_on_completion = true
|
||||||
|
resharper_auto_property_can_be_made_get_only_global_highlighting = none
|
||||||
|
resharper_auto_property_can_be_made_get_only_local_highlighting = none
|
||||||
|
resharper_autodetect_indent_settings = true
|
||||||
|
resharper_braces_for_ifelse = required_for_multiline
|
||||||
|
resharper_can_use_global_alias = false
|
||||||
|
resharper_csharp_align_multiline_parameter = true
|
||||||
|
resharper_csharp_align_multiple_declaration = true
|
||||||
|
resharper_csharp_empty_block_style = together_same_line
|
||||||
|
resharper_csharp_int_align_comments = true
|
||||||
|
resharper_csharp_new_line_before_while = true
|
||||||
|
resharper_csharp_wrap_after_declaration_lpar = true
|
||||||
|
resharper_enforce_line_ending_style = true
|
||||||
|
resharper_member_can_be_private_global_highlighting = none
|
||||||
|
resharper_member_can_be_private_local_highlighting = none
|
||||||
|
resharper_new_line_before_finally = false
|
||||||
|
resharper_place_accessorholder_attribute_on_same_line = false
|
||||||
|
resharper_place_field_attribute_on_same_line = false
|
||||||
|
resharper_show_autodetect_configure_formatting_tip = false
|
||||||
|
resharper_use_indent_from_vs = false
|
||||||
|
|
||||||
|
# ReSharper inspection severities
|
||||||
|
resharper_arrange_missing_parentheses_highlighting = hint
|
||||||
|
resharper_arrange_redundant_parentheses_highlighting = hint
|
||||||
|
resharper_arrange_this_qualifier_highlighting = hint
|
||||||
|
resharper_arrange_type_member_modifiers_highlighting = hint
|
||||||
|
resharper_arrange_type_modifiers_highlighting = hint
|
||||||
|
resharper_built_in_type_reference_style_for_member_access_highlighting = hint
|
||||||
|
resharper_built_in_type_reference_style_highlighting = none
|
||||||
|
resharper_foreach_can_be_converted_to_query_using_another_get_enumerator_highlighting = none
|
||||||
|
resharper_foreach_can_be_partly_converted_to_query_using_another_get_enumerator_highlighting = none
|
||||||
|
resharper_invert_if_highlighting = none
|
||||||
|
resharper_loop_can_be_converted_to_query_highlighting = none
|
||||||
|
resharper_method_has_async_overload_highlighting = none
|
||||||
|
resharper_private_field_can_be_converted_to_local_variable_highlighting = none
|
||||||
|
resharper_redundant_base_qualifier_highlighting = none
|
||||||
|
resharper_suggest_var_or_type_built_in_types_highlighting = hint
|
||||||
|
resharper_suggest_var_or_type_elsewhere_highlighting = hint
|
||||||
|
resharper_suggest_var_or_type_simple_types_highlighting = hint
|
||||||
|
resharper_unused_auto_property_accessor_global_highlighting = none
|
||||||
|
csharp_style_deconstructed_variable_declaration=true:silent
|
||||||
|
|
||||||
|
[*.{appxmanifest,asax,ascx,aspx,axaml,axml,build,c,c++,cc,cginc,compute,config,cp,cpp,cs,cshtml,csproj,css,cu,cuh,cxx,dbml,discomap,dtd,h,hh,hlsl,hlsli,hlslinc,hpp,htm,html,hxx,inc,inl,ino,ipp,js,json,jsproj,jsx,lsproj,master,mpp,mq4,mq5,mqh,njsproj,nuspec,paml,proj,props,proto,razor,resjson,resw,resx,skin,StyleCop,targets,tasks,tpp,ts,tsx,usf,ush,vb,vbproj,xaml,xamlx,xml,xoml,xsd}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
||||||
|
tab_width = 4
|
||||||
|
dotnet_style_parentheses_in_other_operators=always_for_clarity:silent
|
||||||
57
.github/workflows/release.yml
vendored
Normal file
57
.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
name: Create Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "*.*.*.*"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
DALAMUD_HOME: /tmp/dalamud
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up .NET
|
||||||
|
uses: actions/setup-dotnet@v3
|
||||||
|
with:
|
||||||
|
dotnet-version: 9.0.x
|
||||||
|
|
||||||
|
- name: Download Dalamud Latest
|
||||||
|
run: |
|
||||||
|
wget https://goatcorp.github.io/dalamud-distrib/latest.zip -O ${{ env.DALAMUD_HOME }}.zip
|
||||||
|
unzip ${{ env.DALAMUD_HOME }}.zip -d ${{ env.DALAMUD_HOME }}
|
||||||
|
|
||||||
|
- name: Restore Project
|
||||||
|
run: dotnet restore
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
$ver = '${{ github.ref_name }}'
|
||||||
|
dotnet build --no-restore --configuration Release -p:Version=$ver -p:AssemblyVersion=$ver -p:FileVersion=$ver
|
||||||
|
|
||||||
|
- name: Create Release
|
||||||
|
uses: actions/create-release@v1
|
||||||
|
id: create_release
|
||||||
|
with:
|
||||||
|
draft: false
|
||||||
|
prerelease: false
|
||||||
|
release_name: ${{ github.ref_name }}
|
||||||
|
tag_name: ${{ github.ref_name }}
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
|
|
||||||
|
- name: Upload Release Asset with curl
|
||||||
|
run: |
|
||||||
|
curl \
|
||||||
|
-X POST \
|
||||||
|
-H "Authorization: token ${{ gitea.token }}" \
|
||||||
|
-H "Content-Type: application/zip" \
|
||||||
|
--data-binary @CharacterSelectPlugin/bin/Release/CharacterSelectPlugin/latest.zip \
|
||||||
|
"${{ steps.create_release.outputs.upload_url }}?name=latest.zip"
|
||||||
|
|
||||||
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
.vs/
|
||||||
|
obj/
|
||||||
|
bin/
|
||||||
|
*.user
|
||||||
BIN
CharacterSelectPlugin/Assets/Default.png
Normal file
BIN
CharacterSelectPlugin/Assets/Default.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.1 MiB |
BIN
CharacterSelectPlugin/Assets/Icon.png
Normal file
BIN
CharacterSelectPlugin/Assets/Icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 38 KiB |
142
CharacterSelectPlugin/Character.cs
Normal file
142
CharacterSelectPlugin/Character.cs
Normal file
@@ -0,0 +1,142 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Numerics;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace CharacterSelectPlugin
|
||||||
|
{
|
||||||
|
[Serializable]
|
||||||
|
public class Character
|
||||||
|
{
|
||||||
|
public string Name { get; set; }
|
||||||
|
public string Macros { get; set; } = ""; // Default to empty instead of null
|
||||||
|
public string? ImagePath { get; set; }
|
||||||
|
public List<CharacterDesign> Designs { get; set; }
|
||||||
|
public Vector3 NameplateColor { get; set; } = new Vector3(1.0f, 1.0f, 1.0f); // Default to white
|
||||||
|
public string PenumbraCollection { get; set; } = "";
|
||||||
|
public string GlamourerDesign { get; set; } = "";
|
||||||
|
public string CustomizeProfile { get; set; } = "";
|
||||||
|
public bool IsFavorite { get; set; } = false; // Allows favouriting
|
||||||
|
public DateTime DateAdded { get; set; } = DateTime.Now; // Tracks when the character was added
|
||||||
|
public int SortOrder { get; set; } = 0; // Tracks manual drag-drop order
|
||||||
|
public string HonorificTitle { get; set; } = "";
|
||||||
|
public string HonorificPrefix { get; set; } = "";
|
||||||
|
public string HonorificSuffix { get; set; } = "";
|
||||||
|
public Vector3 HonorificColor { get; set; } = new Vector3(1.0f, 1.0f, 1.0f); // Default white
|
||||||
|
public Vector3 HonorificGlow { get; set; } = new Vector3(1.0f, 1.0f, 1.0f); // Default white
|
||||||
|
public string MoodlePreset { get; set; } = ""; // MOODLES
|
||||||
|
public byte IdlePoseIndex { get; set; } = 0; // Idles!
|
||||||
|
public byte SitPoseIndex { get; set; } = 255;
|
||||||
|
public byte GroundSitPoseIndex { get; set; } = 255;
|
||||||
|
public byte DozePoseIndex { get; set; } = 255;
|
||||||
|
public string? Pronouns { get; set; }
|
||||||
|
public string? Gender { get; set; }
|
||||||
|
public string? Age { get; set; }
|
||||||
|
public string? Race { get; set; }
|
||||||
|
public string? SexualOrientation { get; set; }
|
||||||
|
public string? RelationshipStatus { get; set; }
|
||||||
|
public string? Occupation { get; set; }
|
||||||
|
public string? Abilities { get; set; }
|
||||||
|
public string? Bio { get; set; }
|
||||||
|
public string? RpTags { get; set; }
|
||||||
|
public string? RpImagePath { get; set; } // Optional override image
|
||||||
|
public RPProfile RPProfile { get; set; } = new();
|
||||||
|
public string? LastInGameName { get; set; }
|
||||||
|
public List<string> Tags { get; set; } = new();
|
||||||
|
[JsonIgnore]
|
||||||
|
public string Tag
|
||||||
|
{
|
||||||
|
get => Tags.FirstOrDefault() ?? "";
|
||||||
|
set
|
||||||
|
{
|
||||||
|
Tags.Clear();
|
||||||
|
if (!string.IsNullOrWhiteSpace(value))
|
||||||
|
Tags.Add(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public List<string> KnownTags { get; set; } = new();
|
||||||
|
public List<string> DesignTags { get; set; } = new List<string>();
|
||||||
|
public string CharacterAutomation { get; set; } = "";
|
||||||
|
public List<DesignFolder> DesignFolders { get; set; } = new();
|
||||||
|
public Vector3? OverrideAccentColor { get; set; } // if you're ever persisting the selection outside RPProfile
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public Character(
|
||||||
|
string name,
|
||||||
|
string macros,
|
||||||
|
string? imagePath,
|
||||||
|
List<CharacterDesign> designs,
|
||||||
|
Vector3 nameplateColor,
|
||||||
|
string penumbraCollection,
|
||||||
|
string glamourerDesign,
|
||||||
|
string customizeProfile,
|
||||||
|
string honorificTitle,
|
||||||
|
string honorificPrefix,
|
||||||
|
string honorificSuffix,
|
||||||
|
Vector3 honorificColor,
|
||||||
|
Vector3 honorificGlow,
|
||||||
|
string moodlePreset,
|
||||||
|
string characterautomation)
|
||||||
|
{
|
||||||
|
Name = name;
|
||||||
|
Macros = macros ?? ""; // Prevents null macros
|
||||||
|
ImagePath = imagePath;
|
||||||
|
Designs = designs ?? new List<CharacterDesign>();
|
||||||
|
NameplateColor = nameplateColor;
|
||||||
|
PenumbraCollection = penumbraCollection;
|
||||||
|
GlamourerDesign = glamourerDesign;
|
||||||
|
CustomizeProfile = customizeProfile;
|
||||||
|
HonorificTitle = honorificTitle;
|
||||||
|
HonorificPrefix = honorificPrefix;
|
||||||
|
HonorificSuffix = honorificSuffix;
|
||||||
|
HonorificColor = honorificColor;
|
||||||
|
HonorificGlow = honorificGlow;
|
||||||
|
MoodlePreset = moodlePreset;
|
||||||
|
CharacterAutomation = characterautomation;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public class DesignFolder
|
||||||
|
{
|
||||||
|
public string Name { get; set; }
|
||||||
|
public Guid Id { get; set; }
|
||||||
|
|
||||||
|
// Optional parent (for future nesting)
|
||||||
|
public Guid? ParentFolderId { get; set; } = null;
|
||||||
|
// Manual ordering index within its parent
|
||||||
|
public int SortOrder { get; set; } = 0;
|
||||||
|
|
||||||
|
// <<< Add this! >>>
|
||||||
|
public DesignFolder()
|
||||||
|
{
|
||||||
|
Name = "";
|
||||||
|
Id = Guid.NewGuid();
|
||||||
|
ParentFolderId = null;
|
||||||
|
SortOrder = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DesignFolder(string name)
|
||||||
|
{
|
||||||
|
Name = name;
|
||||||
|
Id = Guid.NewGuid();
|
||||||
|
}
|
||||||
|
|
||||||
|
public DesignFolder(string name, Guid id)
|
||||||
|
{
|
||||||
|
Name = name;
|
||||||
|
Id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DesignFolder(DesignFolder other)
|
||||||
|
{
|
||||||
|
Name = other.Name;
|
||||||
|
Id = other.Id;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
40
CharacterSelectPlugin/CharacterDesign.cs
Normal file
40
CharacterSelectPlugin/CharacterDesign.cs
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace CharacterSelectPlugin
|
||||||
|
{
|
||||||
|
public class CharacterDesign
|
||||||
|
{
|
||||||
|
public string Name { get; set; }
|
||||||
|
public string Macro { get; set; }
|
||||||
|
public bool IsAdvancedMode { get; set; } // Tracks if Advanced Mode was used
|
||||||
|
public string AdvancedMacro { get; set; } // Stores Advanced Mode macro separately
|
||||||
|
public string GlamourerDesign { get; set; } // Store Glamourer Design separately
|
||||||
|
public DateTime DateAdded { get; set; } = DateTime.UtcNow; // Automatically set when created
|
||||||
|
public bool IsFavorite { get; set; } // Used for sorting by Favorites
|
||||||
|
public string Automation { get; set; } = "";
|
||||||
|
public string CustomizePlusProfile { get; set; } = "";
|
||||||
|
public string Tag { get; set; } = "Unsorted";
|
||||||
|
public List<string> KnownTags { get; set; } = new();
|
||||||
|
public List<string> DesignTags { get; set; } = new List<string>();
|
||||||
|
public Guid? FolderId { get; set; } = null; // null = Unsorted
|
||||||
|
public Guid Id { get; set; } = Guid.NewGuid();
|
||||||
|
public int SortOrder { get; set; } = 0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public CharacterDesign(string name, string macro, bool isAdvancedMode = false, string advancedMacro = "", string glamourerDesign = "", string automation = "", string customizePlusProfile = "")
|
||||||
|
{
|
||||||
|
Name = name;
|
||||||
|
Macro = macro;
|
||||||
|
IsAdvancedMode = isAdvancedMode; // Tracks if this design was saved in Advanced Mode
|
||||||
|
AdvancedMacro = advancedMacro; // Stores the exact Advanced Mode macro if used
|
||||||
|
GlamourerDesign = glamourerDesign; // Store Glamourer Design
|
||||||
|
Automation = automation; // Store Glamourer Automation
|
||||||
|
CustomizePlusProfile = customizePlusProfile; // Store Design C+ Profiles
|
||||||
|
DateAdded = DateTime.UtcNow;
|
||||||
|
IsFavorite = false; // Default to not favourited
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
41
CharacterSelectPlugin/CharacterSelectPlugin.csproj
Normal file
41
CharacterSelectPlugin/CharacterSelectPlugin.csproj
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project Sdk="Dalamud.NET.Sdk/12.0.2">
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net9.0-windows</TargetFramework>
|
||||||
|
<!-- Windows-specific target framework -->
|
||||||
|
<Version>1.1.1.3</Version>
|
||||||
|
<Description>Character Select+.</Description>
|
||||||
|
<PackageProjectUrl>https://github.com/USBTURTLECUP/Character-Select-</PackageProjectUrl>
|
||||||
|
<PackageLicenseExpression>AGPL-3.0-or-later</PackageLicenseExpression>
|
||||||
|
<IsPackable>false</IsPackable>
|
||||||
|
<UseWindowsForms>true</UseWindowsForms>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Include="..\Data\goat.png">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
<Visible>false</Visible>
|
||||||
|
</Content>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="System.Windows.Forms" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Include="CharacterSelectPlugin.json">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
|
|
||||||
|
<Content Include="..\Data\goat.png">
|
||||||
|
<Link>goat.png</Link>
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
|
|
||||||
|
<Content Include="Assets\**\*.*">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Folder Include="Header Files\" />
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
||||||
21
CharacterSelectPlugin/CharacterSelectPlugin.json
Normal file
21
CharacterSelectPlugin/CharacterSelectPlugin.json
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"Author": "Kid Icarus",
|
||||||
|
"Name": "Character Select+",
|
||||||
|
"InternalName": "CharacterSelectPlugin",
|
||||||
|
"AssemblyVersion": "1.1.0.0",
|
||||||
|
"Description": "Character Select+ allows you to create, save, and instantly apply fully customized character profiles with the press of a button. Switch between your OCs effortlessly using /select CharacterName, applying Penumbra Collections, Glamourer Designs, Customize+ Profiles, Honorific Titles, Moodle Presets, and Idles in one command.\n\nWhile profile switching is its core purpose, Character Select+ includes additional features:\n✔ Advanced Mode – Create custom macro setups for deeper character customization.\n✔ Profile-Specific Designs – Use multiple outfits, styles, and looks per character.\n✔ Favorites & Sorting – Keep profiles organized by name, date, or importance.\n✔ Quick Swap Bar! \n✔ One-Click Macro Execution – Run predefined commands instantly when selecting a character.\n\nWhether you're roleplaying, gposing, or just love quick customization, Character Select+ makes switching between characters faster, easier, and seamless.\n",
|
||||||
|
"ApplicableVersion": "any",
|
||||||
|
"Tags": [
|
||||||
|
"character",
|
||||||
|
"select",
|
||||||
|
"ocs"
|
||||||
|
],
|
||||||
|
"DalamudApiLevel": 12,
|
||||||
|
"LoadRequiredState": 0,
|
||||||
|
"LoadSync": false,
|
||||||
|
"CanUnloadAsync": false,
|
||||||
|
"LoadPriority": 0,
|
||||||
|
"Punchline": "Swap between your OCs with a single click",
|
||||||
|
"AcceptsFeedback": true,
|
||||||
|
"IconUrl": "https://raw.githubusercontent.com/IcarusXIV/Character-Select-/master/CharacterSelectPlugin/Assets/Icon.png"
|
||||||
|
}
|
||||||
93
CharacterSelectPlugin/Configuration.cs
Normal file
93
CharacterSelectPlugin/Configuration.cs
Normal file
@@ -0,0 +1,93 @@
|
|||||||
|
using Dalamud.Configuration;
|
||||||
|
using Dalamud.Plugin;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Numerics;
|
||||||
|
|
||||||
|
namespace CharacterSelectPlugin
|
||||||
|
{
|
||||||
|
[Serializable]
|
||||||
|
public class Configuration : IPluginConfiguration
|
||||||
|
{
|
||||||
|
public int Version { get; set; } = 1;
|
||||||
|
public List<Character> Characters { get; set; } = new List<Character>();
|
||||||
|
public Vector3 NewCharacterColor { get; set; } = new Vector3(1.0f, 1.0f, 1.0f);
|
||||||
|
|
||||||
|
// Existing Settings
|
||||||
|
public bool IsConfigWindowMovable { get; set; } = true;
|
||||||
|
public bool SomePropertyToBeSavedAndWithADefault { get; set; } = false;
|
||||||
|
|
||||||
|
// Profile Settings
|
||||||
|
public float ProfileImageScale { get; set; } = 1.0f; // Image scaling
|
||||||
|
public int ProfileColumns { get; set; } = 3; // Number of profiles per row
|
||||||
|
public float ProfileSpacing { get; set; } = 10.0f; // Default spacing between profiles
|
||||||
|
|
||||||
|
private IDalamudPluginInterface pluginInterface;
|
||||||
|
public int CurrentSortIndex { get; set; } = 0; // Default to Manual (SortType.Manual = 0)
|
||||||
|
public PersistentPoseSet DefaultPoses { get; set; } = new();
|
||||||
|
public bool IsQuickSwitchWindowOpen { get; set; } = false;
|
||||||
|
public bool EnableAutomations { get; set; } = false;
|
||||||
|
public string LastSeenVersion { get; set; } = "";
|
||||||
|
public ProfileSharing RPSharingMode { get; set; } = ProfileSharing.AlwaysShare;
|
||||||
|
public List<string> KnownTags { get; set; } = new();
|
||||||
|
public byte LastIdlePoseAppliedByPlugin { get; set; } = 255;
|
||||||
|
public byte LastSitPoseAppliedByPlugin { get; set; } = 255;
|
||||||
|
public byte LastGroundSitPoseAppliedByPlugin { get; set; } = 255;
|
||||||
|
public byte LastDozePoseAppliedByPlugin { get; set; } = 255;
|
||||||
|
public Dictionary<string, string> LastUsedCharacterByPlayer { get; set; } = new();
|
||||||
|
public bool EnableLastUsedCharacterAutoload { get; set; } = false;
|
||||||
|
public string? LastSessionId { get; set; } = null;
|
||||||
|
public string? PreviousSessionId { get; set; }
|
||||||
|
[JsonProperty]
|
||||||
|
public float UIScaleMultiplier { get; set; } = 1.0f;
|
||||||
|
[DefaultValue(true)]
|
||||||
|
public bool ApplyIdleOnLogin { get; set; } = true;
|
||||||
|
public uint LastKnownJobId { get; set; } = 0;
|
||||||
|
public Dictionary<string, string> LastUsedDesignByCharacter { get; set; } = new();
|
||||||
|
public bool ReapplyDesignOnJobChange { get; set; } = false;
|
||||||
|
public string? LastUsedDesignCharacterKey { get; set; } = null;
|
||||||
|
public string? LastUsedCharacterKey { get; set; } = null;
|
||||||
|
[DefaultValue(false)]
|
||||||
|
public bool EnableLoginDelay { get; set; } = false;
|
||||||
|
[JsonProperty]
|
||||||
|
public bool EnablePoseAutoSave { get; set; } = true;
|
||||||
|
public bool EnableSafeMode { get; set; } = false;
|
||||||
|
public bool QuickSwitchCompact { get; set; } = false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public Configuration(IDalamudPluginInterface pluginInterface)
|
||||||
|
{
|
||||||
|
this.pluginInterface = pluginInterface;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Configuration Load(IDalamudPluginInterface pluginInterface)
|
||||||
|
{
|
||||||
|
var config = pluginInterface.GetPluginConfig() as Configuration ?? new Configuration(pluginInterface);
|
||||||
|
config.pluginInterface = pluginInterface;
|
||||||
|
|
||||||
|
// Ensure valid sorting index
|
||||||
|
if (config.CurrentSortIndex < 0 || config.CurrentSortIndex > 4)
|
||||||
|
config.CurrentSortIndex = 0;
|
||||||
|
|
||||||
|
return config;
|
||||||
|
}
|
||||||
|
[Serializable]
|
||||||
|
public class PersistentPoseSet
|
||||||
|
{
|
||||||
|
public byte Idle { get; set; } = 255;
|
||||||
|
public byte Sit { get; set; } = 255;
|
||||||
|
public byte GroundSit { get; set; } = 255;
|
||||||
|
public byte Doze { get; set; } = 255;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public void Save()
|
||||||
|
{
|
||||||
|
pluginInterface.SavePluginConfig(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
80
CharacterSelectPlugin/ContextMenuManager.cs
Normal file
80
CharacterSelectPlugin/ContextMenuManager.cs
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
using Dalamud.Game.Gui.ContextMenu;
|
||||||
|
using Dalamud.Plugin.Services;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace CharacterSelectPlugin.Managers
|
||||||
|
{
|
||||||
|
public class ContextMenuManager : IDisposable
|
||||||
|
{
|
||||||
|
private readonly Plugin plugin;
|
||||||
|
private readonly IContextMenu contextMenu;
|
||||||
|
|
||||||
|
private static readonly string[] ValidAddons =
|
||||||
|
[
|
||||||
|
"PartyMemberList",
|
||||||
|
"FriendList",
|
||||||
|
"FreeCompany",
|
||||||
|
"LinkShell",
|
||||||
|
"CrossWorldLinkshell",
|
||||||
|
"_PartyList",
|
||||||
|
"ChatLog",
|
||||||
|
"LookingForGroup",
|
||||||
|
"BlackList",
|
||||||
|
"ContentMemberList",
|
||||||
|
"SocialList",
|
||||||
|
"ContactList",
|
||||||
|
"CharacterInspect",
|
||||||
|
];
|
||||||
|
|
||||||
|
private static readonly Dictionary<uint, string> WorldIdToName = new()
|
||||||
|
{
|
||||||
|
{ 404, "Marilith" },
|
||||||
|
{ 410, "Rafflesia" },
|
||||||
|
{ 411, "White Rook" },
|
||||||
|
{ 100, "FictitiousWorld" },
|
||||||
|
};
|
||||||
|
|
||||||
|
public ContextMenuManager(Plugin plugin, IContextMenu contextMenu)
|
||||||
|
{
|
||||||
|
this.plugin = plugin;
|
||||||
|
this.contextMenu = contextMenu;
|
||||||
|
this.contextMenu.OnMenuOpened += OnMenuOpened;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
this.contextMenu.OnMenuOpened -= OnMenuOpened;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnMenuOpened(IMenuOpenedArgs args)
|
||||||
|
{
|
||||||
|
if (args.Target is not MenuTargetDefault def || !ValidAddons.Contains(args.AddonName))
|
||||||
|
return;
|
||||||
|
|
||||||
|
// Skip if the clicked thing has no valid home world (NPCs, FC actions, etc)
|
||||||
|
if (def.TargetHomeWorld.RowId == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
|
var name = def.TargetName;
|
||||||
|
var worldRow = def.TargetHomeWorld;
|
||||||
|
|
||||||
|
string worldName = worldRow.RowId > 0
|
||||||
|
? worldRow.Value.Name.ToString()
|
||||||
|
: $"World-{worldRow.RowId}";
|
||||||
|
|
||||||
|
if (!string.IsNullOrWhiteSpace(name))
|
||||||
|
{
|
||||||
|
args.AddMenuItem(new MenuItem
|
||||||
|
{
|
||||||
|
Name = "View RP Profile",
|
||||||
|
OnClicked = _ => Task.Run(() => plugin.TryRequestRPProfile($"{name}@{worldName}")),
|
||||||
|
IsEnabled = true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
35
CharacterSelectPlugin/DesignItem.cs
Normal file
35
CharacterSelectPlugin/DesignItem.cs
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
// CharacterSelectPlugin/DesignItem.cs
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace CharacterSelectPlugin
|
||||||
|
{
|
||||||
|
public class DesignItem
|
||||||
|
{
|
||||||
|
public Guid Id { get; }
|
||||||
|
public Guid? ParentFolderId { get; set; }
|
||||||
|
public bool IsFolder { get; }
|
||||||
|
public DesignFolder? Folder { get; }
|
||||||
|
public CharacterDesign? Design { get; }
|
||||||
|
public int SortOrder { get; set; }
|
||||||
|
|
||||||
|
// Folder ctor
|
||||||
|
public DesignItem(DesignFolder f)
|
||||||
|
{
|
||||||
|
Id = f.Id;
|
||||||
|
IsFolder = true;
|
||||||
|
Folder = f;
|
||||||
|
ParentFolderId = f.ParentFolderId; // adapt if your folder tracks this differently
|
||||||
|
SortOrder = f.SortOrder; // assume you’ve persisted this
|
||||||
|
}
|
||||||
|
|
||||||
|
// Design ctor
|
||||||
|
public DesignItem(CharacterDesign d)
|
||||||
|
{
|
||||||
|
Id = d.Id;
|
||||||
|
IsFolder = false;
|
||||||
|
Design = d;
|
||||||
|
ParentFolderId = d.FolderId;
|
||||||
|
SortOrder = d.SortOrder;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
141
CharacterSelectPlugin/Header Files/ImFileDialog.h
Normal file
141
CharacterSelectPlugin/Header Files/ImFileDialog.h
Normal file
@@ -0,0 +1,141 @@
|
|||||||
|
#pragma once
|
||||||
|
#include <ctime>
|
||||||
|
#include <stack>
|
||||||
|
#include <string>
|
||||||
|
#include <thread>
|
||||||
|
#include <vector>
|
||||||
|
#include <functional>
|
||||||
|
#include <filesystem>
|
||||||
|
#include <unordered_map>
|
||||||
|
#include <algorithm> // std::min, std::max
|
||||||
|
|
||||||
|
#define IFD_DIALOG_FILE 0
|
||||||
|
#define IFD_DIALOG_DIRECTORY 1
|
||||||
|
#define IFD_DIALOG_SAVE 2
|
||||||
|
|
||||||
|
namespace ifd {
|
||||||
|
class FileDialog {
|
||||||
|
public:
|
||||||
|
static inline FileDialog& Instance()
|
||||||
|
{
|
||||||
|
static FileDialog ret;
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
FileDialog();
|
||||||
|
~FileDialog();
|
||||||
|
|
||||||
|
bool Save(const std::string& key, const std::string& title, const std::string& filter, const std::string& startingDir = "");
|
||||||
|
|
||||||
|
bool Open(const std::string& key, const std::string& title, const std::string& filter, bool isMultiselect = false, const std::string& startingDir = "");
|
||||||
|
|
||||||
|
bool IsDone(const std::string& key);
|
||||||
|
|
||||||
|
inline bool HasResult() { return m_result.size(); }
|
||||||
|
inline const std::filesystem::path& GetResult() { return m_result[0]; }
|
||||||
|
inline const std::vector<std::filesystem::path>& GetResults() { return m_result; }
|
||||||
|
|
||||||
|
void Close();
|
||||||
|
|
||||||
|
void RemoveFavorite(const std::string& path);
|
||||||
|
void AddFavorite(const std::string& path);
|
||||||
|
inline const std::vector<std::string>& GetFavorites() { return m_favorites; }
|
||||||
|
|
||||||
|
inline void SetZoom(float z) {
|
||||||
|
m_zoom = std::min<float>(25.0f, std::max<float>(1.0f, z));
|
||||||
|
m_refreshIconPreview();
|
||||||
|
}
|
||||||
|
inline float GetZoom() { return m_zoom; }
|
||||||
|
|
||||||
|
std::function<void*(uint8_t*, int, int, char)> CreateTexture; // char -> fmt -> { 0 = BGRA, 1 = RGBA }
|
||||||
|
std::function<void(void*)> DeleteTexture;
|
||||||
|
|
||||||
|
class FileTreeNode {
|
||||||
|
public:
|
||||||
|
#ifdef _WIN32
|
||||||
|
FileTreeNode(const std::wstring& path) {
|
||||||
|
Path = std::filesystem::path(path);
|
||||||
|
Read = false;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
FileTreeNode(const std::string& path) {
|
||||||
|
Path = std::filesystem::u8path(path);
|
||||||
|
Read = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::filesystem::path Path;
|
||||||
|
bool Read;
|
||||||
|
std::vector<FileTreeNode*> Children;
|
||||||
|
};
|
||||||
|
class FileData {
|
||||||
|
public:
|
||||||
|
FileData(const std::filesystem::path& path);
|
||||||
|
|
||||||
|
std::filesystem::path Path;
|
||||||
|
bool IsDirectory;
|
||||||
|
size_t Size;
|
||||||
|
time_t DateModified;
|
||||||
|
|
||||||
|
bool HasIconPreview;
|
||||||
|
void* IconPreview;
|
||||||
|
uint8_t* IconPreviewData;
|
||||||
|
int IconPreviewWidth, IconPreviewHeight;
|
||||||
|
};
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string m_currentKey;
|
||||||
|
std::string m_currentTitle;
|
||||||
|
std::filesystem::path m_currentDirectory;
|
||||||
|
bool m_isMultiselect;
|
||||||
|
bool m_isOpen;
|
||||||
|
uint8_t m_type;
|
||||||
|
char m_inputTextbox[1024];
|
||||||
|
char m_pathBuffer[1024];
|
||||||
|
char m_newEntryBuffer[1024];
|
||||||
|
char m_searchBuffer[128];
|
||||||
|
std::vector<std::string> m_favorites;
|
||||||
|
bool m_calledOpenPopup;
|
||||||
|
std::stack<std::filesystem::path> m_backHistory, m_forwardHistory;
|
||||||
|
float m_zoom;
|
||||||
|
|
||||||
|
std::vector<std::filesystem::path> m_selections;
|
||||||
|
int m_selectedFileItem;
|
||||||
|
void m_select(const std::filesystem::path& path, bool isCtrlDown = false);
|
||||||
|
|
||||||
|
std::vector<std::filesystem::path> m_result;
|
||||||
|
bool m_finalize(const std::string& filename = "");
|
||||||
|
|
||||||
|
std::string m_filter;
|
||||||
|
std::vector<std::vector<std::string>> m_filterExtensions;
|
||||||
|
size_t m_filterSelection;
|
||||||
|
void m_parseFilter(const std::string& filter);
|
||||||
|
|
||||||
|
std::vector<int> m_iconIndices;
|
||||||
|
std::vector<std::string> m_iconFilepaths; // m_iconIndices[x] <-> m_iconFilepaths[x]
|
||||||
|
std::unordered_map<std::string, void*> m_icons;
|
||||||
|
void* m_getIcon(const std::filesystem::path& path);
|
||||||
|
void m_clearIcons();
|
||||||
|
void m_refreshIconPreview();
|
||||||
|
void m_clearIconPreview();
|
||||||
|
|
||||||
|
std::thread* m_previewLoader;
|
||||||
|
bool m_previewLoaderRunning;
|
||||||
|
void m_stopPreviewLoader();
|
||||||
|
void m_loadPreview();
|
||||||
|
|
||||||
|
std::vector<FileTreeNode*> m_treeCache;
|
||||||
|
void m_clearTree(FileTreeNode* node);
|
||||||
|
void m_renderTree(FileTreeNode* node);
|
||||||
|
|
||||||
|
unsigned int m_sortColumn;
|
||||||
|
unsigned int m_sortDirection;
|
||||||
|
std::vector<FileData> m_content;
|
||||||
|
void m_setDirectory(const std::filesystem::path& p, bool addHistory = true);
|
||||||
|
void m_sortContent(unsigned int column, unsigned int sortDirection);
|
||||||
|
void m_renderContent();
|
||||||
|
|
||||||
|
void m_renderPopups();
|
||||||
|
void m_renderFileDialog();
|
||||||
|
};
|
||||||
|
}
|
||||||
8
CharacterSelectPlugin/NuGet.config
Normal file
8
CharacterSelectPlugin/NuGet.config
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<configuration>
|
||||||
|
<packageSources>
|
||||||
|
<clear />
|
||||||
|
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
|
||||||
|
<add key="goatcorp" value="https://goatcorp.github.io/nupkg/" />
|
||||||
|
</packageSources>
|
||||||
|
</configuration>
|
||||||
89
CharacterSelectPlugin/PersistentPoseRestorer.cs
Normal file
89
CharacterSelectPlugin/PersistentPoseRestorer.cs
Normal file
@@ -0,0 +1,89 @@
|
|||||||
|
// CharacterSelectPlugin/Managers/PoseRestorer.cs
|
||||||
|
using Dalamud.Plugin.Services;
|
||||||
|
using FFXIVClientStructs.FFXIV.Client.Game.Control;
|
||||||
|
using FFXIVClientStructs.FFXIV.Client.Game.UI;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace CharacterSelectPlugin.Managers;
|
||||||
|
|
||||||
|
public unsafe class PoseRestorer
|
||||||
|
{
|
||||||
|
private readonly IClientState clientState;
|
||||||
|
private readonly Plugin plugin;
|
||||||
|
|
||||||
|
public PoseRestorer(IClientState clientState, Plugin plugin)
|
||||||
|
{
|
||||||
|
this.clientState = clientState;
|
||||||
|
this.plugin = plugin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void RestorePosesFor(Character character)
|
||||||
|
{
|
||||||
|
if (clientState.LocalPlayer == null) return;
|
||||||
|
|
||||||
|
Plugin.Framework.RunOnTick(() =>
|
||||||
|
{
|
||||||
|
ApplyPose(character);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ApplyPose(Character character)
|
||||||
|
{
|
||||||
|
var local = clientState.LocalPlayer;
|
||||||
|
if (local == null || local.Address == IntPtr.Zero)
|
||||||
|
return;
|
||||||
|
|
||||||
|
var charPtr = (FFXIVClientStructs.FFXIV.Client.Game.Character.Character*)local.Address;
|
||||||
|
|
||||||
|
// This also ensures you're not in cutscene or a bad player state
|
||||||
|
if (charPtr->GameObject.ObjectIndex == 0xFFFF)
|
||||||
|
return;
|
||||||
|
|
||||||
|
TrySetPose(EmoteController.PoseType.Idle, character.IdlePoseIndex, charPtr);
|
||||||
|
TrySetPose(EmoteController.PoseType.Sit, character.SitPoseIndex, charPtr);
|
||||||
|
TrySetPose(EmoteController.PoseType.GroundSit, character.GroundSitPoseIndex, charPtr);
|
||||||
|
TrySetPose(EmoteController.PoseType.Doze, character.DozePoseIndex, charPtr);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void TrySetPose(EmoteController.PoseType type, byte desired, FFXIVClientStructs.FFXIV.Client.Game.Character.Character* charPtr)
|
||||||
|
{
|
||||||
|
if (desired >= 254) return;
|
||||||
|
|
||||||
|
byte current = PlayerState.Instance()->SelectedPoses[(int)type];
|
||||||
|
if (current == desired) return;
|
||||||
|
|
||||||
|
PlayerState.Instance()->SelectedPoses[(int)type] = desired;
|
||||||
|
|
||||||
|
switch (type)
|
||||||
|
{
|
||||||
|
case EmoteController.PoseType.Idle:
|
||||||
|
plugin.Configuration.LastIdlePoseAppliedByPlugin = desired;
|
||||||
|
break;
|
||||||
|
case EmoteController.PoseType.Sit:
|
||||||
|
plugin.Configuration.LastSitPoseAppliedByPlugin = desired;
|
||||||
|
break;
|
||||||
|
case EmoteController.PoseType.GroundSit:
|
||||||
|
plugin.Configuration.LastGroundSitPoseAppliedByPlugin = desired;
|
||||||
|
break;
|
||||||
|
case EmoteController.PoseType.Doze:
|
||||||
|
plugin.Configuration.LastDozePoseAppliedByPlugin = desired;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
plugin.Configuration.Save();
|
||||||
|
|
||||||
|
if (TranslatePoseState(charPtr->ModeParam) == type)
|
||||||
|
charPtr->EmoteController.CPoseState = desired;
|
||||||
|
}
|
||||||
|
|
||||||
|
private EmoteController.PoseType TranslatePoseState(byte state)
|
||||||
|
{
|
||||||
|
return state switch
|
||||||
|
{
|
||||||
|
1 => EmoteController.PoseType.GroundSit,
|
||||||
|
2 => EmoteController.PoseType.Sit,
|
||||||
|
3 => EmoteController.PoseType.Doze,
|
||||||
|
_ => EmoteController.PoseType.Idle
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
1709
CharacterSelectPlugin/Plugin.cs
Normal file
1709
CharacterSelectPlugin/Plugin.cs
Normal file
File diff suppressed because it is too large
Load Diff
95
CharacterSelectPlugin/PoseManager.cs
Normal file
95
CharacterSelectPlugin/PoseManager.cs
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
using Dalamud.Plugin.Services;
|
||||||
|
using FFXIVClientStructs.FFXIV.Client.Game.Control;
|
||||||
|
using FFXIVClientStructs.FFXIV.Client.Game.UI;
|
||||||
|
|
||||||
|
namespace CharacterSelectPlugin.Managers;
|
||||||
|
|
||||||
|
public unsafe class PoseManager
|
||||||
|
{
|
||||||
|
private readonly IClientState clientState;
|
||||||
|
private readonly IFramework framework;
|
||||||
|
private readonly IChatGui chatGui;
|
||||||
|
private readonly ICommandManager commandManager;
|
||||||
|
private readonly Plugin plugin;
|
||||||
|
|
||||||
|
|
||||||
|
public PoseManager(IClientState clientState, IFramework framework, IChatGui chatGui, ICommandManager commandManager, Plugin plugin)
|
||||||
|
{
|
||||||
|
this.clientState = clientState;
|
||||||
|
this.framework = framework;
|
||||||
|
this.chatGui = chatGui;
|
||||||
|
this.commandManager = commandManager;
|
||||||
|
this.plugin = plugin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void ApplyPose(EmoteController.PoseType type, byte index)
|
||||||
|
{
|
||||||
|
Plugin.Log.Debug($"[ApplyPose] Applying {type} pose {index}");
|
||||||
|
|
||||||
|
if (index >= 7 || clientState.LocalPlayer == null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
var charPtr = (FFXIVClientStructs.FFXIV.Client.Game.Character.Character*)clientState.LocalPlayer.Address;
|
||||||
|
|
||||||
|
// Apply to memory
|
||||||
|
PlayerState.Instance()->SelectedPoses[(int)type] = index;
|
||||||
|
|
||||||
|
if (TranslatePoseState(charPtr->ModeParam) == type)
|
||||||
|
charPtr->EmoteController.CPoseState = index;
|
||||||
|
|
||||||
|
// Persist if plugin-driven
|
||||||
|
switch (type)
|
||||||
|
{
|
||||||
|
case EmoteController.PoseType.Idle:
|
||||||
|
plugin.Configuration.DefaultPoses.Idle = index;
|
||||||
|
plugin.Configuration.LastIdlePoseAppliedByPlugin = index;
|
||||||
|
plugin.lastSeenIdlePose = index;
|
||||||
|
plugin.suppressIdleSaveForFrames = 60; // longer block
|
||||||
|
Plugin.Log.Debug($"[ApplyPose] Idle pose set to {index} and suppressed for 60 frames.");
|
||||||
|
break;
|
||||||
|
|
||||||
|
case EmoteController.PoseType.Sit:
|
||||||
|
plugin.Configuration.DefaultPoses.Sit = index;
|
||||||
|
plugin.lastSeenSitPose = index;
|
||||||
|
plugin.suppressSitSaveForFrames = 60;
|
||||||
|
Plugin.Log.Debug($"[ApplyPose] Sit pose set to {index} and suppressed for 60 frames.");
|
||||||
|
break;
|
||||||
|
|
||||||
|
case EmoteController.PoseType.GroundSit:
|
||||||
|
plugin.Configuration.DefaultPoses.GroundSit = index;
|
||||||
|
plugin.lastSeenGroundSitPose = index;
|
||||||
|
plugin.suppressGroundSitSaveForFrames = 60;
|
||||||
|
Plugin.Log.Debug($"[ApplyPose] Ground Sit pose set to {index} and suppressed for 60 frames.");
|
||||||
|
break;
|
||||||
|
|
||||||
|
case EmoteController.PoseType.Doze:
|
||||||
|
plugin.Configuration.DefaultPoses.Doze = index;
|
||||||
|
plugin.lastSeenDozePose = index;
|
||||||
|
plugin.suppressDozeSaveForFrames = 60;
|
||||||
|
Plugin.Log.Debug($"[ApplyPose] Doze pose set to {index} and suppressed for 60 frames.");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
// This makes the change persist!
|
||||||
|
plugin.Configuration.Save();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private EmoteController.PoseType TranslatePoseState(byte state)
|
||||||
|
{
|
||||||
|
return state switch
|
||||||
|
{
|
||||||
|
1 => EmoteController.PoseType.GroundSit,
|
||||||
|
2 => EmoteController.PoseType.Sit,
|
||||||
|
3 => EmoteController.PoseType.Doze,
|
||||||
|
_ => EmoteController.PoseType.Idle
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public byte GetPose(EmoteController.PoseType type)
|
||||||
|
=> PlayerState.Instance()->CurrentPose(type);
|
||||||
|
|
||||||
|
public byte GetSelectedPose(EmoteController.PoseType type)
|
||||||
|
=> PlayerState.Instance()->SelectedPoses[(int)type];
|
||||||
|
}
|
||||||
250
CharacterSelectPlugin/QuickSwitchWindow.cs
Normal file
250
CharacterSelectPlugin/QuickSwitchWindow.cs
Normal file
@@ -0,0 +1,250 @@
|
|||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Numerics;
|
||||||
|
using ImGuiNET;
|
||||||
|
using Dalamud.Interface.Windowing;
|
||||||
|
|
||||||
|
namespace CharacterSelectPlugin.Windows
|
||||||
|
{
|
||||||
|
public class QuickSwitchWindow : Window
|
||||||
|
{
|
||||||
|
private readonly Plugin plugin;
|
||||||
|
private int selectedCharacterIndex = -1;
|
||||||
|
private int selectedDesignIndex = -1;
|
||||||
|
private int lastAppliedCharacterIndex = -1;
|
||||||
|
private bool hasAppliedMacroThisSession = false;
|
||||||
|
|
||||||
|
public QuickSwitchWindow(Plugin plugin)
|
||||||
|
: base("Quick Character Switch", ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoResize)
|
||||||
|
{
|
||||||
|
this.plugin = plugin;
|
||||||
|
SizeConstraints = new WindowSizeConstraints
|
||||||
|
{
|
||||||
|
MinimumSize = new Vector2(360, 75),
|
||||||
|
MaximumSize = new Vector2(360, 75)
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Draw()
|
||||||
|
{
|
||||||
|
// ── Compact Quick Switch toggle ──
|
||||||
|
if (plugin.Configuration.QuickSwitchCompact)
|
||||||
|
{
|
||||||
|
// No title‐bar, no resize, no scrollbar, no background
|
||||||
|
this.Flags = ImGuiWindowFlags
|
||||||
|
.NoTitleBar
|
||||||
|
| ImGuiWindowFlags.NoResize
|
||||||
|
| ImGuiWindowFlags.NoScrollbar
|
||||||
|
| ImGuiWindowFlags.NoBackground;
|
||||||
|
SizeConstraints = new WindowSizeConstraints
|
||||||
|
{
|
||||||
|
MinimumSize = new System.Numerics.Vector2(360, 28),
|
||||||
|
MaximumSize = new System.Numerics.Vector2(360, 28),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Full window
|
||||||
|
this.Flags = ImGuiWindowFlags.NoResize
|
||||||
|
| ImGuiWindowFlags.NoScrollbar;
|
||||||
|
SizeConstraints = new WindowSizeConstraints
|
||||||
|
{
|
||||||
|
MinimumSize = new System.Numerics.Vector2(360, 55),
|
||||||
|
MaximumSize = new System.Numerics.Vector2(360, 58),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
float dropdownWidth = 135;
|
||||||
|
float spacing = 6;
|
||||||
|
|
||||||
|
// Character Dropdown
|
||||||
|
ImGui.SetNextItemWidth(dropdownWidth);
|
||||||
|
int tempCharacterIndex = selectedCharacterIndex;
|
||||||
|
|
||||||
|
if (ImGui.BeginCombo("##CharacterDropdown", GetSelectedCharacterName(), ImGuiComboFlags.HeightRegular))
|
||||||
|
{
|
||||||
|
for (int i = 0; i < plugin.Characters.Count; i++)
|
||||||
|
{
|
||||||
|
var character = plugin.Characters[i];
|
||||||
|
bool isSelected = (tempCharacterIndex == i);
|
||||||
|
|
||||||
|
if (ImGui.Selectable(character.Name, isSelected))
|
||||||
|
{
|
||||||
|
tempCharacterIndex = i;
|
||||||
|
|
||||||
|
if (character.Designs.Count > 0)
|
||||||
|
{
|
||||||
|
var ordered = character.Designs
|
||||||
|
.Select((d, index) => new { Design = d, Index = index })
|
||||||
|
.OrderBy(x => x.Design.Name, StringComparer.OrdinalIgnoreCase)
|
||||||
|
.ToList();
|
||||||
|
|
||||||
|
selectedDesignIndex = ordered[0].Index;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
selectedDesignIndex = -1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isSelected)
|
||||||
|
ImGui.SetItemDefaultFocus();
|
||||||
|
}
|
||||||
|
ImGui.EndCombo();
|
||||||
|
}
|
||||||
|
|
||||||
|
selectedCharacterIndex = tempCharacterIndex;
|
||||||
|
|
||||||
|
ImGui.SameLine(0, spacing);
|
||||||
|
|
||||||
|
// Design Dropdown
|
||||||
|
if (selectedCharacterIndex >= 0 && selectedCharacterIndex < plugin.Characters.Count)
|
||||||
|
{
|
||||||
|
var selectedCharacter = plugin.Characters[selectedCharacterIndex];
|
||||||
|
int tempDesignIndex = selectedDesignIndex;
|
||||||
|
|
||||||
|
ImGui.SetNextItemWidth(dropdownWidth);
|
||||||
|
if (ImGui.BeginCombo("##DesignDropdown", GetSelectedDesignName(selectedCharacter), ImGuiComboFlags.HeightRegular))
|
||||||
|
{
|
||||||
|
var orderedDesigns = selectedCharacter.Designs
|
||||||
|
.Select((d, index) => new { Design = d, OriginalIndex = index })
|
||||||
|
.OrderBy(x => x.Design.Name, StringComparer.OrdinalIgnoreCase)
|
||||||
|
.ToList();
|
||||||
|
|
||||||
|
for (int j = 0; j < orderedDesigns.Count; j++)
|
||||||
|
{
|
||||||
|
var entry = orderedDesigns[j];
|
||||||
|
bool isSelected = (tempDesignIndex == entry.OriginalIndex);
|
||||||
|
|
||||||
|
if (ImGui.Selectable(entry.Design.Name, isSelected))
|
||||||
|
{
|
||||||
|
tempDesignIndex = entry.OriginalIndex; // store original index to stay consistent
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isSelected)
|
||||||
|
ImGui.SetItemDefaultFocus();
|
||||||
|
}
|
||||||
|
|
||||||
|
ImGui.EndCombo();
|
||||||
|
}
|
||||||
|
|
||||||
|
selectedDesignIndex = tempDesignIndex;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ImGui.BeginDisabled();
|
||||||
|
ImGui.SetNextItemWidth(dropdownWidth);
|
||||||
|
ImGui.Combo("##DesignDropdown", ref selectedDesignIndex, Array.Empty<string>(), 0);
|
||||||
|
ImGui.EndDisabled();
|
||||||
|
}
|
||||||
|
|
||||||
|
ImGui.SameLine(0, spacing);
|
||||||
|
|
||||||
|
// Apply Button
|
||||||
|
if (selectedCharacterIndex >= 0)
|
||||||
|
{
|
||||||
|
if (ImGui.Button("Apply", new Vector2(50, ImGui.GetFrameHeight())))
|
||||||
|
{
|
||||||
|
ApplySelection();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ImGui.BeginDisabled();
|
||||||
|
ImGui.Button("Apply", new Vector2(50, ImGui.GetFrameHeight()));
|
||||||
|
ImGui.EndDisabled();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Nameplate Colour Bar (Appears below dropdowns if a character is selected)
|
||||||
|
if (selectedCharacterIndex >= 0)
|
||||||
|
{
|
||||||
|
Vector4 charColor = GetNameplateColor(plugin.Characters[selectedCharacterIndex]);
|
||||||
|
|
||||||
|
ImGui.PushStyleColor(ImGuiCol.ChildBg, charColor);
|
||||||
|
ImGui.BeginChild("ColorBar", new Vector2(ImGui.GetContentRegionAvail().X, 3), false);
|
||||||
|
ImGui.EndChild();
|
||||||
|
ImGui.PopStyleColor();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private Vector4 GetNameplateColor(Character character)
|
||||||
|
{
|
||||||
|
return new Vector4(character.NameplateColor.X, character.NameplateColor.Y, character.NameplateColor.Z, 1.0f);
|
||||||
|
}
|
||||||
|
|
||||||
|
private string GetSelectedCharacterName()
|
||||||
|
{
|
||||||
|
return (selectedCharacterIndex >= 0 && selectedCharacterIndex < plugin.Characters.Count)
|
||||||
|
? plugin.Characters[selectedCharacterIndex].Name
|
||||||
|
: "Select Character";
|
||||||
|
}
|
||||||
|
|
||||||
|
private string GetSelectedDesignName(Character character)
|
||||||
|
{
|
||||||
|
return (selectedDesignIndex >= 0 && selectedDesignIndex < character.Designs.Count)
|
||||||
|
? character.Designs[selectedDesignIndex].Name
|
||||||
|
: "Select Design";
|
||||||
|
}
|
||||||
|
private Vector4 GetContrastingTextColor(Vector4 bgColor)
|
||||||
|
{
|
||||||
|
// Calculate luminance (brightness perception)
|
||||||
|
float brightness = (0.299f * bgColor.X + 0.587f * bgColor.Y + 0.114f * bgColor.Z);
|
||||||
|
return brightness > 0.5f ? new Vector4(0, 0, 0, 1) : new Vector4(1, 1, 1, 1); // Black for bright backgrounds, white for dark
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void ApplySelection()
|
||||||
|
{
|
||||||
|
if (selectedCharacterIndex < 0 || selectedCharacterIndex >= plugin.Characters.Count)
|
||||||
|
return;
|
||||||
|
|
||||||
|
var character = plugin.Characters[selectedCharacterIndex];
|
||||||
|
|
||||||
|
plugin.ExecuteMacro(character.Macros, character, null);
|
||||||
|
plugin.SetActiveCharacter(character);
|
||||||
|
|
||||||
|
var profileToSend = new RPProfile
|
||||||
|
{
|
||||||
|
Pronouns = character.RPProfile?.Pronouns,
|
||||||
|
Gender = character.RPProfile?.Gender,
|
||||||
|
Age = character.RPProfile?.Age,
|
||||||
|
Race = character.RPProfile?.Race,
|
||||||
|
Orientation = character.RPProfile?.Orientation,
|
||||||
|
Relationship = character.RPProfile?.Relationship,
|
||||||
|
Occupation = character.RPProfile?.Occupation,
|
||||||
|
Abilities = character.RPProfile?.Abilities,
|
||||||
|
Bio = character.RPProfile?.Bio,
|
||||||
|
Tags = character.RPProfile?.Tags,
|
||||||
|
CustomImagePath = !string.IsNullOrEmpty(character.RPProfile?.CustomImagePath)
|
||||||
|
? character.RPProfile.CustomImagePath
|
||||||
|
: character.ImagePath,
|
||||||
|
ImageZoom = character.RPProfile?.ImageZoom ?? 1.0f,
|
||||||
|
ImageOffset = character.RPProfile?.ImageOffset ?? Vector2.Zero,
|
||||||
|
Sharing = character.RPProfile?.Sharing ?? ProfileSharing.AlwaysShare,
|
||||||
|
ProfileImageUrl = character.RPProfile?.ProfileImageUrl,
|
||||||
|
CharacterName = character.Name,
|
||||||
|
NameplateColor = character.NameplateColor
|
||||||
|
};
|
||||||
|
|
||||||
|
_ = Plugin.UploadProfileAsync(profileToSend, character.LastInGameName ?? character.Name);
|
||||||
|
|
||||||
|
// Always apply the design if selected
|
||||||
|
if (selectedDesignIndex >= 0 && selectedDesignIndex < character.Designs.Count)
|
||||||
|
{
|
||||||
|
plugin.ExecuteMacro(character.Designs[selectedDesignIndex].Macro);
|
||||||
|
plugin.Configuration.LastUsedDesignByCharacter[character.Name] = character.Designs[selectedDesignIndex].Name;
|
||||||
|
plugin.Configuration.LastUsedDesignCharacterKey = character.Name;
|
||||||
|
plugin.Configuration.Save();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Always apply idle pose if a valid one is set
|
||||||
|
if (character.IdlePoseIndex < 7)
|
||||||
|
plugin.PoseRestorer.RestorePosesFor(character);
|
||||||
|
else
|
||||||
|
Plugin.Log.Debug("[QuickSwitch] Skipping idle pose restore — IdlePoseIndex is None.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
75
CharacterSelectPlugin/RPProfile.cs
Normal file
75
CharacterSelectPlugin/RPProfile.cs
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
using Newtonsoft.Json;
|
||||||
|
using System.Numerics;
|
||||||
|
|
||||||
|
namespace CharacterSelectPlugin
|
||||||
|
{
|
||||||
|
public class RPProfile
|
||||||
|
{
|
||||||
|
public string? Pronouns { get; set; }
|
||||||
|
public string? Gender { get; set; }
|
||||||
|
public string? Age { get; set; }
|
||||||
|
public string? Orientation { get; set; }
|
||||||
|
public string? Relationship { get; set; }
|
||||||
|
public string? Occupation { get; set; }
|
||||||
|
public string? Abilities { get; set; }
|
||||||
|
public string? Bio { get; set; }
|
||||||
|
public string? Tags { get; set; }
|
||||||
|
|
||||||
|
public string? CustomImagePath { get; set; } // Optional override for profile image
|
||||||
|
public float ImageZoom { get; set; } = 1.0f;
|
||||||
|
public Vector2 ImageOffset { get; set; } = Vector2.Zero;
|
||||||
|
public ProfileSharing Sharing { get; set; } = ProfileSharing.AlwaysShare;
|
||||||
|
public string? ProfileImageUrl { get; set; }
|
||||||
|
public string? CharacterName { get; set; }
|
||||||
|
public Vector3Serializable NameplateColor { get; set; } = new(0.3f, 0.7f, 1f);
|
||||||
|
public string? Race { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
public bool IsEmpty()
|
||||||
|
{
|
||||||
|
return string.IsNullOrWhiteSpace(Pronouns)
|
||||||
|
&& string.IsNullOrWhiteSpace(Gender)
|
||||||
|
&& string.IsNullOrWhiteSpace(Age)
|
||||||
|
&& string.IsNullOrWhiteSpace(Race)
|
||||||
|
&& string.IsNullOrWhiteSpace(Orientation)
|
||||||
|
&& string.IsNullOrWhiteSpace(Relationship)
|
||||||
|
&& string.IsNullOrWhiteSpace(Occupation)
|
||||||
|
&& string.IsNullOrWhiteSpace(Abilities)
|
||||||
|
&& string.IsNullOrWhiteSpace(Bio)
|
||||||
|
&& string.IsNullOrWhiteSpace(Tags);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public enum ProfileSharing
|
||||||
|
{
|
||||||
|
AlwaysShare,
|
||||||
|
NeverShare
|
||||||
|
}
|
||||||
|
public static class RPProfileJson
|
||||||
|
{
|
||||||
|
public static string Serialize(RPProfile profile)
|
||||||
|
{
|
||||||
|
return JsonConvert.SerializeObject(profile);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static RPProfile? Deserialize(string json)
|
||||||
|
{
|
||||||
|
return JsonConvert.DeserializeObject<RPProfile>(json);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public struct Vector3Serializable
|
||||||
|
{
|
||||||
|
public float X;
|
||||||
|
public float Y;
|
||||||
|
public float Z;
|
||||||
|
|
||||||
|
public Vector3Serializable(float x, float y, float z)
|
||||||
|
{
|
||||||
|
X = x;
|
||||||
|
Y = y;
|
||||||
|
Z = z;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static implicit operator Vector3(Vector3Serializable v) => new(v.X, v.Y, v.Z);
|
||||||
|
public static implicit operator Vector3Serializable(Vector3 v) => new(v.X, v.Y, v.Z);
|
||||||
|
}
|
||||||
|
}
|
||||||
59
CharacterSelectPlugin/Windows/ConfigWindow.cs
Normal file
59
CharacterSelectPlugin/Windows/ConfigWindow.cs
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
using System;
|
||||||
|
using System.Numerics;
|
||||||
|
using Dalamud.Interface.Windowing;
|
||||||
|
using ImGuiNET;
|
||||||
|
|
||||||
|
namespace CharacterSelectPlugin.Windows;
|
||||||
|
|
||||||
|
public class ConfigWindow : Window, IDisposable
|
||||||
|
{
|
||||||
|
private Configuration configuration;
|
||||||
|
|
||||||
|
// We give this window a constant ID using ###
|
||||||
|
// This allows for labels being dynamic, like "{FPS Counter}fps###XYZ counter window",
|
||||||
|
// and the window ID will always be "###XYZ counter window" for ImGui
|
||||||
|
public ConfigWindow(Plugin plugin) : base("A Wonderful Configuration Window###With a constant ID")
|
||||||
|
{
|
||||||
|
Flags = ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoCollapse | ImGuiWindowFlags.NoScrollbar |
|
||||||
|
ImGuiWindowFlags.NoScrollWithMouse;
|
||||||
|
|
||||||
|
Size = new Vector2(232, 90);
|
||||||
|
SizeCondition = ImGuiCond.Always;
|
||||||
|
|
||||||
|
configuration = plugin.Configuration;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose() { }
|
||||||
|
|
||||||
|
public override void PreDraw()
|
||||||
|
{
|
||||||
|
// Flags must be added or removed before Draw() is being called, or they won't apply
|
||||||
|
if (configuration.IsConfigWindowMovable)
|
||||||
|
{
|
||||||
|
Flags &= ~ImGuiWindowFlags.NoMove;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Flags |= ImGuiWindowFlags.NoMove;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Draw()
|
||||||
|
{
|
||||||
|
// can't ref a property, so use a local copy
|
||||||
|
var configValue = configuration.SomePropertyToBeSavedAndWithADefault;
|
||||||
|
if (ImGui.Checkbox("Random Config Bool", ref configValue))
|
||||||
|
{
|
||||||
|
configuration.SomePropertyToBeSavedAndWithADefault = configValue;
|
||||||
|
// can save immediately on change, if you don't want to provide a "Save and Close" button
|
||||||
|
configuration.Save();
|
||||||
|
}
|
||||||
|
|
||||||
|
var movable = configuration.IsConfigWindowMovable;
|
||||||
|
if (ImGui.Checkbox("Movable Config Window", ref movable))
|
||||||
|
{
|
||||||
|
configuration.IsConfigWindowMovable = movable;
|
||||||
|
configuration.Save();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
1492
CharacterSelectPlugin/Windows/ImFileDialog.cpp
Normal file
1492
CharacterSelectPlugin/Windows/ImFileDialog.cpp
Normal file
File diff suppressed because it is too large
Load Diff
3706
CharacterSelectPlugin/Windows/MainWindow.cs
Normal file
3706
CharacterSelectPlugin/Windows/MainWindow.cs
Normal file
File diff suppressed because it is too large
Load Diff
174
CharacterSelectPlugin/Windows/PatchNotesWindow.cs
Normal file
174
CharacterSelectPlugin/Windows/PatchNotesWindow.cs
Normal file
@@ -0,0 +1,174 @@
|
|||||||
|
using Dalamud.Interface;
|
||||||
|
using Dalamud.Interface.Windowing;
|
||||||
|
using ImGuiNET;
|
||||||
|
using System.Numerics;
|
||||||
|
|
||||||
|
namespace CharacterSelectPlugin.Windows
|
||||||
|
{
|
||||||
|
public class PatchNotesWindow : Window
|
||||||
|
{
|
||||||
|
private readonly Plugin plugin;
|
||||||
|
|
||||||
|
public PatchNotesWindow(Plugin plugin) : base("Character Select+ – What's New?", ImGuiWindowFlags.AlwaysAutoResize)
|
||||||
|
{
|
||||||
|
this.plugin = plugin;
|
||||||
|
IsOpen = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Draw()
|
||||||
|
{
|
||||||
|
ImGui.SetNextWindowSizeConstraints(new Vector2(480, 1051), new Vector2(float.MaxValue, float.MaxValue));
|
||||||
|
ImGui.PushTextWrapPos();
|
||||||
|
|
||||||
|
ImGui.TextColored(new Vector4(0.2f, 1.0f, 0.2f, 1.0f), $"★ New in v{Plugin.CurrentPluginVersion}");
|
||||||
|
ImGui.Separator();
|
||||||
|
ImGui.Spacing();
|
||||||
|
|
||||||
|
// Latest Patch Notes
|
||||||
|
if (ImGui.CollapsingHeader("v1.1.0.8 - v1.1.1.2 – April 18 2025", ImGuiTreeNodeFlags.DefaultOpen))
|
||||||
|
{
|
||||||
|
// Apply Character on Login
|
||||||
|
ImGui.PushFont(UiBuilder.IconFont); ImGui.Text("\uf4fc"); ImGui.PopFont(); ImGui.SameLine();
|
||||||
|
ImGui.TextColored(new Vector4(0.8f, 0.95f, 1.0f, 1.0f), "Apply Character on Login");
|
||||||
|
ImGui.BulletText("New opt-in setting in the plugin options.");
|
||||||
|
ImGui.BulletText("Character Select+ will remember the last applied character.");
|
||||||
|
ImGui.BulletText("Next time you log in, it will automatically apply that character.");
|
||||||
|
ImGui.BulletText("⚠️ May conflict if you are using Glamourer Automations.");
|
||||||
|
ImGui.Separator();
|
||||||
|
|
||||||
|
// Apply Appearance on Job Change
|
||||||
|
ImGui.PushFont(UiBuilder.IconFont); ImGui.Text("\uf4fc"); ImGui.PopFont(); ImGui.SameLine();
|
||||||
|
ImGui.TextColored(new Vector4(0.8f, 0.95f, 1.0f, 1.0f), "Apply Appearance on Job Change");
|
||||||
|
ImGui.BulletText("New opt-in setting in the plugin options.");
|
||||||
|
ImGui.BulletText("Character Select+ will remember the last applied character and/or design.");
|
||||||
|
ImGui.BulletText("When you switch between jobs, it will automatically apply that character/design.");
|
||||||
|
ImGui.BulletText("⚠️ WILL 100 percent conflict if you are using Glamourer Automations.");
|
||||||
|
ImGui.Separator();
|
||||||
|
|
||||||
|
// Designs
|
||||||
|
ImGui.PushFont(UiBuilder.IconFont); ImGui.Text("\uf07b"); ImGui.PopFont(); ImGui.SameLine();
|
||||||
|
ImGui.TextColored(new Vector4(0.8f, 0.95f, 1.0f, 1.0f), "Design Panel Rework");
|
||||||
|
ImGui.BulletText("Buttons now only appear on hover, keeping the panel clean and focused.");
|
||||||
|
ImGui.BulletText("Reorder designs by dragging the colored handle‐bar on the left — click and drag to move.");
|
||||||
|
ImGui.BulletText("Create new folders inline via the folder icon next to the + button, no extra windows needed.");
|
||||||
|
ImGui.BulletText("Drag-and-drop designs into, out of, and between folders directly within the panel.");
|
||||||
|
ImGui.BulletText("Right-click folders for inline Rename/Delete context menu, with instant application.");
|
||||||
|
ImGui.Separator();
|
||||||
|
|
||||||
|
// Compact Quick Switch
|
||||||
|
ImGui.PushFont(UiBuilder.IconFont); ImGui.Text("\uf0a0"); ImGui.PopFont(); ImGui.SameLine();
|
||||||
|
ImGui.TextColored(new Vector4(0.8f, 0.95f, 1.0f, 1.0f), "Compact Quick Character Switch");
|
||||||
|
ImGui.BulletText("Toggleable setting to hide the title bar and window frame for a slim bar.");
|
||||||
|
ImGui.BulletText("Keeps dropdowns and apply button only, preserving full switch functionality.");
|
||||||
|
ImGui.Separator();
|
||||||
|
|
||||||
|
// UI Scaling Option
|
||||||
|
ImGui.PushFont(UiBuilder.IconFont); ImGui.Text("\uf00e"); ImGui.PopFont(); ImGui.SameLine(); // <i class="fas fa-search-plus"></i>
|
||||||
|
ImGui.TextColored(new Vector4(0.8f, 0.95f, 1.0f, 1.0f), "UI Scale Setting");
|
||||||
|
ImGui.BulletText("You can now adjust the plugin UI scale from the settings menu.");
|
||||||
|
ImGui.BulletText("Great for users on high-resolution monitors or 4K displays.");
|
||||||
|
ImGui.BulletText("Let me know if there are any issues using this.");
|
||||||
|
ImGui.BulletText("⚠️ If your UI is fine as-is, best to leave this be.");
|
||||||
|
ImGui.Separator();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Previous Patch Notes
|
||||||
|
if (ImGui.CollapsingHeader("v1.1.0.(0-7) – April 09 2025", ImGuiTreeNodeFlags.None))
|
||||||
|
{
|
||||||
|
Draw1100Notes();
|
||||||
|
}
|
||||||
|
|
||||||
|
ImGui.Spacing(); ImGui.Spacing();
|
||||||
|
float windowWidth = ImGui.GetWindowSize().X;
|
||||||
|
float buttonWidth = 90f;
|
||||||
|
ImGui.SetCursorPosX((windowWidth - buttonWidth) * 0.5f);
|
||||||
|
|
||||||
|
if (ImGui.Button("Got it!", new Vector2(buttonWidth, 0)))
|
||||||
|
{
|
||||||
|
plugin.Configuration.LastSeenVersion = Plugin.CurrentPluginVersion;
|
||||||
|
plugin.Configuration.Save();
|
||||||
|
IsOpen = false;
|
||||||
|
plugin.ToggleMainUI();
|
||||||
|
}
|
||||||
|
|
||||||
|
ImGui.PopTextWrapPos();
|
||||||
|
}
|
||||||
|
private void Draw1100Notes()
|
||||||
|
{
|
||||||
|
// RP Profile Panel
|
||||||
|
ImGui.PushFont(UiBuilder.IconFont); ImGui.Text("\uf2c2"); ImGui.PopFont(); ImGui.SameLine();
|
||||||
|
ImGui.TextColored(new Vector4(0.8f, 0.95f, 1.0f, 1.0f), "RolePlay Profile Panel");
|
||||||
|
ImGui.BulletText("Add bios, pronouns, orientation, and more for each character.");
|
||||||
|
ImGui.BulletText("Choose a unique image or reuse the character image.");
|
||||||
|
ImGui.BulletText("Use pan and zoom controls to fine-tune the RP portrait.");
|
||||||
|
ImGui.BulletText("Control visibility: keep private or share with others.");
|
||||||
|
ImGui.BulletText("Once applied, that character’s RP profile is active.");
|
||||||
|
ImGui.BulletText("You can view others’ profiles (if shared) and vice versa.");
|
||||||
|
ImGui.BulletText("Use /viewrp self | /t | First Last@World to view.");
|
||||||
|
ImGui.BulletText("Right-click in the party list, friends list, or chat to access shared RP cards.");
|
||||||
|
ImGui.Separator();
|
||||||
|
|
||||||
|
// Glamourer Automations
|
||||||
|
ImGui.PushFont(UiBuilder.IconFont); ImGui.Text("\uf5c3"); ImGui.PopFont(); ImGui.SameLine();
|
||||||
|
ImGui.TextColored(new Vector4(0.8f, 0.95f, 1.0f, 1.0f), "Glamourer Automations for Characters & Designs");
|
||||||
|
ImGui.BulletText("Characters & Designs can now trigger specific Glamourer Automation profiles.");
|
||||||
|
ImGui.BulletText("This is *opt-in* — toggle it in plugin settings.");
|
||||||
|
ImGui.BulletText("If no automation is assigned, the design defaults to 'None'.");
|
||||||
|
ImGui.Spacing();
|
||||||
|
ImGui.Text("To avoid errors, set up a 'None' automation:");
|
||||||
|
ImGui.BulletText("1. Open Glamourer > Automations.");
|
||||||
|
ImGui.BulletText("2. Create an Automation named 'None'.");
|
||||||
|
ImGui.BulletText("3. Add your in-game character name beside 'Any World' then Set to Character.");
|
||||||
|
ImGui.BulletText("4. That’s it. Don’t touch anything else, you’re done!");
|
||||||
|
ImGui.Separator();
|
||||||
|
|
||||||
|
// Customize+
|
||||||
|
ImGui.PushFont(UiBuilder.IconFont); ImGui.Text("\uf234"); ImGui.PopFont(); ImGui.SameLine();
|
||||||
|
ImGui.TextColored(new Vector4(0.8f, 0.95f, 1.0f, 1.0f), "Customize+ Profiles for Designs");
|
||||||
|
ImGui.BulletText("Each design can now assign its own Customize+ profile.");
|
||||||
|
ImGui.BulletText("This gives you finer control over visual changes per design.");
|
||||||
|
ImGui.Separator();
|
||||||
|
|
||||||
|
// Manual Reordering
|
||||||
|
ImGui.PushFont(UiBuilder.IconFont); ImGui.Text("\uf0b0"); ImGui.PopFont(); ImGui.SameLine();
|
||||||
|
ImGui.TextColored(new Vector4(0.8f, 0.95f, 1.0f, 1.0f), "Manual Character Reordering");
|
||||||
|
ImGui.BulletText("Use the 'Reorder Characters' button at the bottom-left.");
|
||||||
|
ImGui.BulletText("Drag and drop profiles, then press Save to lock it in.");
|
||||||
|
ImGui.Separator();
|
||||||
|
|
||||||
|
// Search
|
||||||
|
ImGui.PushFont(UiBuilder.IconFont); ImGui.Text("\uf002"); ImGui.PopFont(); ImGui.SameLine();
|
||||||
|
ImGui.TextColored(new Vector4(0.8f, 0.95f, 1.0f, 1.0f), "Character Search Bar");
|
||||||
|
ImGui.BulletText("Click the magnifying glass to search by name instantly.");
|
||||||
|
ImGui.Separator();
|
||||||
|
|
||||||
|
// Tagging
|
||||||
|
ImGui.PushFont(UiBuilder.IconFont); ImGui.Text("\uf07b"); ImGui.PopFont(); ImGui.SameLine();
|
||||||
|
ImGui.TextColored(new Vector4(0.8f, 0.95f, 1.0f, 1.0f), "Tagging System");
|
||||||
|
ImGui.BulletText("Add comma-separated 'tags' to organize characters.");
|
||||||
|
ImGui.BulletText("Click the filter icon to filter — characters can appear in multiple tags!");
|
||||||
|
ImGui.Separator();
|
||||||
|
|
||||||
|
// Apply to Target
|
||||||
|
ImGui.PushFont(UiBuilder.IconFont); ImGui.Text("\uf140"); ImGui.PopFont(); ImGui.SameLine();
|
||||||
|
ImGui.TextColored(new Vector4(0.8f, 0.95f, 1.0f, 1.0f), "Right-click → Apply to Target");
|
||||||
|
ImGui.BulletText("Right-click a character in Character Select+ with a target selected.");
|
||||||
|
ImGui.BulletText("Apply their setup — or even one of their individual designs — to the target.");
|
||||||
|
ImGui.Separator();
|
||||||
|
|
||||||
|
// Copy Designs
|
||||||
|
ImGui.PushFont(UiBuilder.IconFont); ImGui.Text("\uf0c5"); ImGui.PopFont(); ImGui.SameLine();
|
||||||
|
ImGui.TextColored(new Vector4(0.8f, 0.95f, 1.0f, 1.0f), "Copy Designs Between Characters");
|
||||||
|
ImGui.BulletText("Hold Shift and click the '+' button in Designs to open the Design Importer.");
|
||||||
|
ImGui.BulletText("Click the + beside a design to copy it. Repeat as needed!");
|
||||||
|
ImGui.Separator();
|
||||||
|
|
||||||
|
// Other changes
|
||||||
|
ImGui.PushFont(UiBuilder.IconFont); ImGui.Text("\uf085"); ImGui.PopFont(); ImGui.SameLine();
|
||||||
|
ImGui.TextColored(new Vector4(0.65f, 0.65f, 0.9f, 1.0f), "Other Changes");
|
||||||
|
ImGui.BulletText("Older Design macros were automatically upgraded.");
|
||||||
|
ImGui.BulletText("Various UI tweaks, bugfixes, and behind-the-scenes improvements.");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
363
CharacterSelectPlugin/Windows/RPProfileViewWindow.cs
Normal file
363
CharacterSelectPlugin/Windows/RPProfileViewWindow.cs
Normal file
@@ -0,0 +1,363 @@
|
|||||||
|
using Dalamud.Interface.Windowing;
|
||||||
|
using ImGuiNET;
|
||||||
|
using ImGuiScene;
|
||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Numerics;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace CharacterSelectPlugin.Windows
|
||||||
|
{
|
||||||
|
public class RPProfileViewWindow : Window
|
||||||
|
{
|
||||||
|
private readonly Plugin plugin;
|
||||||
|
private Character? character;
|
||||||
|
private RPProfile? externalProfile = null;
|
||||||
|
private bool showingExternal = false;
|
||||||
|
private bool imageDownloadStarted = false;
|
||||||
|
private bool imageDownloadComplete = false;
|
||||||
|
private string? downloadedImagePath = null;
|
||||||
|
private TextureWrap? cachedTexture;
|
||||||
|
private string? cachedTexturePath;
|
||||||
|
private bool bringToFront = false;
|
||||||
|
private bool firstOpen = true;
|
||||||
|
public RPProfile? CurrentProfile => showingExternal ? externalProfile : character?.RPProfile;
|
||||||
|
|
||||||
|
public RPProfileViewWindow(Plugin plugin)
|
||||||
|
: base("RP Profile", ImGuiWindowFlags.AlwaysAutoResize)
|
||||||
|
{
|
||||||
|
this.plugin = plugin;
|
||||||
|
IsOpen = false;
|
||||||
|
}
|
||||||
|
public void SetCharacter(Character character)
|
||||||
|
{
|
||||||
|
this.character = character;
|
||||||
|
showingExternal = false;
|
||||||
|
bringToFront = true;
|
||||||
|
|
||||||
|
// Clear old cached texture so image reloads properly
|
||||||
|
cachedTexture?.Dispose();
|
||||||
|
cachedTexture = null;
|
||||||
|
cachedTexturePath = null;
|
||||||
|
}
|
||||||
|
public override void PreDraw()
|
||||||
|
{
|
||||||
|
if (IsOpen && bringToFront)
|
||||||
|
{
|
||||||
|
ImGui.SetNextWindowFocus();
|
||||||
|
|
||||||
|
if (firstOpen)
|
||||||
|
{
|
||||||
|
ImGui.SetNextWindowPos(ImGui.GetMainViewport().GetCenter(), ImGuiCond.Appearing, new Vector2(0.5f, 0.5f));
|
||||||
|
firstOpen = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
bringToFront = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Draw()
|
||||||
|
{
|
||||||
|
RPProfile? rp = null;
|
||||||
|
Vector3 nameplateColor;
|
||||||
|
string displayName;
|
||||||
|
// Case: Viewing an external profile
|
||||||
|
if (showingExternal && externalProfile != null)
|
||||||
|
{
|
||||||
|
rp = externalProfile;
|
||||||
|
nameplateColor = (Vector3)externalProfile.NameplateColor;
|
||||||
|
displayName = externalProfile.CharacterName ?? "External Profile";
|
||||||
|
}
|
||||||
|
// Case: Viewing a local character's profile
|
||||||
|
else if (character != null && character.RPProfile != null)
|
||||||
|
{
|
||||||
|
rp = character.RPProfile;
|
||||||
|
nameplateColor = character.NameplateColor;
|
||||||
|
displayName = character.Name;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ImGui.Text("No profile available.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
ImGui.PushTextWrapPos();
|
||||||
|
|
||||||
|
// Top Bar
|
||||||
|
var color = ResolveNameplateColor();
|
||||||
|
var topColor = new Vector4(color.X, color.Y, color.Z, 1f);
|
||||||
|
var drawList = ImGui.GetWindowDrawList();
|
||||||
|
var topLeft = ImGui.GetCursorScreenPos();
|
||||||
|
drawList.AddRectFilled(topLeft, topLeft + new Vector2(600, 6), ImGui.ColorConvertFloat4ToU32(topColor));
|
||||||
|
|
||||||
|
ImGui.Dummy(new Vector2(1, 10)); // spacer
|
||||||
|
|
||||||
|
ImGui.BeginChild("ProfileCard", new Vector2(600, 210), false);
|
||||||
|
|
||||||
|
// Left (Image + Tags)
|
||||||
|
ImGui.BeginGroup();
|
||||||
|
|
||||||
|
string fallback = Path.Combine(plugin.PluginDirectory, "Assets", "Default.png");
|
||||||
|
string? imagePath = null;
|
||||||
|
|
||||||
|
// If viewing external profile and has ProfileImageUrl
|
||||||
|
if (showingExternal && !string.IsNullOrEmpty(rp.ProfileImageUrl))
|
||||||
|
{
|
||||||
|
if (!imageDownloadStarted)
|
||||||
|
{
|
||||||
|
imageDownloadStarted = true;
|
||||||
|
Task.Run(() =>
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
using var client = new System.Net.Http.HttpClient();
|
||||||
|
var data = client.GetByteArrayAsync(rp.ProfileImageUrl).GetAwaiter().GetResult();
|
||||||
|
|
||||||
|
var hash = Convert.ToBase64String(System.Security.Cryptography.MD5.HashData(System.Text.Encoding.UTF8.GetBytes(rp.ProfileImageUrl)))
|
||||||
|
.Replace("/", "_").Replace("+", "-");
|
||||||
|
string fileName = $"RPImage_{hash}.png";
|
||||||
|
string path = Path.Combine(Plugin.PluginInterface.GetPluginConfigDirectory(), fileName);
|
||||||
|
|
||||||
|
// Save once only if not exists
|
||||||
|
File.WriteAllBytes(path, data);
|
||||||
|
Plugin.Log.Debug($"[RPProfileView] Downloaded image to: {path}");
|
||||||
|
|
||||||
|
|
||||||
|
downloadedImagePath = path;
|
||||||
|
imageDownloadComplete = true;
|
||||||
|
|
||||||
|
// Force window to update and focus
|
||||||
|
bringToFront = true;
|
||||||
|
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Plugin.Log.Error($"[RPProfileViewWindow] Failed to download profile image: {ex.Message}");
|
||||||
|
imageDownloadComplete = true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (imageDownloadComplete && File.Exists(downloadedImagePath))
|
||||||
|
{
|
||||||
|
imagePath = downloadedImagePath;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Local fallback options
|
||||||
|
else if (!string.IsNullOrEmpty(rp.CustomImagePath) && File.Exists(rp.CustomImagePath))
|
||||||
|
{
|
||||||
|
imagePath = rp.CustomImagePath;
|
||||||
|
}
|
||||||
|
else if (!showingExternal && character?.ImagePath is { Length: > 0 } && File.Exists(character.ImagePath))
|
||||||
|
{
|
||||||
|
imagePath = character.ImagePath;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Final fallback
|
||||||
|
string finalImagePath = !string.IsNullOrEmpty(imagePath) && File.Exists(imagePath) ? imagePath : fallback;
|
||||||
|
|
||||||
|
|
||||||
|
var texture = Plugin.TextureProvider.GetFromFile(finalImagePath).GetWrapOrDefault();
|
||||||
|
if (texture != null)
|
||||||
|
{
|
||||||
|
float previewSize = 150f;
|
||||||
|
float zoom = Math.Clamp(rp.ImageZoom, 0.5f, 5.0f);
|
||||||
|
Vector2 offset = rp.ImageOffset;
|
||||||
|
|
||||||
|
float texAspect = (float)texture.Width / texture.Height;
|
||||||
|
float drawWidth, drawHeight;
|
||||||
|
|
||||||
|
if (texAspect >= 1f)
|
||||||
|
{
|
||||||
|
drawHeight = previewSize * zoom;
|
||||||
|
drawWidth = drawHeight * texAspect;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
drawWidth = previewSize * zoom;
|
||||||
|
drawHeight = drawWidth / texAspect;
|
||||||
|
}
|
||||||
|
|
||||||
|
Vector2 drawSize = new(drawWidth, drawHeight);
|
||||||
|
Vector2 cursor = ImGui.GetCursorScreenPos();
|
||||||
|
|
||||||
|
// Outer border frame
|
||||||
|
drawList.AddRectFilled(cursor - new Vector2(2, 2), cursor + new Vector2(previewSize + 2), ImGui.ColorConvertFloat4ToU32(topColor), 4);
|
||||||
|
|
||||||
|
// Crop area
|
||||||
|
ImGui.BeginChild("ImageView", new Vector2(previewSize), false, ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoScrollWithMouse);
|
||||||
|
ImGui.SetCursorScreenPos(cursor + offset);
|
||||||
|
ImGui.Image(texture.ImGuiHandle, drawSize);
|
||||||
|
ImGui.EndChild();
|
||||||
|
}
|
||||||
|
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ImGui.Dummy(new Vector2(150, 150));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrWhiteSpace(rp.Tags))
|
||||||
|
{
|
||||||
|
ImGui.Spacing();
|
||||||
|
var tagColor = new Vector4((color.X + 1f) / 2f, (color.Y + 1f) / 2f, (color.Z + 1f) / 2f, 0.65f);
|
||||||
|
var tags = rp.Tags.Split(',').Select(t => t.Trim()).Where(t => !string.IsNullOrEmpty(t));
|
||||||
|
foreach (var tag in tags)
|
||||||
|
{
|
||||||
|
ImGui.PushStyleColor(ImGuiCol.Button, tagColor);
|
||||||
|
ImGui.Button(tag);
|
||||||
|
ImGui.PopStyleColor();
|
||||||
|
ImGui.SameLine();
|
||||||
|
}
|
||||||
|
ImGui.NewLine();
|
||||||
|
}
|
||||||
|
|
||||||
|
ImGui.EndGroup();
|
||||||
|
|
||||||
|
// Name + Fields
|
||||||
|
ImGui.SameLine();
|
||||||
|
ImGui.SetCursorPosX(180); // ensure it never touches image
|
||||||
|
|
||||||
|
ImGui.BeginGroup();
|
||||||
|
// Header: Name – Pronouns Roleplay Profile
|
||||||
|
ImGui.TextColored(new Vector4(1f, 0.75f, 0.4f, 1f), displayName);
|
||||||
|
if (!string.IsNullOrWhiteSpace(rp.Pronouns))
|
||||||
|
{
|
||||||
|
ImGui.SameLine();
|
||||||
|
ImGui.Text($"– {rp.Pronouns}");
|
||||||
|
}
|
||||||
|
ImGui.SameLine();
|
||||||
|
ImGui.TextDisabled("Roleplay Profile");
|
||||||
|
|
||||||
|
ImGui.Spacing();
|
||||||
|
|
||||||
|
// New field layout
|
||||||
|
float colSplit = 200f;
|
||||||
|
DrawFieldRow("▪ Gender", rp.Gender, "▪ Age", rp.Age, colSplit);
|
||||||
|
DrawFieldRow("▪ Race", rp.Race, "▪ Orientation", rp.Orientation, colSplit);
|
||||||
|
DrawFieldRow("▪ Relationship", rp.Relationship, "▪ Occupation", rp.Occupation, colSplit);
|
||||||
|
if (!string.IsNullOrWhiteSpace(rp.Abilities))
|
||||||
|
{
|
||||||
|
ImGui.Spacing();
|
||||||
|
ImGui.Text("Abilities:");
|
||||||
|
|
||||||
|
var abilities = rp.Abilities.Split(',')
|
||||||
|
.Select(a => a.Trim())
|
||||||
|
.Where(a => !string.IsNullOrEmpty(a));
|
||||||
|
|
||||||
|
ImGui.PushTextWrapPos();
|
||||||
|
ImGui.Text(string.Join(" • ", abilities));
|
||||||
|
ImGui.PopTextWrapPos();
|
||||||
|
}
|
||||||
|
|
||||||
|
ImGui.EndGroup();
|
||||||
|
ImGui.EndChild();
|
||||||
|
|
||||||
|
// Divider Bar Below Card
|
||||||
|
// Diamond Divider
|
||||||
|
var diamond = "◆";
|
||||||
|
var diamondWidth = ImGui.CalcTextSize(diamond).X;
|
||||||
|
|
||||||
|
float barPadding = 6f;
|
||||||
|
float totalWidth = 600f;
|
||||||
|
float barLength = (totalWidth - diamondWidth - (barPadding * 2)) / 2f;
|
||||||
|
float dividerY = ImGui.GetCursorScreenPos().Y;
|
||||||
|
float dividerX = ImGui.GetCursorScreenPos().X;
|
||||||
|
|
||||||
|
drawList.AddLine(
|
||||||
|
new Vector2(dividerX, dividerY),
|
||||||
|
new Vector2(dividerX + barLength, dividerY),
|
||||||
|
ImGui.ColorConvertFloat4ToU32(topColor), 1f
|
||||||
|
);
|
||||||
|
|
||||||
|
ImGui.SetCursorScreenPos(new Vector2(dividerX + barLength + barPadding, dividerY - ImGui.GetTextLineHeight() / 2));
|
||||||
|
ImGui.TextColored(topColor, diamond);
|
||||||
|
|
||||||
|
drawList.AddLine(
|
||||||
|
new Vector2(dividerX + barLength + barPadding + diamondWidth + barPadding, dividerY),
|
||||||
|
new Vector2(dividerX + totalWidth, dividerY),
|
||||||
|
ImGui.ColorConvertFloat4ToU32(topColor), 1f
|
||||||
|
);
|
||||||
|
|
||||||
|
ImGui.Dummy(new Vector2(1, 8));
|
||||||
|
|
||||||
|
|
||||||
|
// Bio Section
|
||||||
|
ImGui.Text("Bio:");
|
||||||
|
ImGui.PushStyleColor(ImGuiCol.ChildBg, new Vector4(0.15f, 0.15f, 0.15f, 0.7f));
|
||||||
|
ImGui.BeginChild("BioScroll", new Vector2(600, 120), true);
|
||||||
|
ImGui.TextWrapped(string.IsNullOrWhiteSpace(rp.Bio) ? "—" : rp.Bio);
|
||||||
|
ImGui.EndChild();
|
||||||
|
ImGui.PopStyleColor();
|
||||||
|
|
||||||
|
// Centered Edit Button
|
||||||
|
ImGui.Spacing();
|
||||||
|
ImGui.SetCursorPosX((ImGui.GetWindowWidth() - 120) * 0.5f);
|
||||||
|
|
||||||
|
if (!showingExternal && character != null && ImGui.Button("Edit Profile", new Vector2(120, 0)))
|
||||||
|
{
|
||||||
|
plugin.RPProfileEditor.SetCharacter(character);
|
||||||
|
plugin.RPProfileEditor.IsOpen = true;
|
||||||
|
IsOpen = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
ImGui.PopTextWrapPos();
|
||||||
|
if (!IsOpen)
|
||||||
|
{
|
||||||
|
showingExternal = false;
|
||||||
|
externalProfile = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void DrawFieldRow(string label1, string? val1, string label2, string? val2, float columnSplit)
|
||||||
|
{
|
||||||
|
float rowStartX = ImGui.GetCursorPosX();
|
||||||
|
var labelColor = new Vector4(1f, 1f, 0.85f, 1f);
|
||||||
|
|
||||||
|
// First column
|
||||||
|
ImGui.SetCursorPosX(rowStartX);
|
||||||
|
ImGui.TextColored(labelColor, label1 + ":");
|
||||||
|
ImGui.SameLine();
|
||||||
|
ImGui.Text(string.IsNullOrWhiteSpace(val1) ? "—" : val1);
|
||||||
|
|
||||||
|
// Second column
|
||||||
|
ImGui.SameLine();
|
||||||
|
ImGui.SetCursorPosX(rowStartX + columnSplit);
|
||||||
|
ImGui.TextColored(labelColor, label2 + ":");
|
||||||
|
ImGui.SameLine();
|
||||||
|
ImGui.Text(string.IsNullOrWhiteSpace(val2) ? "—" : val2);
|
||||||
|
}
|
||||||
|
public void SetExternalProfile(RPProfile profile)
|
||||||
|
{
|
||||||
|
externalProfile = profile;
|
||||||
|
showingExternal = true;
|
||||||
|
|
||||||
|
imageDownloadStarted = false;
|
||||||
|
imageDownloadComplete = false;
|
||||||
|
downloadedImagePath = null;
|
||||||
|
|
||||||
|
cachedTexture?.Dispose();
|
||||||
|
cachedTexture = null;
|
||||||
|
cachedTexturePath = null;
|
||||||
|
|
||||||
|
bringToFront = true; // Bring the window to front
|
||||||
|
}
|
||||||
|
private Vector3 ResolveNameplateColor()
|
||||||
|
{
|
||||||
|
Vector3 fallback = new(0.3f, 0.6f, 1.0f); // soft blue
|
||||||
|
|
||||||
|
if (showingExternal && externalProfile != null)
|
||||||
|
{
|
||||||
|
var c = (Vector3)externalProfile.NameplateColor;
|
||||||
|
// If the colour is effectively black or unset, fallback
|
||||||
|
if (c.X < 0.01f && c.Y < 0.01f && c.Z < 0.01f)
|
||||||
|
return fallback;
|
||||||
|
|
||||||
|
return c;
|
||||||
|
}
|
||||||
|
|
||||||
|
return character?.NameplateColor ?? fallback;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
314
CharacterSelectPlugin/Windows/RPProfileWindow.cs
Normal file
314
CharacterSelectPlugin/Windows/RPProfileWindow.cs
Normal file
@@ -0,0 +1,314 @@
|
|||||||
|
using Dalamud.Interface.Windowing;
|
||||||
|
using ImGuiNET;
|
||||||
|
using System.IO;
|
||||||
|
using System;
|
||||||
|
using System.Numerics;
|
||||||
|
using System.Threading;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace CharacterSelectPlugin.Windows
|
||||||
|
{
|
||||||
|
public class RPProfileWindow : Window
|
||||||
|
{
|
||||||
|
private readonly Plugin plugin;
|
||||||
|
private Character? character;
|
||||||
|
private RPProfile profile = new();
|
||||||
|
|
||||||
|
private string pronouns = "";
|
||||||
|
private string gender = "";
|
||||||
|
private string age = "";
|
||||||
|
private string orientation = "";
|
||||||
|
private string relationship = "";
|
||||||
|
private string occupation = "";
|
||||||
|
private string abilities = "";
|
||||||
|
private string bio = "";
|
||||||
|
private string tags = "";
|
||||||
|
private string race = "";
|
||||||
|
|
||||||
|
public RPProfileWindow(Plugin plugin) : base("Roleplay Profile", ImGuiWindowFlags.AlwaysAutoResize)
|
||||||
|
{
|
||||||
|
this.plugin = plugin;
|
||||||
|
IsOpen = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetCharacter(Character character)
|
||||||
|
{
|
||||||
|
this.character = character;
|
||||||
|
profile = character.RPProfile ??= new RPProfile();
|
||||||
|
|
||||||
|
var rp = character.RPProfile ??= new RPProfile();
|
||||||
|
pronouns = rp.Pronouns ?? "";
|
||||||
|
gender = rp.Gender ?? "";
|
||||||
|
age = rp.Age ?? "";
|
||||||
|
race = rp.Race ?? "";
|
||||||
|
orientation = rp.Orientation ?? "";
|
||||||
|
relationship = rp.Relationship ?? "";
|
||||||
|
occupation = rp.Occupation ?? "";
|
||||||
|
abilities = rp.Abilities ?? "";
|
||||||
|
bio = rp.Bio ?? "";
|
||||||
|
tags = rp.Tags ?? "";
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Draw()
|
||||||
|
{
|
||||||
|
if (character == null)
|
||||||
|
{
|
||||||
|
ImGui.Text("No character selected.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var rp = character.RPProfile ??= new RPProfile();
|
||||||
|
|
||||||
|
// Image Override Section (Top of Window)
|
||||||
|
ImGui.Text("Profile Image:");
|
||||||
|
|
||||||
|
// Choose Image Button
|
||||||
|
if (ImGui.Button("Choose Image"))
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread thread = new Thread(() =>
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
using (OpenFileDialog openFileDialog = new OpenFileDialog())
|
||||||
|
{
|
||||||
|
openFileDialog.Filter = "PNG files (*.png)|*.png";
|
||||||
|
openFileDialog.Title = "Select Profile Image";
|
||||||
|
|
||||||
|
if (openFileDialog.ShowDialog() == DialogResult.OK)
|
||||||
|
{
|
||||||
|
lock (this)
|
||||||
|
{
|
||||||
|
rp.CustomImagePath = openFileDialog.FileName;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Plugin.Log.Error($"Error opening file picker: {ex.Message}");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
thread.SetApartmentState(ApartmentState.STA);
|
||||||
|
thread.Start();
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Plugin.Log.Error($"Critical file picker error: {ex.Message}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ImGui.SameLine();
|
||||||
|
if (!string.IsNullOrEmpty(rp.CustomImagePath))
|
||||||
|
{
|
||||||
|
if (ImGui.Button("Clear"))
|
||||||
|
rp.CustomImagePath = "";
|
||||||
|
}
|
||||||
|
|
||||||
|
// Fixed-Frame Image Preview with Zoom & Pan
|
||||||
|
string pluginDir = plugin.PluginDirectory;
|
||||||
|
string fallback = Path.Combine(pluginDir, "Assets", "Default.png");
|
||||||
|
string finalImagePath = !string.IsNullOrEmpty(rp.CustomImagePath) && File.Exists(rp.CustomImagePath)
|
||||||
|
? rp.CustomImagePath
|
||||||
|
: (!string.IsNullOrEmpty(character.ImagePath) && File.Exists(character.ImagePath)
|
||||||
|
? character.ImagePath
|
||||||
|
: fallback);
|
||||||
|
|
||||||
|
if (File.Exists(finalImagePath))
|
||||||
|
{
|
||||||
|
var texture = Plugin.TextureProvider.GetFromFile(finalImagePath).GetWrapOrDefault();
|
||||||
|
if (texture != null)
|
||||||
|
{
|
||||||
|
float frameSize = 150f;
|
||||||
|
float zoom = Math.Clamp(rp.ImageZoom, 0.5f, 5.0f);
|
||||||
|
Vector2 offset = rp.ImageOffset;
|
||||||
|
|
||||||
|
float imgAspect = (float)texture.Width / texture.Height;
|
||||||
|
float drawWidth, drawHeight;
|
||||||
|
|
||||||
|
if (imgAspect >= 1f)
|
||||||
|
{
|
||||||
|
drawHeight = frameSize * zoom;
|
||||||
|
drawWidth = drawHeight * imgAspect;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
drawWidth = frameSize * zoom;
|
||||||
|
drawHeight = drawWidth / imgAspect;
|
||||||
|
}
|
||||||
|
|
||||||
|
Vector2 drawSize = new(drawWidth, drawHeight);
|
||||||
|
Vector2 drawPos = ImGui.GetCursorScreenPos() + offset;
|
||||||
|
|
||||||
|
// Background border
|
||||||
|
var cursor = ImGui.GetCursorScreenPos();
|
||||||
|
var drawList = ImGui.GetWindowDrawList();
|
||||||
|
drawList.AddRectFilled(cursor - new Vector2(2, 2), cursor + new Vector2(frameSize + 2), ImGui.ColorConvertFloat4ToU32(new Vector4(0.4f, 0.4f, 0.4f, 1f)), 4);
|
||||||
|
|
||||||
|
// Crop region
|
||||||
|
ImGui.BeginChild("ImageCropFrame", new Vector2(frameSize), false, ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoScrollWithMouse);
|
||||||
|
ImGui.SetCursorScreenPos(drawPos);
|
||||||
|
ImGui.Image(texture.ImGuiHandle, drawSize);
|
||||||
|
ImGui.EndChild();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ImGui.Text($"⚠ Failed to load: {Path.GetFileName(finalImagePath)}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ImGui.TextDisabled("No Image Available");
|
||||||
|
}
|
||||||
|
|
||||||
|
// Image Offset Sliders
|
||||||
|
ImGui.Spacing();
|
||||||
|
ImGui.Text("Image Position Offset:");
|
||||||
|
ImGui.SameLine();
|
||||||
|
ImGui.TextDisabled("ⓘ");
|
||||||
|
if (ImGui.IsItemHovered())
|
||||||
|
ImGui.SetTooltip("Use these sliders to reposition your image inside the fixed frame.");
|
||||||
|
|
||||||
|
Vector2 newOffset = rp.ImageOffset;
|
||||||
|
ImGui.PushItemWidth(200);
|
||||||
|
ImGui.SliderFloat("X##offset", ref newOffset.X, -300f, 300f, "%.0f");
|
||||||
|
ImGui.SliderFloat("Y##offset", ref newOffset.Y, -300f, 300f, "%.0f");
|
||||||
|
ImGui.PopItemWidth();
|
||||||
|
rp.ImageOffset = newOffset;
|
||||||
|
|
||||||
|
// Zoom
|
||||||
|
ImGui.Spacing();
|
||||||
|
ImGui.Text("Zoom:");
|
||||||
|
ImGui.SameLine();
|
||||||
|
ImGui.TextDisabled("ⓘ");
|
||||||
|
if (ImGui.IsItemHovered())
|
||||||
|
ImGui.SetTooltip("Zoom in or out on your image.");
|
||||||
|
|
||||||
|
float newZoom = rp.ImageZoom;
|
||||||
|
ImGui.PushItemWidth(200);
|
||||||
|
ImGui.SliderFloat("##zoom", ref newZoom, 0.5f, 5.0f, "%.1fx");
|
||||||
|
ImGui.PopItemWidth();
|
||||||
|
rp.ImageZoom = newZoom;
|
||||||
|
|
||||||
|
|
||||||
|
ImGui.Spacing();
|
||||||
|
|
||||||
|
ImGui.PushTextWrapPos();
|
||||||
|
|
||||||
|
ImGui.TextColored(new Vector4(1f, 0.75f, 0.4f, 1f), $"{character.Name} – Roleplay Profile");
|
||||||
|
ImGui.Separator();
|
||||||
|
|
||||||
|
DrawEditableField("Pronouns", ref pronouns);
|
||||||
|
DrawEditableField("Gender", ref gender);
|
||||||
|
DrawEditableField("Age", ref age);
|
||||||
|
DrawEditableField("Race", ref race);
|
||||||
|
DrawEditableField("Sexual Orientation", ref orientation);
|
||||||
|
DrawEditableField("Relationship", ref relationship);
|
||||||
|
DrawEditableField("Occupation", ref occupation);
|
||||||
|
ImGui.Spacing();
|
||||||
|
|
||||||
|
// Abilities (as tag-like input)
|
||||||
|
ImGui.Text("Abilities:");
|
||||||
|
ImGui.SameLine();
|
||||||
|
ImGui.TextDisabled("ⓘ");
|
||||||
|
if (ImGui.IsItemHovered())
|
||||||
|
ImGui.SetTooltip("Separate abilities using commas: e.g. 'alchemy, bardic magic, swordplay'");
|
||||||
|
|
||||||
|
ImGui.InputTextMultiline("##abilities", ref abilities, 1000, new Vector2(-1, 40));
|
||||||
|
|
||||||
|
ImGui.Spacing();
|
||||||
|
ImGui.Text("Bio:");
|
||||||
|
ImGui.InputTextMultiline("##bio", ref bio, 1000, new Vector2(-1, 100));
|
||||||
|
|
||||||
|
ImGui.Spacing();
|
||||||
|
ImGui.Text("RP Tags:");
|
||||||
|
ImGui.SameLine();
|
||||||
|
ImGui.TextDisabled("ⓘ");
|
||||||
|
if (ImGui.IsItemHovered())
|
||||||
|
ImGui.SetTooltip("Separate tags using commas: e.g. 'casual, paragraph, lore-heavy'");
|
||||||
|
|
||||||
|
ImGui.InputTextMultiline("##tags", ref tags, 1000, new Vector2(-1, 40));
|
||||||
|
|
||||||
|
ImGui.Text("Profile Sharing:");
|
||||||
|
ImGui.SameLine();
|
||||||
|
|
||||||
|
var sharing = profile.Sharing;
|
||||||
|
string GetSharingDisplayName(ProfileSharing option) => option switch
|
||||||
|
{
|
||||||
|
ProfileSharing.AlwaysShare => "Always Share",
|
||||||
|
ProfileSharing.NeverShare => "Never Share",
|
||||||
|
_ => option.ToString(),
|
||||||
|
};
|
||||||
|
|
||||||
|
if (ImGui.BeginCombo("##SharingSetting", GetSharingDisplayName(sharing)))
|
||||||
|
{
|
||||||
|
foreach (ProfileSharing option in Enum.GetValues(typeof(ProfileSharing)))
|
||||||
|
{
|
||||||
|
bool isSelected = (sharing == option);
|
||||||
|
if (ImGui.Selectable(GetSharingDisplayName(option), isSelected))
|
||||||
|
profile.Sharing = option;
|
||||||
|
if (isSelected)
|
||||||
|
ImGui.SetItemDefaultFocus();
|
||||||
|
}
|
||||||
|
ImGui.EndCombo();
|
||||||
|
}
|
||||||
|
|
||||||
|
ImGui.Spacing();
|
||||||
|
if (ImGui.Button("Save"))
|
||||||
|
{
|
||||||
|
// Save all edits into profile
|
||||||
|
profile.Pronouns = pronouns;
|
||||||
|
profile.Gender = gender;
|
||||||
|
profile.Age = age;
|
||||||
|
profile.Race = race;
|
||||||
|
profile.Orientation = orientation;
|
||||||
|
profile.Relationship = relationship;
|
||||||
|
profile.Occupation = occupation;
|
||||||
|
profile.Abilities = abilities;
|
||||||
|
profile.Bio = bio;
|
||||||
|
profile.Tags = tags;
|
||||||
|
profile.ImageZoom = rp.ImageZoom;
|
||||||
|
profile.ImageOffset = rp.ImageOffset;
|
||||||
|
|
||||||
|
// Save reference back to character and config
|
||||||
|
character.RPProfile = profile;
|
||||||
|
plugin.SaveConfiguration();
|
||||||
|
// Upload profile just like ApplyProfile() does
|
||||||
|
if (!string.IsNullOrWhiteSpace(character.LastInGameName))
|
||||||
|
{
|
||||||
|
character.RPProfile.CharacterName = character.Name;
|
||||||
|
character.RPProfile.NameplateColor = character.NameplateColor;
|
||||||
|
|
||||||
|
_ = Plugin.UploadProfileAsync(character.RPProfile, character.LastInGameName);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
IsOpen = false;
|
||||||
|
|
||||||
|
// Auto-open view window with new profile
|
||||||
|
plugin.RPProfileViewer.SetCharacter(character);
|
||||||
|
plugin.RPProfileViewer.IsOpen = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
ImGui.SameLine();
|
||||||
|
if (ImGui.Button("Cancel"))
|
||||||
|
{
|
||||||
|
IsOpen = false;
|
||||||
|
// Immediately open the RP profile viewer
|
||||||
|
plugin.RPProfileViewer.SetCharacter(character);
|
||||||
|
plugin.RPProfileViewer.IsOpen = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
ImGui.PopTextWrapPos();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void DrawEditableField(string label, ref string value)
|
||||||
|
{
|
||||||
|
ImGui.Text(label + ":");
|
||||||
|
ImGui.SameLine(130); // Adjust for better alignment
|
||||||
|
ImGui.SetNextItemWidth(200);
|
||||||
|
ImGui.InputText("##" + label, ref value, 100);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
19
CharacterSelectPlugin/packages.lock.json
Normal file
19
CharacterSelectPlugin/packages.lock.json
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"version": 1,
|
||||||
|
"dependencies": {
|
||||||
|
"net9.0-windows7.0": {
|
||||||
|
"DalamudPackager": {
|
||||||
|
"type": "Direct",
|
||||||
|
"requested": "[12.0.0, )",
|
||||||
|
"resolved": "12.0.0",
|
||||||
|
"contentHash": "J5TJLV3f16T/E2H2P17ClWjtfEBPpq3yxvqW46eN36JCm6wR+EaoaYkqG9Rm5sHqs3/nK/vKjWWyvEs/jhKoXw=="
|
||||||
|
},
|
||||||
|
"DotNet.ReproducibleBuilds": {
|
||||||
|
"type": "Direct",
|
||||||
|
"requested": "[1.2.25, )",
|
||||||
|
"resolved": "1.2.25",
|
||||||
|
"contentHash": "xCXiw7BCxHJ8pF6wPepRUddlh2dlQlbr81gXA72hdk4FLHkKXas7EH/n+fk5UCA/YfMqG1Z6XaPiUjDbUNBUzg=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
23
CharacterSelectPlugin/repo.json
Normal file
23
CharacterSelectPlugin/repo.json
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"Author": "Kid Icarus",
|
||||||
|
"Name": "Character Select+",
|
||||||
|
"Description": "Character Select+ allows you to create, save, and instantly apply fully customized character profiles with the press of a button. Switch between your OCs effortlessly using /select CharacterName, applying Penumbra Collections, Glamourer Designs, Customize+ Profiles, and Honorific Titles in one command.\n\nWhile profile switching is its core purpose, Character Select+ includes additional features:\n✔ Advanced Mode – Create custom macro setups for deeper character customization.\n✔ Profile-Specific Designs – Use multiple outfits, styles, and looks per character.\n✔ Favorites & Sorting – Keep profiles organized by name, date, or importance.\n✔ Quick Swap Bar! \n✔ One-Click Macro Execution – Run predefined commands instantly when selecting a character.\n\nWhether you're roleplaying, gposing, or just love quick customization, Character Select+ makes switching between characters faster, easier, and seamless.\n",
|
||||||
|
"Tags": [
|
||||||
|
"Character",
|
||||||
|
"Select"
|
||||||
|
],
|
||||||
|
"InternalName": "CharacterSelectPlugin",
|
||||||
|
"AssemblyVersion": "1.1.1.3",
|
||||||
|
"TestingAssemblyVersion": "1.1.1.3",
|
||||||
|
"RepoUrl": "https://github.com/IcarusXIV/Character-Select-",
|
||||||
|
"ApplicableVersion": "any",
|
||||||
|
"DalamudApiLevel": 12,
|
||||||
|
"IsHide": "False",
|
||||||
|
"IsTestingExclusive": "False",
|
||||||
|
"DownloadLinkInstall": "https://github.com/IcarusXIV/Character-Select-/releases/download/1.1.1.3/CharacterSelectPlugin.zip",
|
||||||
|
"DownloadLinkTesting": "https://github.com/IcarusXIV/Character-Select-/releases/download/1.1.1.3/CharacterSelectPlugin.zip",
|
||||||
|
"DownloadLinkUpdate": "https://github.com/IcarusXIV/Character-Select-/releases/download/1.1.1.3/CharacterSelectPlugin.zip",
|
||||||
|
"IconUrl": "https://raw.githubusercontent.com/IcarusXIV/Character-Select-/master/CharacterSelectPlugin/Assets/Icon.png"
|
||||||
|
}
|
||||||
|
]
|
||||||
BIN
Data/goat.png
Normal file
BIN
Data/goat.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
661
LICENSE.md
Normal file
661
LICENSE.md
Normal file
@@ -0,0 +1,661 @@
|
|||||||
|
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 19 November 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU Affero General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works, specifically designed to ensure
|
||||||
|
cooperation with the community in the case of network server software.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
our General Public Licenses are intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
Developers that use our General Public Licenses protect your rights
|
||||||
|
with two steps: (1) assert copyright on the software, and (2) offer
|
||||||
|
you this License which gives you legal permission to copy, distribute
|
||||||
|
and/or modify the software.
|
||||||
|
|
||||||
|
A secondary benefit of defending all users' freedom is that
|
||||||
|
improvements made in alternate versions of the program, if they
|
||||||
|
receive widespread use, become available for other developers to
|
||||||
|
incorporate. Many developers of free software are heartened and
|
||||||
|
encouraged by the resulting cooperation. However, in the case of
|
||||||
|
software used on network servers, this result may fail to come about.
|
||||||
|
The GNU General Public License permits making a modified version and
|
||||||
|
letting the public access it on a server without ever releasing its
|
||||||
|
source code to the public.
|
||||||
|
|
||||||
|
The GNU Affero General Public License is designed specifically to
|
||||||
|
ensure that, in such cases, the modified source code becomes available
|
||||||
|
to the community. It requires the operator of a network server to
|
||||||
|
provide the source code of the modified version running there to the
|
||||||
|
users of that server. Therefore, public use of a modified version, on
|
||||||
|
a publicly accessible server, gives the public access to the source
|
||||||
|
code of the modified version.
|
||||||
|
|
||||||
|
An older license, called the Affero General Public License and
|
||||||
|
published by Affero, was designed to accomplish similar goals. This is
|
||||||
|
a different license, not a version of the Affero GPL, but Affero has
|
||||||
|
released a new version of the Affero GPL which permits relicensing under
|
||||||
|
this license.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU Affero General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Remote Network Interaction; Use with the GNU General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, if you modify the
|
||||||
|
Program, your modified version must prominently offer all users
|
||||||
|
interacting with it remotely through a computer network (if your version
|
||||||
|
supports such interaction) an opportunity to receive the Corresponding
|
||||||
|
Source of your version by providing access to the Corresponding Source
|
||||||
|
from a network server at no charge, through some standard or customary
|
||||||
|
means of facilitating copying of software. This Corresponding Source
|
||||||
|
shall include the Corresponding Source for any work covered by version 3
|
||||||
|
of the GNU General Public License that is incorporated pursuant to the
|
||||||
|
following paragraph.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the work with which it is combined will remain governed by version
|
||||||
|
3 of the GNU General Public License.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU Affero General Public License from time to time. Such new versions
|
||||||
|
will be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU Affero General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU Affero General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU Affero General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU Affero General Public License as published
|
||||||
|
by the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU Affero General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Affero General Public License
|
||||||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If your software can interact with users remotely through a computer
|
||||||
|
network, you should also make sure that it provides a way for users to
|
||||||
|
get its source. For example, if your program is a web application, its
|
||||||
|
interface could display a "Source" link that leads users to an archive
|
||||||
|
of the code. There are many ways you could offer source, and different
|
||||||
|
solutions will be better for different programs; see section 13 for the
|
||||||
|
specific requirements.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU AGPL, see
|
||||||
|
<https://www.gnu.org/licenses/>.
|
||||||
76
README.md
Normal file
76
README.md
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
# **Character Select+**
|
||||||
|
**Effortless OC Switching at the Click of a Button**
|
||||||
|
|
||||||
|
Do you have multiple OCs and get frustrated switching between them manually?
|
||||||
|
Constantly reapplying settings, adjusting profiles, and trying to keep everything organized?
|
||||||
|
|
||||||
|
With **Character Select+**, all of this is handled **instantly**—no hassle, no wasted time.
|
||||||
|
|
||||||
|
---
|
||||||
|
## **Installation**
|
||||||
|
🔹 https://raw.githubusercontent.com/IcarusXIV/Character-Select-/master/CharacterSelectPlugin/repo.json
|
||||||
|
---
|
||||||
|
---
|
||||||
|
## **Discord**
|
||||||
|
🔹 https://discord.gg/8JykGErcX4
|
||||||
|
---
|
||||||
|
|
||||||
|
## **Features**
|
||||||
|
Character Select+ provides a **one-click solution** for swapping between your OCs.
|
||||||
|
|
||||||
|
### 🔹 **Core Features**
|
||||||
|
- ✅ **One-Click Character Swaps** – Automatically applies all saved settings.
|
||||||
|
- ✅ **Fully Manages:**
|
||||||
|
- 🔹 **Penumbra Collections**
|
||||||
|
- 🔹 **Glamourer Designs**
|
||||||
|
- 🔹 **Customize+ Profiles**
|
||||||
|
- 🔹 **Honorific Titles**
|
||||||
|
- 🔹 **Moodle Presets**
|
||||||
|
- 🔹 **Idle Poses**
|
||||||
|
- ✅ **Sorting Options** – Organize by **favorites, alphabetical, most recent, or oldest**.
|
||||||
|
- ✅ **Advanced Mode** – Customize macros for additional control.
|
||||||
|
- ✅ **Commands** – use chat commands to swap between Characters & Designs.
|
||||||
|
|
||||||
|
🔹 **Perfect for Role-players & Multi-OC Users** – Quickly swap between characters without navigating multiple menus.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## **How It Works**
|
||||||
|
With **Character Select+**, you can:
|
||||||
|
🔹 **Save multiple characters** with their unique settings.
|
||||||
|
🔹 **Instantly swap between them** with a single click.
|
||||||
|
🔹 **Fine-tune every detail** in the editor, from visual elements to macro commands.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## **Settings & Customization**
|
||||||
|
- **Profile Display Options:** Adjust icon size, spacing, and layout.
|
||||||
|
- **Favorite Your OCs:** Keep frequently used characters at the top.
|
||||||
|
- **Advanced Mode:** Customize macros manually for even more control.
|
||||||
|
- **Edit & Update On the Fly:** Modify character setups.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## **Why Character Select+?**
|
||||||
|
### **Before:**
|
||||||
|
- Manually switching between character setups.
|
||||||
|
- Wasting time adjusting settings in menus.
|
||||||
|
|
||||||
|
### **After:**
|
||||||
|
✔ A **single button press** applies everything instantly.
|
||||||
|
✔ Just **play and enjoy**—without breaking immersion.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## **Preview**
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
## **Support Character Select+**
|
||||||
|
If you love **Character Select+** and would like to show your support, you can do so here:
|
||||||
|
|
||||||
|
[](https://ko-fi.com/icarusxiv)
|
||||||
|
|
||||||
|
Any support is very appreciated and helps keep the plugin updated and improves future features! 💙
|
||||||
|
|
||||||
|
**For inquiries, contact Kid Icarus.**
|
||||||
29
SamplePlugin.sln
Normal file
29
SamplePlugin.sln
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 16
|
||||||
|
VisualStudioVersion = 16.0.29709.97
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CharacterSelectPlugin", "CharacterSelectPlugin\CharacterSelectPlugin.csproj", "{13C812E9-0D42-4B95-8646-40EEBF30636F}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|x64 = Debug|x64
|
||||||
|
Release|x64 = Release|x64
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{13C812E9-0D42-4B95-8646-40EEBF30636F}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{13C812E9-0D42-4B95-8646-40EEBF30636F}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{13C812E9-0D42-4B95-8646-40EEBF30636F}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{13C812E9-0D42-4B95-8646-40EEBF30636F}.Release|x64.Build.0 = Release|x64
|
||||||
|
{4FEC9558-EB25-419F-B86E-51B8CFDA32B7}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{4FEC9558-EB25-419F-B86E-51B8CFDA32B7}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{4FEC9558-EB25-419F-B86E-51B8CFDA32B7}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{4FEC9558-EB25-419F-B86E-51B8CFDA32B7}.Release|x64.Build.0 = Release|x64
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {B17E85B1-5F60-4440-9F9A-3DDE877E8CDF}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
Reference in New Issue
Block a user