示例#1
0
 public void Reset()
 {
     this.currentOrder = null;
     this.ClearOrders();
     this.current = -1;
     this.ClearSelection();
 }
示例#2
0
 public virtual void AddOrder(MenuOrderDef def)
 {
     this.currentOrder = def;
     if (this.addGraphics == null)
     {
         this.addGraphics = new Dictionary <string, GraphicInstance>();
     }
     this.resetMatrices = true;
     this.UpdateOrderGraphics();
 }
示例#3
0
 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;
     }
 }
示例#4
0
        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();
        }
示例#5
0
 public override void AddOrder(MenuOrderDef def)
 {
     base.AddOrder(def);
     WorldUtils.cutOrdered.Add((Tilable)this);
 }