public void Reset() { this.currentOrder = null; this.ClearOrders(); this.current = -1; this.ClearSelection(); }
public virtual void AddOrder(MenuOrderDef def) { this.currentOrder = def; if (this.addGraphics == null) { this.addGraphics = new Dictionary <string, GraphicInstance>(); } this.resetMatrices = true; this.UpdateOrderGraphics(); }
public void ClickOrder(MenuOrderDef order) { this.ClearOrders(); if (this.currentOrder != order) { this.currentOrder = order; this.links[order.uid].image.color = this.activeColor; this.info.title.text = order.name; this.info.desc.text = order.shortDesc; } else { this.currentOrder = null; } }
void Start() { int tabCount = 6; this.buttons = new MenuOrderButton[tabCount]; this.tabs = new MenuOrderTab[tabCount]; this.AddTab("Orders", 0, KeyCode.B); this.AddTab("Zones", 1); this.AddTab("Structures", 2); this.AddTab("Production", 3); this.AddTab("Magic", 4); this.AddTab("Combat", 5); this.currentOrder = null; this.Reset(); }
public override void AddOrder(MenuOrderDef def) { base.AddOrder(def); WorldUtils.cutOrdered.Add((Tilable)this); }