コード例 #1
0
 void Start()
 {
     CheckBoxCostume.costumeSet = (int)FengGameManagerMKII.settings[412];
     id = "TITAN";
     if (IN_GAME_MAIN_CAMERA.gamemode == GAMEMODE.PVP_AHSS)
     {
         id = "AHSS";
     }
     HeroStat.initDATA();
     if (((IN_GAME_MAIN_CAMERA.singleCharacter != "Set 1") && (IN_GAME_MAIN_CAMERA.singleCharacter != "Set 2")) && (IN_GAME_MAIN_CAMERA.singleCharacter != "Set 3"))
     {
         stat = HeroStat.getInfo(IN_GAME_MAIN_CAMERA.singleCharacter);
     }
     else
     {
         HeroCostume costume = CostumeConeveter.LocalDataToHeroCostume(IN_GAME_MAIN_CAMERA.singleCharacter);
         if (costume == null)
         {
             stat = new HeroStat();
         }
         else
         {
             stat = costume.stat;
         }
         stat.name = IN_GAME_MAIN_CAMERA.singleCharacter;
     }
     if (PanelEnterGame.instance != null)
     {
         PanelEnterGame.instance.to_InfoHero(stat);
     }
 }
コード例 #2
0
    void Start()
    {
        this.showTxt();
        CheckBoxCostume.costumeSet = (int)FengGameManagerMKII.settings[412];
        int num = !CyanMod.CachingsGM.Find("CheckboxHard").GetComponent <UICheckbox>().isChecked ? (!CyanMod.CachingsGM.Find("CheckboxAbnormal").GetComponent <UICheckbox>().isChecked ? 0 : 2) : 1;

        IN_GAME_MAIN_CAMERA.difficulty = (DIFFICULTY)FengGameManagerMKII.settings[411];
        if (IN_GAME_MAIN_CAMERA.difficulty == DIFFICULTY.ABNORMAL)
        {
            CyanMod.CachingsGM.Find("CheckboxAbnormal").GetComponent <UICheckbox>().isChecked = true;
        }
        else if (IN_GAME_MAIN_CAMERA.difficulty == DIFFICULTY.HARD)
        {
            CyanMod.CachingsGM.Find("CheckboxHard").GetComponent <UICheckbox>().isChecked = true;
        }
        else if (IN_GAME_MAIN_CAMERA.difficulty == DIFFICULTY.NORMAL)
        {
            CyanMod.CachingsGM.Find("CheckboxNormal").GetComponent <UICheckbox>().isChecked = true;
        }
        HeroStat.initDATA();
        CyanMod.CachingsGM.Find("PopupListCharacter").GetComponent <UIPopupList>().selection = IN_GAME_MAIN_CAMERA.singleCharacter;
        LevelInfo.initData2();
        lvels = new List <LevelInfo>();
        foreach (LevelInfo info in LevelInfo.levels)
        {
            if (info != null && info.name.StartsWith("[S]"))
            {
                lvels.Add(info);
            }
        }
        if (curentLVL == null)
        {
            curentLVL = LevelInfo.getInfo((string)FengGameManagerMKII.settings[410]);
        }
        GameObject poplist = CyanMod.CachingsGM.Find("PopupListMap");

        if (poplist != null)
        {
            UIPopupList pl = poplist.GetComponent <UIPopupList>();
            if (pl != null && !pl.items.Contains("[S]The Forest IV - LAVA"))
            {
                pl.items.Add("[S]The Forest IV - LAVA");
            }
            pl.selection = curentLVL.name;
        }
        posPanel = base.gameObject.transform.localPosition;
        if ((int)FengGameManagerMKII.settings[365] == 0)
        {
            ShowPanel();
        }
        else
        {
            HidePanel();
        }
    }
コード例 #3
0
ファイル: HeroStat.cs プロジェクト: kmlkmljkl2/Anarchy
 public static HeroStat getInfo(string name)
 {
     HeroStat.initDATA();
     return(HeroStat.stats[name]);
 }