Exemple #1
0
 public void addUISort(UISortBehavior uiSort)
 {
     if (container.Contains(uiSort))
     {
         return;
     }
     container.Add(uiSort);
 }
Exemple #2
0
    void Refresh()
    {
        FirstChargeRef data = ConfigMng.Instance.GetFirstChargeRefTable(GameCenter.mainPlayerMng.MainPlayerInfo.Prof);

        //剑
//        if (modelOne != null && data != null)
//        {
//            GameCenter.previewManager.TryPreviewSingleEquipment(new EquipmentInfo(int.Parse(data.lModel), EquipmentBelongTo.PREVIEW), modelOne);
//        }
        if (fxCtrlL != null && data != null)
        {
            fxCtrlL.DoNormalEffect(data.lModel, (x) =>
            {
                UISortBehavior uisb = fxCtrlL.gameObject.AddComponent <UISortBehavior>();
                if (uisb != null)
                {
                    uisb.widgetInFrontOfMe = backSp;
                }
                if (x != null)
                {
                    x.transform.localScale = 550 * Vector3.one;
                }
            });
        }
        //翅膀
        if (modelTwo != null && data != null)
        {
            modelTwo.configID = int.Parse(data.rModel);
            modelTwo.StartLoad();
        }
        //没有完成首充
        if (GameCenter.firstChargeBonusMng.firstChargeBonusStates == (int)FirstChargeState.NOTCHARGE)
        {
            backSp.IsGray = UISpriteEx.ColorGray.Gray;
        }
        //完成首充没有领奖
        else if (GameCenter.firstChargeBonusMng.firstChargeBonusStates == (int)FirstChargeState.HAVECHARGENOTGET)
        {
            backSp.IsGray = UISpriteEx.ColorGray.normal;
        }
        //完成首充并领奖
        else if (GameCenter.firstChargeBonusMng.firstChargeBonusStates == (int)FirstChargeState.HAVECHARGEGET)
        {
            GameCenter.uIMng.SwitchToUI(GUIType.NONE);
        }
    }
Exemple #3
0
 void Awake()
 {
     if (fxCtrlL != null)
     {
         fxCtrlL.DoNormalEffect("e_c_keep_115", () =>
         {
             UISortBehavior uisb = fxCtrlL.gameObject.AddComponent <UISortBehavior>();
             if (uisb != null)
             {
                 uisb.widgetInFrontOfMe = backSp;
             }
             fxCtrlL.transform.localScale = new Vector3(0.3f, 0.3f, 0.3f);
         });
     }
     if (fxCtrlR != null)
     {
         fxCtrlR.DoNormalEffect("e_c_keep_115", () =>
         {
             UISortBehavior uisb = fxCtrlR.gameObject.AddComponent <UISortBehavior>();
             if (uisb != null)
             {
                 uisb.widgetInFrontOfMe = backSp;
             }
             fxCtrlR.transform.localScale = new Vector3(0.3f, 0.3f, 0.3f);
         });
     }
     mutualExclusion = true;
     Layer           = GUIZLayer.NORMALWINDOW;
     if (closeBtn != null)
     {
         UIEventListener.Get(closeBtn.gameObject).onClick = delegate
         {
             GameCenter.uIMng.SwitchToUI(GUIType.NONE);
         }
     }
     ;
     if (vipBtn != null)
     {
         UIEventListener.Get(vipBtn.gameObject).onClick = delegate
         {
             GameCenter.uIMng.SwitchToUI(GUIType.RECHARGE);
         }
     }
     ;
     if (getRewardBtn != null)
     {
         UIEventListener.Get(getRewardBtn.gameObject).onClick = delegate
         {
             if (GameCenter.firstChargeBonusMng.firstChargeBonusStates == (int)FirstChargeState.HAVECHARGENOTGET)
             {
                 GameCenter.lovePackageMng.isCloseFirstBonus = true;
                 GameCenter.twoChargeMng.isCloseTwoCharge    = true;
                 //领取奖励
                 GameCenter.firstChargeBonusMng.C2S_ReqGetFirstChargeInfo(2004);
             }
         }
     }
     ;
     rewardId  = ConfigMng.Instance.GetRewardId(GameCenter.mainPlayerMng.MainPlayerInfo.Prof);
     rewardNum = ConfigMng.Instance.GetRewardNum(GameCenter.mainPlayerMng.MainPlayerInfo.Prof);
     games     = GameObject.Find("Item_Wnd");
 }
Exemple #4
0
 public void removeUISort(UISortBehavior uiSort)
 {
     container.Remove(uiSort);
 }