コード例 #1
0
ファイル: BuildElement.cs プロジェクト: iJamesPHP/EloBuddy
 public void updateText()
 {
     if (action == ShopActionType.Buy || action == ShopActionType.Sell)
     {
         itemName.CurrentValue = p.ToString().PadLeft(2, ' ') + ")" + action.ToString().PadLeft(6, ' ') + "    " +
                                 item.Name;
         costSlots.CurrentValue = "Free slots: " + freeSlots + "      Cost: " + cost.ToString().PadLeft(4, ' ');
     }
     else
     {
         itemName.CurrentValue  = p.ToString().PadLeft(2, ' ') + ")   " + action;
         costSlots.CurrentValue = "Free slots: " + freeSlots;
     }
 }
コード例 #2
0
 public void UpdateText()
 {
     if (Action == ShopActionType.Buy || Action == ShopActionType.Sell)
     {
         _itemName.CurrentValue = P.ToString().PadLeft(2, ' ') + ")" + Action.ToString().PadLeft(6, ' ') + "    " +
                                  Item.Name;
         _costSlots.CurrentValue = "Free slots: " + FreeSlots + "      Cost: " + Cost.ToString().PadLeft(4, ' ');
     }
     else
     {
         _itemName.CurrentValue  = P.ToString().PadLeft(2, ' ') + ")   " + Action;
         _costSlots.CurrentValue = "Free slots: " + FreeSlots;
     }
 }