Exemple #1
0
 private void _startMessage()
 {
     if (_isUseJukuren)
     {
         _clsShipMessage.Init("部隊再編中…", 0.04f);
     }
     else
     {
         _clsShipMessage.Init("装備改修中…", 0.04f);
     }
     _clsShipMessage.Play();
 }
        protected void _setRewardShip()
        {
            _uiShip.mainTexture = SingletonMonoBehaviour <ResourceManager> .Instance.ShipTexture.Load(_clsRewardShip.Ship.GetGraphicsMstId(), 9);

            _uiShip.MakePixelPerfect();
            _uiShip.transform.localPosition = Util.Poi2Vec(new ShipOffset(_clsRewardShip.Ship.GetGraphicsMstId()).GetShipDisplayCenter(damaged: false));
            _clsShipMessage.Init(_clsRewardShip.GreetingText, 0.08f);
            _clsShipName.text = _clsRewardShip.Ship.Name;
            _clsSType.text    = _clsRewardShip.Ship.ShipTypeName;
            _clsShipName.SetActive(isActive: false);
            _clsSType.SetActive(isActive: false);
            ((Component)_getIconAnim).gameObject.SetActive(false);
        }
Exemple #3
0
 private void _setObject()
 {
     _setShipTexture();
     _clsMessage1 = new Generics.Message(base.transform, "Message1");
     _clsMessage1.Init($"『{_clsDeck.Name}』艦隊<br>旗艦「{_clsShipModel.Name}」が<br>大破しました。", 0.05f);
     _clsMessage2 = new Generics.Message(base.transform, "Message2");
     _clsMessage2.Init("進撃は困難です……帰投します。", 0.05f);
 }
Exemple #4
0
 private void _debugObject()
 {
     if (Mst_DataManager.Instance.Mst_shipgraph.ContainsKey(debugIndex))
     {
         ShipModelMst shipModelMst = new ShipModelMst(debugIndex);
         _uiShip.mainTexture = KCV.Battle.Utils.ShipUtils.LoadTexture(debugIndex, isDamaged: true);
         _uiShip.MakePixelPerfect();
         _uiShip.transform.localPosition = Util.Poi2Vec(new ShipOffset(debugIndex).GetShipDisplayCenter(damaged: true));
         _clsMessage1.UnInit();
         _clsMessage2.UnInit();
         _clsMessage1 = new Generics.Message(base.transform, "Message1");
         _clsMessage1.Init($"『{_clsDeck.Name}』艦隊<br>旗艦「{shipModelMst.Name}」が<br>大破しました。", 0.05f);
         _clsMessage2 = new Generics.Message(base.transform, "Message2");
         _clsMessage2.Init("進撃は困難です……帰投します。", 0.05f);
     }
 }
        private void _setRewardItem(IReward_Slotitem rewardItem)
        {
            _clsRewardItem      = rewardItem;
            _uiItem.mainTexture = SingletonMonoBehaviour <ResourceManager> .Instance.SlotItemTexture.Load(_clsRewardItem.Id, 1);

            _uiItem.MakePixelPerfect();
            _uiShipGet.alpha = 0f;
            _uiGear.alpha    = 0f;
            _isUpdateShipGet = false;
            _isUpdateNextBtn = false;
            _clsShipMessage.Init(_clsRewardItem.Type3Name + "「" + _clsRewardItem.Name + "」を入手しました。", 0.04f);
            UIButtonMessage component = _uiGear.GetComponent <UIButtonMessage>();

            component.target       = base.gameObject;
            component.functionName = "_receiveShipEL";
            component.trigger      = UIButtonMessage.Trigger.OnClick;
        }
        private void _setRewardShip()
        {
            _uiShip.mainTexture = SingletonMonoBehaviour <ResourceManager> .Instance.ShipTexture.Load(_clsRewardShip.Ship.GetGraphicsMstId(), 9);

            _uiShip.MakePixelPerfect();
            _uiShip.transform.localPosition = Util.Poi2Vec(new ShipOffset(_clsRewardShip.Ship.GetGraphicsMstId()).GetShipDisplayCenter(damaged: false));
            UIButtonMessage component = _uiGearBtn.GetComponent <UIButtonMessage>();

            component.target       = base.gameObject;
            component.functionName = "ProdReceiveShipEL";
            component.trigger      = UIButtonMessage.Trigger.OnClick;
            _clsShipMessage.Init(_clsRewardShip.GreetingText, 0.08f);
            _clsShipName.text = _clsRewardShip.Ship.Name;
            _clsSType.text    = _clsRewardShip.Ship.ShipTypeName;
            _clsShipName.SetActive(isActive: false);
            _clsSType.SetActive(isActive: false);
            ((Component)_getIconAnim).gameObject.SetActive(false);
            _isBGMove = false;
        }
        private void _setRewardItem()
        {
            int    slotItemID = 0;
            int    num        = 0;
            int    num2       = 0;
            string message    = string.Empty;

            if (_iRewardList[_rewardCount] is IReward_Materials)
            {
                IReward_Materials reward_Materials = (IReward_Materials)_iRewardList[_rewardCount];
                num     = 1;
                message = "「" + reward_Materials.Rewards[0].Name + "」を" + reward_Materials.Rewards[0].Count + "入手しました。";
            }
            if (_iRewardList[_rewardCount] is IReward_Slotitem)
            {
                IReward_Slotitem reward_Slotitem = (IReward_Slotitem)_iRewardList[_rewardCount];
                slotItemID = reward_Slotitem.Id;
                switch (reward_Slotitem.Rare)
                {
                case 0:
                    num  = 1;
                    num2 = 1;
                    break;

                case 1:
                    num  = 2;
                    num2 = 1;
                    break;

                case 2:
                    num = 6;
                    break;

                case 3:
                    num = 6;
                    break;

                case 4:
                    num = 6;
                    break;

                case 5:
                    num = 7;
                    break;
                }
                message = reward_Slotitem.Type3Name + "「" + reward_Slotitem.Name + "」を入手しました。";
            }
            if (_iRewardList[_rewardCount] is IReward_Useitem)
            {
                IReward_Useitem reward_Useitem = (IReward_Useitem)_iRewardList[_rewardCount];
                slotItemID = reward_Useitem.Id;
                num        = 1;
                message    = "「" + reward_Useitem.Name + "」を入手しました。";
            }
            _uiItem.mainTexture = SingletonMonoBehaviour <ResourceManager> .Instance.SlotItemTexture.Load(slotItemID, 1);

            _uiItem.MakePixelPerfect();
            _uiShipGet.alpha = 0f;
            _clsShipMessage.Init(message, 0.04f);
            string str = (num2 != 0) ? "i_rare" : "s_rare";

            _uiRareBG.mainTexture = (Resources.Load(string.Format("Textures/Common/RareBG/" + str + "{0}", num)) as Texture2D);
            UIButtonMessage component = _uiGear.GetComponent <UIButtonMessage>();

            component.target       = base.gameObject;
            component.functionName = "prodReceiveShipEL";
            component.trigger      = UIButtonMessage.Trigger.OnClick;
        }