Ejemplo n.º 1
0
            public void Update(int shipID, int[] slot)
            {
                ShipName.Tag = shipID;

                if (shipID == -1)
                {
                    //なし
                    ShipName.Text      = "-";
                    ShipName.ForeColor = Color.FromArgb(0x00, 0x00, 0x00);
                    Equipments.Visible = false;
                    ToolTipInfo.SetToolTip(ShipName, null);
                    ToolTipInfo.SetToolTip(Equipments, null);
                }
                else
                {
                    ShipDataMaster ship = KCDatabase.Instance.MasterShips[shipID];


                    ShipName.Text      = ship.Name;
                    ShipName.ForeColor = ship.GetShipNameColor();
                    ToolTipInfo.SetToolTip(ShipName, GetShipString(shipID, slot));

                    Equipments.SetSlotList(shipID, slot);
                    Equipments.Visible = true;
                    ToolTipInfo.SetToolTip(Equipments, GetEquipmentString(shipID, slot));
                }
            }
Ejemplo n.º 2
0
            public void Update(int shipID, int[] slot)
            {
                ShipName.Tag = shipID;

                if (shipID == -1)
                {
                    //なし
                    ShipName.Text      = "-";
                    ShipName.ForeColor = Utility.Configuration.Config.UI.ForeColor;
                    Equipments.Visible = false;
                    ToolTipInfo.SetToolTip(ShipName, null);
                    ToolTipInfo.SetToolTip(Equipments, null);
                }
                else
                {
                    ShipDataMaster ship = KCDatabase.Instance.MasterShips[shipID];


                    ShipName.Text = ship.Name;
                    if (ship.IsAbyssalShip)
                    {
                        ShipName.ForeColor = ship.GetShipNameColor();
                    }
                    else
                    {
                        ShipName.ForeColor = Utility.Configuration.Config.UI.ForeColor;
                    }
                    ToolTipInfo.SetToolTip(ShipName, GetShipString(shipID, slot));

                    Equipments.SetSlotList(shipID, slot);
                    Equipments.Visible = true;
                    ToolTipInfo.SetToolTip(Equipments, GetEquipmentString(shipID, slot));
                }
            }