Beispiel #1
0
 public static void Draw()
 {
     GUI.DrawTexture(new Rect(0f, 0f, (float)Screen.width, GUIM.YRES(40f)), TopBar.tBlack);
     TopBar.rHeader_logo = new Rect(0f, 4f, 256f, 32f);
     GUIM.DrawTextureX(TopBar.rHeader_logo, TopBar.tHeader_logo);
     TopBar.DrawButton(0, Lang.Get("_PLAY"), TopBar.rButton[0], TopBar.tPlay[0], TopBar.tPlay[1], TopBar.tOrange);
     TopBar.DrawButton(1, Lang.Get("_SHOP"), TopBar.rButton[1], TopBar.tShop[0], TopBar.tShop[1], TopBar.tGreen);
     TopBar.DrawButton(2, Lang.Get("_OPTIONS"), TopBar.rButton[2], TopBar.tOptions[0], TopBar.tOptions[1], TopBar.tBlue);
     if (GameData.gSteam)
     {
         TopBar.mpos = new Vector2(Input.mousePosition.x, (float)Screen.height - Input.mousePosition.y);
         if (TopBar.rClose.Contains(TopBar.mpos))
         {
             GUI.color = Color.red;
         }
         GUI.DrawTexture(TopBar.rClose, TopBar.tClose);
         GUI.color = Color.white;
         if (GUIM.HideButton(TopBar.rClose))
         {
             Application.Quit();
         }
     }
 }