示例#1
0
 public void OnCancelBtnClick()
 {
     GlobalMenuManager.Instance.RemoveCache("LTResourceInstanceUI");
     mActivityId   = 0;
     mChooseLevel  = null;
     mInstanceType = ResourceInstanceType.Null;
 }
示例#2
0
        public override void SetMenuData(object param)
        {
            base.SetMenuData(param);

            if (param != null)
            {
                string s = param as string;
                if (s.Contains("Gold"))
                {
                    mInstanceType = ResourceInstanceType.Gold;
                    mActivityId   = 9001;
                    ExpFx.CustomSetActive(false);
                    GoldFx.CustomSetActive(true);
                }
                else if (s.Contains("Exp"))
                {
                    mInstanceType = ResourceInstanceType.Exp;
                    mActivityId   = 9002;

                    GoldFx.CustomSetActive(false);
                    ExpFx.CustomSetActive(true);
                }
                else
                {
                    EB.Debug.LogError("LTResourceInstanceHudController.SetMenuData: type {0} vaild", param);
                }
            }
        }
示例#3
0
 public bool IsLock(Hotfix_LT.Data.SpecialActivityLevelTemplate level, ResourceInstanceType type)
 {
     if (type == ResourceInstanceType.Gold)
     {
         return(level.id > mPassDifficeGlod);
     }
     else if (type == ResourceInstanceType.Exp)
     {
         return(level.id > mPpassDifficeExp);
     }
     return(true);
 }
示例#4
0
 public bool IsCanBlitz(Hotfix_LT.Data.SpecialActivityLevelTemplate level, ResourceInstanceType type)
 {
     if (type == ResourceInstanceType.Gold)
     {
         return(level.id <= (mPassDifficeGlod - 1));
     }
     else if (type == ResourceInstanceType.Exp)
     {
         return(level.id <= (mPpassDifficeExp - 1));
     }
     return(false);
 }
示例#5
0
        public void InitState(Hotfix_LT.Data.SpecialActivityLevelTemplate data, ResourceInstanceType type)
        {
            if (data == null)
            {
                return;
            }

            bool isLock = LTResourceInstanceManager.Instance.IsLock(data, type);

            ItemSprite.color = isLock ? GreyColor : NormalColor;
            LockObj.SetActive(isLock);
        }
示例#6
0
        public int GetResourceBattleEnterVigor(ResourceInstanceType type)
        {
            switch (type)
            {
            //金币副本
            case ResourceInstanceType.Gold:
                return((int)GetGameConfigValue("TreasureCost"));

            //经验副本
            case ResourceInstanceType.Exp:
                return((int)GetGameConfigValue("ExpSpringCost"));
            }

            return(0);
        }