Exemplo n.º 1
0
    private void showBestRecords()
    {
        GUI.Box(new Rect(0, 0, 200, 30 * totalInScores), string.Empty);
        AdvancedLabel.Draw(new Rect(10, 10, 200, 200), "<Best Heights>", new NewFontSize(18), new NewColor(Color.white), new NewFontStyle(FontStyle.Italic));

        for (int i = 1; i <= totalInScores; i++)
        {
            float playerScore = PlayerPrefs.GetFloat("Record" + i);

            string labelPlayer = string.Format("~{0}: {1} ·", PlayerPrefs.GetString("Name" + i, textAreaString), playerScore.ToString().Replace(".", "'"));
            AdvancedLabel.Draw(new Rect(10, 10 + (i * 20), 200, 200), labelPlayer, new NewFontSize(15), new NewColor(Color.white), new NewFontStyle(FontStyle.Italic));
        }
    }
Exemplo n.º 2
0
 private void DrawHeader(Rect rect)
 {
     AdvancedLabel.Draw(rect, new AdvancedLabel.Config(Config.headerTittle, Defaults.headerBackgroundStyle, Config.headerTittleFontStyle));
 }