mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-22 23:47:45 +01:00
So. Much. Stuff. Glamourer now works with all player actors, can change all customization, gear and stains. Also has a cool Legacy Tattoo icon.
This commit is contained in:
parent
fbb41636df
commit
052a2e7719
14 changed files with 1120 additions and 577 deletions
|
|
@ -15,7 +15,7 @@ namespace Glamourer.Gui
|
|||
private string _currentFilterLower = string.Empty;
|
||||
private bool _focus;
|
||||
private readonly float _size;
|
||||
private readonly float _previewSize;
|
||||
private float _previewSize;
|
||||
private readonly IReadOnlyList<T> _items;
|
||||
private readonly IReadOnlyList<string> _itemNamesLower;
|
||||
private readonly Func<T, string> _itemToName;
|
||||
|
|
@ -130,8 +130,11 @@ namespace Glamourer.Gui
|
|||
return ret;
|
||||
}
|
||||
|
||||
public bool Draw(string currentName, out T? value)
|
||||
public bool Draw(string currentName, out T? value, float? size = null)
|
||||
{
|
||||
if (size.HasValue)
|
||||
_previewSize = size.Value;
|
||||
|
||||
value = default;
|
||||
ImGui.SetNextItemWidth(_previewSize);
|
||||
PrePreview?.Invoke();
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue