mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-30 12:23:42 +01:00
Change how customization config works a bit.
This commit is contained in:
parent
25cded7f9f
commit
519bfffbb2
5 changed files with 57 additions and 55 deletions
|
|
@ -8,6 +8,7 @@ using Glamourer.Services;
|
|||
using ImGuiNET;
|
||||
using OtterGui;
|
||||
using OtterGui.Raii;
|
||||
using Penumbra.GameData.Enums;
|
||||
using CustomizeData = Penumbra.GameData.Structs.CustomizeData;
|
||||
|
||||
namespace Glamourer.Gui.Customization;
|
||||
|
|
@ -42,6 +43,7 @@ public partial class CustomizationDrawer : IDisposable
|
|||
private Vector2 _iconSize;
|
||||
private Vector2 _framedIconSize;
|
||||
private float _inputIntSize;
|
||||
private float _inputIntSizeNoButtons;
|
||||
private float _comboSelectorSize;
|
||||
private float _raceSelectorWidth;
|
||||
private bool _withApply;
|
||||
|
|
@ -116,6 +118,10 @@ public partial class CustomizationDrawer : IDisposable
|
|||
if (_currentByte == value)
|
||||
return;
|
||||
|
||||
// Hrothgar Face Hack.
|
||||
if (_currentIndex is CustomizeIndex.Face && _set.Race is Race.Hrothgar)
|
||||
value += 4;
|
||||
|
||||
_customize[_currentIndex] = value;
|
||||
Changed |= _currentFlag;
|
||||
}
|
||||
|
|
@ -198,6 +204,7 @@ public partial class CustomizationDrawer : IDisposable
|
|||
_iconSize = new Vector2(ImGui.GetTextLineHeight() * 2 + ImGui.GetStyle().ItemSpacing.Y + 2 * ImGui.GetStyle().FramePadding.Y);
|
||||
_framedIconSize = _iconSize + 2 * ImGui.GetStyle().FramePadding;
|
||||
_inputIntSize = 2 * _framedIconSize.X + 1 * _spacing.X;
|
||||
_inputIntSizeNoButtons = _inputIntSize - 2 * _spacing.X - 2 * ImGui.GetFrameHeight();
|
||||
_comboSelectorSize = 4 * _framedIconSize.X + 3 * _spacing.X;
|
||||
_raceSelectorWidth = _inputIntSize + _comboSelectorSize - _framedIconSize.X;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue