Beispiel #1
0
    void PrintConfirm()
    {
        OsuFile osu = ToGameValue.instance.FinalOsu;

        string modString = "";

        foreach (var m in Userpref.data.mods)
        {
            modString += ", " + PlayStat.ModString[(int)m];
        }
        if (modString == "")
        {
            modString = "null";
        }
        else
        {
            modString = modString.Substring(2);
        }

        string s = $"Mods: <color=yellow>{modString}</color>\n";

        s += $"<color=yellow>{osu.Title}</color> - <color=yellow>{osu.Artist}</color>\n";
        s += $"<color=yellow>{osu.Creator}</color>\'s <color=yellow>{osu.Version}</color>\n";
        s += "<size=20><b>ARE YOU READY?</b></size>";
        confirmPanel_Text.text = s;
        mod_AutoClick.transform.Find("Icon").GetComponent <Image>().enabled = Userpref.HasModStatic(PlayStat.Mods.AutoClick);
        mod_AutoMove.transform.Find("Icon").GetComponent <Image>().enabled  = Userpref.HasModStatic(PlayStat.Mods.AutoMove);
    }
Beispiel #2
0
    IEnumerator GoGameAsync()
    {
        //GetMusic and init the game value
        ToGameValue.instance.Set();
        confirmPanel_Text.text = confirmPanel_Text.text.Replace("ARE YOU READY?", "NOW LOADING...");
        Userpref.Save();

        var L = SceneManager.LoadSceneAsync("Main");

        while (!L.isDone)
        {
            yield return(L.progress);
        }
    }
Beispiel #3
0
 void Start()
 {
     Userpref.Load();
     skin.value = Userpref.data.skinType;
     //skin.options
     bgm.value    = Userpref.data.volumeBgm;
     sfx.value    = Userpref.data.volumeSfx;
     osuPath.text = Userpref.data.customOsuPath;
     calcScore.options.Clear();
     foreach (string s in PlayStat.CalcMode)
     {
         Dropdown.OptionData op = new Dropdown.OptionData();
         op.text = s;
         calcScore.options.Add(op);
     }
     calcScore.value = Userpref.data.calcScoreMod;
 }
Beispiel #4
0
 public void ModButt_AutoMove_OnClick()
 {
     Userpref.ToggleModStatic(PlayStat.Mods.AutoMove);
     PrintConfirm();
 }