mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-20 06:27:43 +01:00
start
This commit is contained in:
parent
0e3d3d1839
commit
447e748ed7
9 changed files with 906 additions and 4 deletions
|
|
@ -8,6 +8,7 @@ using Glamourer.Designs;
|
|||
using Glamourer.Gui.Customization;
|
||||
using Glamourer.Gui.Equipment;
|
||||
using Glamourer.Interop;
|
||||
using Glamourer.Interop.Material;
|
||||
using Glamourer.Interop.Structs;
|
||||
using Glamourer.State;
|
||||
using ImGuiNET;
|
||||
|
|
@ -97,6 +98,12 @@ public class ActorPanel(
|
|||
return (_selector.IncognitoMode ? _identifier.Incognito(null) : _identifier.ToString(), Actor.Null);
|
||||
}
|
||||
|
||||
private Vector3 _test;
|
||||
private int _rowId;
|
||||
private MaterialValueIndex.ColorTableIndex _index;
|
||||
private int _materialId;
|
||||
private int _slotId;
|
||||
|
||||
private unsafe void DrawPanel()
|
||||
{
|
||||
using var child = ImRaii.Child("##Panel", -Vector2.One, true);
|
||||
|
|
@ -114,6 +121,17 @@ public class ActorPanel(
|
|||
|
||||
RevertButtons();
|
||||
|
||||
ImGui.InputInt("Row", ref _rowId);
|
||||
ImGui.InputInt("Material", ref _materialId);
|
||||
ImGui.InputInt("Slot", ref _slotId);
|
||||
ImGuiUtil.GenericEnumCombo("Value", 300, _index, out _index);
|
||||
|
||||
var index = new MaterialValueIndex(MaterialValueIndex.DrawObjectType.Human, (byte) _slotId, (byte) _materialId, (byte)_rowId, _index);
|
||||
index.TryGetValue(_actor, out _test);
|
||||
if (ImGui.ColorPicker3("TestPicker", ref _test) && _actor.Valid)
|
||||
MaterialService.Test(_actor, index, _test);
|
||||
|
||||
|
||||
using var disabled = ImRaii.Disabled(transformationId != 0);
|
||||
if (_state.ModelData.IsHuman)
|
||||
DrawHumanPanel();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue