Exemple #1
0
        private string _ToString(SlotitemModel slotitem, int slot_index)
        {
            string text = (slotitem != null) ? slotitem.ToString() : "[-]";

            if (slot_index >= 0 && slot_index < SlotCount)
            {
                text += $"搭載:{base.Tousai[slot_index]}/{base.TousaiMax[slot_index]} ";
            }
            return(text);
        }
Exemple #2
0
        private string _ToString(SlotitemModel slotitem, int slot_index)
        {
            string text;

            if (slotitem == null)
            {
                text = "[-]";
            }
            else
            {
                text = slotitem.ToString();
            }
            if (slot_index >= 0 && slot_index < this.SlotCount)
            {
                text += string.Format("搭載:{0}/{1} ", base.Tousai[slot_index], base.TousaiMax[slot_index]);
            }
            return(text);
        }