Ejemplo n.º 1
0
 void Start()
 {
     TITAL         = FengGameManagerMKII.level;
     TITAL         = TITAL + " " + IN_GAME_MAIN_CAMERA.difficulty.ToString();
     TITAL         = TITAL + " " + IN_GAME_MAIN_CAMERA.dayLight;
     TITAL         = TITAL + "\n" + FengGameManagerMKII.instance.tital_text();
     posPanel      = base.gameObject.transform.localPosition;
     ShowPanelCyan = (PrefersCyan.GetInt("int_result_cyan_panel", 1) == 1);
     CyanPanelRect = new Rect(Screen.width / 2 - 440, Screen.height / 2 - 250, 880, 500);
     my_formils    = PrefersCyan.GetInt("int_my_formuls", 1);
     inf_players   = new List <Mystats>();
     foreach (PhotonPlayer player in PhotonNetwork.playerList)
     {
         inf_players.Add(new Mystats(player.kills, player.deaths, player.max_dmg, player.total_dmg, player.ishexname, player.ID, player.isLocal));
     }
     isSorting = 1;
     to_sort();
     if (ShowPanelCyan)
     {
         ShowPanel();
     }
     else
     {
         HidePanel();
     }
 }
Ejemplo n.º 2
0
 bool HidePanel()
 {
     base.gameObject.transform.localPosition = posPanel;
     FengGameManagerMKII.settings[365]       = 1;
     ShowPanelCyan = false;
     PrefersCyan.Save();
     return(true);
 }
Ejemplo n.º 3
0
 bool ShowPanel()
 {
     base.gameObject.transform.localPosition = new Vector3(0, 9999, 0);
     FengGameManagerMKII.settings[365]       = 0;
     ShowPanelCyan = true;
     PrefersCyan.Save();
     return(true);
 }
Ejemplo n.º 4
0
 private void OnSelectionChange(bool yes)
 {
     if (yes)
     {
         IN_GAME_MAIN_CAMERA.cameraMode = this.camera;
         PrefersCyan.SetInt("int_camera_type", (int)IN_GAME_MAIN_CAMERA.cameraMode);
     }
 }
Ejemplo n.º 5
0
 bool HidePanel()
 {
     base.gameObject.transform.localPosition = posPanel;
     ShowPanelCyan = false;
     PrefersCyan.SetInt("int_result_cyan_panel", 0);
     PrefersCyan.Save();
     return(true);
 }
Ejemplo n.º 6
0
 bool ShowPanel()
 {
     base.gameObject.transform.localPosition = new Vector3(0, 9999, 0);
     ShowPanelCyan = true;
     PrefersCyan.SetInt("int_result_cyan_panel", 1);
     PrefersCyan.Save();
     return(true);
 }
Ejemplo n.º 7
0
    public CAMERA_TYPE chageCamera()
    {
        bool        flag       = false;
        CAMERA_TYPE cameraMode = IN_GAME_MAIN_CAMERA.cameraMode;
        int         num        = 0;

        while (!flag)
        {
            num++;
            switch (cameraMode)
            {
            case CAMERA_TYPE.ORIGINAL:
                cameraMode        = CAMERA_TYPE.WOW;
                Screen.lockCursor = false;
                if (((int)FengGameManagerMKII.settings[0x146]) == 0)
                {
                    flag = true;
                }
                break;

            case CAMERA_TYPE.WOW:
                cameraMode        = CAMERA_TYPE.TPS;
                Screen.lockCursor = true;
                if (((int)FengGameManagerMKII.settings[0x145]) == 0)
                {
                    flag = true;
                }
                break;

            case CAMERA_TYPE.TPS:
                cameraMode        = CAMERA_TYPE.oldTPS;
                Screen.lockCursor = true;
                if (((int)FengGameManagerMKII.settings[0x147]) == 0)
                {
                    flag = true;
                }
                break;

            case CAMERA_TYPE.oldTPS:
                cameraMode        = CAMERA_TYPE.ORIGINAL;
                Screen.lockCursor = false;
                if (((int)FengGameManagerMKII.settings[0x144]) == 0)
                {
                    flag = true;
                }
                break;
            }
            if (num > 10)
            {
                cameraMode        = CAMERA_TYPE.ORIGINAL;
                Screen.lockCursor = false;
                flag = true;
            }
        }
        PrefersCyan.SetString("string_cameraType", cameraMode.ToString());
        return(cameraMode);
    }
