public void DisplayOnStart() { switch (state) { case StarMenu.MenuItemId.Start_Menu: logo.Draw(); textMenu.Draw(); break; case StarMenu.MenuItemId.Options: logo.DrawContext(); options.Draw(); break; case StarMenu.MenuItemId.Load_Game: logo.DrawContext(); loadZone.Draw(); load.Draw(); break; } if (inputs.Contains(state)) { inputs[state].Draw(); } }
public void Draw() { topBar.Draw(); top.Draw(); bottomMenu.Draw(); bottomLeft.Draw(); bottomRight.Draw(); }
public override void DrawElement(Rect rect, int elementIndex, bool isActive) { if (elementIndex >= gameManager.saveJson.saves.Length) { return; } GUIStyle style = gameManager.TextStyle(); style.fontSize = (int)(style.fontSize * menuArea.GetPercentSize()); GUI.Label(time.GetRect(rect), "Play Time: " + gameManager.saveJson.saves[elementIndex].time.ToString(), style); GUI.Label(gameComplete.GetRect(rect), "Game Progress: " + gameManager.saveJson.saves[elementIndex].percentComplete + "%", style); shrine.contentTexture = uiManager.warp.GetTexture(gameManager.saveJson.saves[elementIndex].respawPoint); shrine.Draw(rect); if (isActive) { selected.Draw(rect); } }