public override void HandleSelectionChanged(IArcenUI_Dropdown_Option Item) { if (Item == null) { return; } MapTypeData ItemAsType = (MapTypeData)Item.GetItem(); WorldSetup setupToSend = new WorldSetup(); World_AIW2.Instance.Setup.CopyTo(setupToSend); setupToSend.MapType = ItemAsType; GameCommand command = GameCommand.Create(GameCommandType.SetupOnly_ChangeSetup); command.RelatedSetup = setupToSend; World_AIW2.Instance.QueueGameCommand(command); }
public override void HandleSelectionChanged(IArcenUI_Dropdown_Option Item) { if (Item == null) { return; } ArcenSetting setting = GetSettingForController(this); if (setting == null) { return; } ArcenUI_Dropdown elementAsType = (ArcenUI_Dropdown)Element; int newValue = elementAsType.Items.IndexOf(Item); setting.TempValue_Int = newValue; }
public override void OnUpdate() { ArcenUI_Dropdown elementAsType = (ArcenUI_Dropdown)Element; bool foundMismatch = false; for (int i = 0; i < MapTypeDataTable.Instance.Rows.Count; i++) { MapTypeData row = MapTypeDataTable.Instance.Rows[i]; if (elementAsType.Items.Count <= i) { foundMismatch = true; break; } IArcenUI_Dropdown_Option option = elementAsType.Items[i]; MapTypeData optionItemAsType = (MapTypeData)option.GetItem(); if (row == optionItemAsType) { continue; } foundMismatch = true; break; } if (foundMismatch) { elementAsType.Items.Clear(); for (int i = 0; i < MapTypeDataTable.Instance.Rows.Count; i++) { MapTypeData row = MapTypeDataTable.Instance.Rows[i]; DropdownEntryFor_MapTypeData <MapTypeData> option = new DropdownEntryFor_MapTypeData <MapTypeData>(row); elementAsType.Items.Add(option); } elementAsType.SetSelectedItem(World_AIW2.Instance.Setup.MapType); } }
public virtual void HandleSelectionChanged(IArcenUI_Dropdown_Option Item) { }
public virtual void HandleItemMouseover(IArcenUI_Dropdown_Option Item) { }
public override void HandleItemMouseover(IArcenUI_Dropdown_Option Item) { }