Ejemplo n.º 8
0
 bool HidePanel()
 {
     base.gameObject.transform.localPosition = posPanel;
     FengGameManagerMKII.settings[267]       = 0;
     PanelMultiJoin.Enabeled = true;
     ShowPanelCyan           = false;
     PrefersCyan.Save();
     return(true);
 }
Ejemplo n.º 9
0
    bool ShowPanel()
    {
        base.gameObject.transform.localPosition = new Vector3(0, 9999, 0);

        FengGameManagerMKII.settings[267] = 1;
        PanelMultiJoin.Enabeled           = false;
        ShowPanelCyan = true;
        PrefersCyan.Save();
        return(true);
    }
Ejemplo n.º 10
0
    private void Start()
    {
      

        if (this.camera.ToString().ToUpper() == ((CAMERA_TYPE)PrefersCyan.GetInt("int_camera_type",0)).ToString().ToUpper())
            {
                base.GetComponent<UICheckbox>().isChecked = true;
            }
            else
            {
                base.GetComponent<UICheckbox>().isChecked = false;
            }
        
    }
Ejemplo n.º 11
0
    private void OnSliderChange(float value)
    {
        if (!this.init)
        {
            UISlider uis = base.gameObject.GetComponent <UISlider>();
            this.init       = true;
            uis.sliderValue = FengGameManagerMKII.instance.distanceSlider;
        }
        else

        {
            PrefersCyan.SetFloat("floatcameraDistance", FengGameManagerMKII.instance.distanceSlider);
        }
        IN_GAME_MAIN_CAMERA.cameraDistance = 0.3f + FengGameManagerMKII.instance.distanceSlider;
    }
Ejemplo n.º 12
0
    bool AddFilter(string text)
    {
        if (text.Trim() == string.Empty)
        {
            return(false);
        }
        text      = text.ToLower().Trim();
        searshing = searshing.EmptyD();

        int serahLenght = searshing.Length;

        if (serahLenght > 0)
        {
            if (searshing.Contains(text))
            {
                return(false);
            }
            string strw = string.Empty;
            if (serahLenght >= 3)
            {
                serahLenght = 2;
            }
            for (int i = 0; i < serahLenght; i++)
            {
                string lll = searshing[i];
                if (lll != string.Empty)
                {
                    strw = lll + "," + strw;
                }
            }
            FengGameManagerMKII.settings[265] = text + "," + strw;
            PrefersCyan.SetString("stringSearhList", (string)FengGameManagerMKII.settings[265]);
            PrefersCyan.Save();
        }
        else
        {
            FengGameManagerMKII.settings[265] = text + ",";
            PrefersCyan.SetString("stringSearhList", (string)FengGameManagerMKII.settings[265]);
            PrefersCyan.Save();
            return(true);
        }


        return(true);
    }
Ejemplo n.º 13
0
 private void OnSelectionChange()
 {
     if (uilist.selection == "ORIGINAL")
     {
         IN_GAME_MAIN_CAMERA.cameraMode = CAMERA_TYPE.ORIGINAL;
     }
     if (uilist.selection == "WOW")
     {
         IN_GAME_MAIN_CAMERA.cameraMode = CAMERA_TYPE.WOW;
     }
     if (uilist.selection == "TPS")
     {
         IN_GAME_MAIN_CAMERA.cameraMode = CAMERA_TYPE.TPS;
     }
     if (uilist.selection == "oldTPS")
     {
         IN_GAME_MAIN_CAMERA.cameraMode = CAMERA_TYPE.oldTPS;
     }
     PrefersCyan.SetString("string_cameraType", uilist.selection);
 }
Ejemplo n.º 14
0
 void Start()
 {
     CheckBoxCostume.costumeSet = PrefersCyan.GetInt("int_costume_value", 1);
 }
Ejemplo n.º 15
0
 private void Awake()
 {
     uilist           = base.GetComponent <UIPopupList>();
     uilist.selection = PrefersCyan.GetString("string_cameraType", "TPS");
 }