public override void OnInspectorGUI() { base.OnInspectorGUI(); ButtonView.MenuStateTriggerString = BibaInspectorHelper.DisplayConstantStringArrayDropdown <MenuStateTrigger>(ButtonView.MenuStateTriggerString, "MenuStateTrigger to Activate", MenuStateTrigger.None); ButtonView.SFXString = BibaInspectorHelper.DisplayConstantStringArrayDropdown <BibaSFX>(ButtonView.SFXString, "SFX to Play", BibaSFX.None); EditorUtility.SetDirty(target); }
public override void OnInspectorGUI() { base.OnInspectorGUI(); BaseMenuState.EnterBGM = BibaInspectorHelper.DisplayConstantStringArrayDropdown <BibaBGM>(BaseMenuState.EnterBGM, "Enter BGM:", BibaBGM.None); BaseMenuState.ExitBGM = BibaInspectorHelper.DisplayConstantStringArrayDropdown <BibaBGM>(BaseMenuState.ExitBGM, "Exit BGM:", BibaBGM.None); BaseMenuState.EnterSFX = BibaInspectorHelper.DisplayConstantStringArrayDropdown <BibaSFX>(BaseMenuState.EnterSFX, "Enter SFX:", BibaSFX.None); BaseMenuState.ExitSFX = BibaInspectorHelper.DisplayConstantStringArrayDropdown <BibaSFX>(BaseMenuState.ExitSFX, "Exit SFX:", BibaSFX.None); EditorUtility.SetDirty(target); }
public override void OnInspectorGUI() { base.OnInspectorGUI(); var allKeys = Settings.Localizations.Select(localization => localization.Key).Distinct().ToArray(); TextView.Key = BibaInspectorHelper.DisplayStringArrayDropdown(allKeys, TextView.Key, "Key Selected"); EditorUtility.SetDirty(target); if (GUILayout.Button("Reload Localization Settings")) { ReloadSettings(); } }
public override void OnInspectorGUI() { base.OnInspectorGUI(); BibaPointEventServiceView.PointEventKey = BibaInspectorHelper.DisplayConstantStringArrayDropdown <BibaPointEvents>(BibaPointEventServiceView.PointEventKey, "Point Event to Check"); EditorUtility.SetDirty(target); }