Ejemplo n.º 1
0
 public void Select(int position)
 {
     if (selectedPosition != null)
     {
         selectedPosition.Select(false);
     }
     selectedPosition = positionPanels[position];
     selectedPosition.Select(true);
     Village.RefreshButtons(position);
 }
Ejemplo n.º 2
0
 public void SetOrderBars(List <Order> orders)
 {
     RemoveOrders();
     //orders[0] is fake
     for (int i = 1; i < orders.Count; i++)
     {
         PositionPanel positionPanel = new PositionPanel();
         orders[i].bar.index = i;
         orderElements.Add(orders[i].bar);
         orderElements.Add(positionPanel);
         positionPanels.Add(positionPanel);
     }
     Select(Village.Position);
 }