Make states work.

This commit is contained in:
Ottermandias 2024-01-26 13:23:33 +01:00
parent 25ddbb1310
commit a4de13f228
27 changed files with 787 additions and 857 deletions

View file

@ -54,7 +54,7 @@ public ref struct ToggleDrawData
Tooltip = "Hide or show your free company crest on this piece of gear.",
Locked = state.IsLocked,
CurrentValue = state.ModelData.Crest(slot),
SetValue = v => manager.ChangeCrest(state, slot, v, StateSource.Manual),
SetValue = v => manager.ChangeCrest(state, slot, v, ApplySettings.Manual),
};
public static ToggleDrawData FromState(MetaIndex index, StateManager manager, ActorState state)
@ -65,7 +65,7 @@ public ref struct ToggleDrawData
Tooltip = index.ToTooltip(),
Locked = state.IsLocked,
CurrentValue = state.ModelData.GetMeta(index),
SetValue = b => manager.ChangeMeta(state, index, b, StateSource.Manual),
SetValue = b => manager.ChangeMetaState(state, index, b, ApplySettings.Manual),
};
}