mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 18:27:24 +01:00
0.1.1.4, small fixes for PRs.
This commit is contained in:
parent
8940e813ec
commit
415e58b93e
9 changed files with 16 additions and 11 deletions
|
|
@ -22,7 +22,9 @@ namespace Glamourer
|
|||
if (variant.HasValue)
|
||||
*(ushort*) (address + 4) = variant.Value;
|
||||
|
||||
if (stain.HasValue)
|
||||
if (*(ushort*) address == 0)
|
||||
*(address + 6) = 0;
|
||||
else if (stain.HasValue)
|
||||
*(address + 6) = (byte) stain.Value;
|
||||
}
|
||||
|
||||
|
|
|
|||
BIN
Glamourer.zip
BIN
Glamourer.zip
Binary file not shown.
|
|
@ -129,9 +129,9 @@ namespace Glamourer.Designs
|
|||
|
||||
var applicableDesigns = designs.OrderBy(d => d.Jobs.Count).Where(d => d.Jobs.Fits(character.ClassJob.Id));
|
||||
|
||||
bool designApplied = false;
|
||||
var designApplied = false;
|
||||
foreach (var design in applicableDesigns) {
|
||||
PluginLog.Debug("Redrawing {CharacterName} with {DesignName} for job {JobGroup}.", name, design.Design.FullName(),
|
||||
PluginLog.Debug("Applying {DesignName} on {CharacterName} for job {JobGroup}.", design.Design.FullName(), name,
|
||||
design.Jobs.Name);
|
||||
design.Design.Data.Apply(character);
|
||||
Glamourer.PlayerWatcher.UpdatePlayerWithoutEvent(character);
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@
|
|||
<PlatformTarget>x64</PlatformTarget>
|
||||
<RootNamespace>Glamourer</RootNamespace>
|
||||
<AssemblyName>Glamourer</AssemblyName>
|
||||
<FileVersion>0.1.1.3</FileVersion>
|
||||
<AssemblyVersion>0.1.1.3</AssemblyVersion>
|
||||
<FileVersion>0.1.1.4</FileVersion>
|
||||
<AssemblyVersion>0.1.1.4</AssemblyVersion>
|
||||
<Company>SoftOtter</Company>
|
||||
<Product>Glamourer</Product>
|
||||
<Copyright>Copyright © 2020</Copyright>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
"Description": "Adds functionality to change and store appearance of players, customization and equip. Requires Penumbra to be installed and activated to work. Can also add preview options to the Changed Items tab for Penumbra.",
|
||||
"Tags": [ "Appearance", "Glamour", "Race", "Outfit", "Armor", "Clothes", "Skins", "Customization", "Design", "Character" ],
|
||||
"InternalName": "Glamourer",
|
||||
"AssemblyVersion": "0.1.1.3",
|
||||
"AssemblyVersion": "0.1.1.4",
|
||||
"RepoUrl": "https://github.com/Ottermandias/Glamourer",
|
||||
"ApplicableVersion": "any",
|
||||
"DalamudApiLevel": 8,
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ namespace Glamourer.Gui
|
|||
|
||||
var equip = GameData.ItemsBySlot(Dalamud.GameData);
|
||||
_combos = equip.ToDictionary(kvp => kvp.Key, kvp => CreateCombos(kvp.Key, kvp.Value, stainCombo));
|
||||
_globalStainCombo = new ComboWithFilter<Stain>("Dye All Slots", stainCombo);
|
||||
_globalStainCombo = new ComboWithFilter<Stain>("##GlobalStain", stainCombo);
|
||||
_legacyTattooIcon = GetLegacyTattooIcon();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
using System.Linq;
|
||||
using Dalamud.Interface;
|
||||
using ImGuiNET;
|
||||
using Lumina.Text;
|
||||
using Penumbra.GameData.Enums;
|
||||
|
|
@ -47,6 +46,8 @@ namespace Glamourer.Gui
|
|||
stainCombo.PostPreview = null;
|
||||
|
||||
var change = stainCombo.Draw(string.Empty, out var newStain);
|
||||
ImGui.SameLine();
|
||||
ImGui.TextUnformatted("Dye All Slots");
|
||||
if (!change)
|
||||
{
|
||||
ImGuiCustom.HoverTooltip("Right-click to clear.");
|
||||
|
|
@ -64,6 +65,8 @@ namespace Glamourer.Gui
|
|||
{
|
||||
foreach (var key in GetEquipSlotNames().Keys)
|
||||
{
|
||||
if (key is EquipSlot.OffHand && _selection?.Data.Equipment.OffHand.Set.Value == 0)
|
||||
continue;
|
||||
_selection?.Data.WriteStain(key, newStain.RowIndex);
|
||||
}
|
||||
return _inDesignMode;
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ namespace Glamourer.Gui
|
|||
raii.PopFonts();
|
||||
ImGui.TableNextColumn();
|
||||
ImGui.SetNextItemWidth(200 * ImGuiHelpers.GlobalScale);
|
||||
ImGui.InputTextWithHint("##NewFix", "Enter new Character", ref _newFixCharacterName, 32);
|
||||
ImGui.InputTextWithHint("##NewFix", "Enter new Character", ref _newFixCharacterName, 64);
|
||||
ImGui.TableNextColumn();
|
||||
ImGui.SetNextItemWidth(-1);
|
||||
if (raii.Begin(() => ImGui.BeginCombo("##NewFixDesignGroup", _newFixDesignGroup.Value.Name), ImGui.EndCombo))
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@
|
|||
"Description": "Adds functionality to change and store appearance of players, customization and equip. Requires Penumbra to be installed and activated to work. Can also add preview options to the Changed Items tab for Penumbra.",
|
||||
"Tags": [ "Appearance", "Glamour", "Race", "Outfit", "Armor", "Clothes", "Skins", "Customization", "Design", "Character" ],
|
||||
"InternalName": "Glamourer",
|
||||
"AssemblyVersion": "0.1.1.3",
|
||||
"TestingAssemblyVersion": "0.1.1.3",
|
||||
"AssemblyVersion": "0.1.1.4",
|
||||
"TestingAssemblyVersion": "0.1.1.4",
|
||||
"RepoUrl": "https://github.com/Ottermandias/Glamourer",
|
||||
"ApplicableVersion": "any",
|
||||
"DalamudApiLevel": 8,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue