private void InitializeDeckFlag(ShipModel shipModel)
    {
        bool flag = this.IsDeckInShip(shipModel);

        if (flag)
        {
            DeckModelBase deck       = shipModel.getDeck();
            bool          isFlagShip = deck.GetFlagShip().MemId == shipModel.MemId;
            int           id         = deck.Id;
            bool          flag2      = deck.IsEscortDeckMyself();
            if (flag2)
            {
                this.InitializeEscortDeckFlag(id, isFlagShip);
            }
            else
            {
                this.InitializeNormalDeckFlag(id, isFlagShip);
            }
        }
        else if (shipModel.IsBling())
        {
            this.BlingDeckFlag();
        }
        else
        {
            this.RemoveDeckFlag();
        }
    }
示例#2
0
 private void InitializeDeckFlag(ShipModel shipModel)
 {
     if (IsDeckInShip(shipModel))
     {
         DeckModelBase deck       = shipModel.getDeck();
         bool          isFlagShip = deck.GetFlagShip().MemId == shipModel.MemId;
         int           id         = deck.Id;
         if (deck.IsEscortDeckMyself())
         {
             InitializeEscortDeckFlag(id, isFlagShip);
         }
         else
         {
             InitializeNormalDeckFlag(id, isFlagShip);
         }
     }
     else if (shipModel.IsBling())
     {
         BlingDeckFlag();
     }
     else
     {
         RemoveDeckFlag();
     }
 }
示例#3
0
        private void SetLabel(ShipModel model)
        {
            ShipNameLabel.text  = model.ShipTypeName + "\u3000";
            ShipNameLabel.text += model.Name;
            DeckModelBase deck = model.getDeck();
            string        str  = (deck == null || deck.GetFlagShip().MemId != model.MemId) ? "所属" : "旗艦";

            DeckNameLabel.supportEncoding = false;
            if (deck != null)
            {
                DeckNameLabel.text = deck.Name + str;
                BG.height          = 148;
            }
            else
            {
                DeckNameLabel.text = string.Empty;
                BG.height          = 95;
            }
            LevelLabel.text = "練度 " + model.Level;
        }