コード例 #1
0
 void OnMakeBtn(ButtonScript obj, object args, int param1, int param2)
 {
     if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Make))
     {
         PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
         return;
     }
     CompoundUI.SwithShowMe();
 }
コード例 #2
0
 public void InitOpenEquip(uint[] arr)
 {
     openEquipList.Clear();
     for (int i = 0; i < arr.Length; i++)
     {
         openEquipList.Add(arr[i]);
     }
     isInit = true;
     if (isOpenInit)
     {
         isOpenInit = false;
         NetWaitUI.HideMe();
         CompoundUI.SwithShowMe(bTiSheng);
     }
 }
コード例 #3
0
    void OnMainClick(ButtonScript obj, object args, int param1, int param2)
    {
        this.gameObject.SetActive(false);
        switch ((RaiseType)param1)
        {
        case RaiseType.RT_RaiseBaby:
            MainbabyUI.SwithShowMe();
            break;

        case RaiseType.RT_RaisePlayer:
            PlayerPropertyUI.SwithShowMe();
            break;

        case RaiseType.RT_RaiseSkill:
            MainbabySkillNpc.SwithShowMe();
            break;

        case RaiseType.RT_RaiseEquip:
            CompoundUI.SwithShowMe(true);
            break;

        case RaiseType.RT_PartnerCollect:
            EmployessControlUI.SwithShowMe();
            break;

        case RaiseType.RT_PartnerBattle:
            EmployessControlUI.SwithShowMe(2);
            break;

        case RaiseType.RT_PartnerRaise:
            EmployessControlUI.SwithShowMe(3);
            break;

        case RaiseType.RT_PartnerEquip:
            EmployessControlUI.SwithShowMe(3);
            break;

        default:
            break;
        }
    }
コード例 #4
0
    private void OnGoBtn(ButtonScript obj, object args, int param1, int param2)
    {
        if (Cheats == null)
        {
            return;
        }
        if (!string.IsNullOrEmpty(_cheatsData.find_))
        {
            GameManager.Instance.ParseNavMeshInfo(_cheatsData.find_);
            return;
        }


        if (Cheats.uiType_ == HelpRaiseType.HRT_None)
        {
            return;
        }

        if (Cheats.uiType_ == HelpRaiseType.HRT_PlayerAddProp)
        {
            PlayerPropertyUI.SwithShowMe();
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_PlayerResetProp)
        {
            PlayerPropertyUI.SwithShowMe();
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_PlayerAddEvolve)
        {
            PlayerPropertyUI.SwithShowMe();
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_BabyAddProp)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Baby))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            MainbabyUI.SwithShowMe();
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_BabyReset)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Baby))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            MainbabyUI.SwithShowMe();
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_BabyStr)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Baby))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            MainbabyUI.SwithShowMe();
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_BabySkill)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Baby))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            MainbabyUI.SwithShowMe();
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_BabyChange)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Baby))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            MainbabyUI.SwithShowMe();
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_SkillAuto)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Skill))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            SkillViewUI.SwithShowMe();
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_SkillItem)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Skill))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            SkillViewUI.SwithShowMe();
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_EquipCompound)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Make))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            CompoundUI.SwithShowMe();
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_EquipGem)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Make))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            CompoundUI.SwithShowMe();
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_EmployeeBuy)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_EmployeeGet))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            EmployessControlUI.SwithShowMe();
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_EmployeePos)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_EmployeeGet))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            EmployessControlUI.SwithShowMe(2);
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_EmployeeSkill)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_EmployeeGet))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            EmployessControlUI.SwithShowMe(1);
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_EmployeeEquip)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_EmployeeGet))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            EmployessControlUI.SwithShowMe(3);
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_EmployeeEvolve)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_EmployeeGet))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            EmployessControlUI.SwithShowMe(3);
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_MagicLevelUp)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_MagicItem))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            magicItemUI.SwithShowMe();
        }
        else if (Cheats.uiType_ == HelpRaiseType.HRT_MagicEvolve)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_MagicItem))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gongnengweikaiqi"));
                return;
            }
            magicItemUI.SwithShowMe();
        }
    }