mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-30 20:33:44 +01:00
Revamp, temp state.
This commit is contained in:
parent
358e33346f
commit
cc09cced61
22 changed files with 365 additions and 298 deletions
|
|
@ -52,10 +52,10 @@ public ref struct ToggleDrawData
|
|||
};
|
||||
}
|
||||
|
||||
public static ToggleDrawData CrestFromDesign(EquipSlot slot, DesignManager manager, Design design)
|
||||
public static ToggleDrawData CrestFromDesign(CrestFlag slot, DesignManager manager, Design design)
|
||||
=> new()
|
||||
{
|
||||
Label = $"{slot.ToCrestFlag().ToLabel()} Crest",
|
||||
Label = $"{slot.ToLabel()} Crest",
|
||||
Tooltip = string.Empty,
|
||||
Locked = design.WriteProtected(),
|
||||
DisplayApplication = true,
|
||||
|
|
@ -65,14 +65,14 @@ public ref struct ToggleDrawData
|
|||
SetApply = v => manager.ChangeApplyCrest(design, slot, v),
|
||||
};
|
||||
|
||||
public static ToggleDrawData CrestFromState(EquipSlot slot, StateManager manager, ActorState state)
|
||||
public static ToggleDrawData CrestFromState(CrestFlag slot, StateManager manager, ActorState state)
|
||||
=> new()
|
||||
{
|
||||
Label = $"{slot.ToCrestFlag().ToLabel()} Crest",
|
||||
Label = $"{slot.ToLabel()} Crest",
|
||||
Tooltip = "Hide or show your free company crest on this piece of gear.",
|
||||
Locked = state.IsLocked,
|
||||
CurrentValue = state.ModelData.Crest(slot), // TODO
|
||||
SetValue = v => { }, //manager.ChangeCrest(state, slot, v, StateChanged.Source.Manual),
|
||||
CurrentValue = state.ModelData.Crest(slot),
|
||||
SetValue = v => manager.ChangeCrest(state, slot, v, StateChanged.Source.Manual),
|
||||
};
|
||||
|
||||
public static ToggleDrawData FromState(ActorState.MetaIndex index, StateManager manager, ActorState state)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue