From c7d2d5cdb20d42a2014ff99d2fdffae68657e02e Mon Sep 17 00:00:00 2001 From: Jakob Stendahl Date: Sun, 1 Oct 2017 19:15:40 +0200 Subject: Started on settings menu --- td/Assets/Scripts/mainGUI.cs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'td/Assets/Scripts/mainGUI.cs') diff --git a/td/Assets/Scripts/mainGUI.cs b/td/Assets/Scripts/mainGUI.cs index 3c135b2..d9f7ee0 100644 --- a/td/Assets/Scripts/mainGUI.cs +++ b/td/Assets/Scripts/mainGUI.cs @@ -7,10 +7,13 @@ public class mainGUI : MonoBehaviour { GameObject pnlMenu; GameObject pnlSidebar; + GameObject pnlSettings; RectTransform pnlSidebarTransform; Button btnToggleSidebar; Button btnPauseGame; Button btnResumeGame; + Button btnExitGame; + Button btnSettings; bool sidebarExpanded; float[] sidebarStates = new float[2] {0f, -202.4f}; // The x position of the sidebar expanded or collapsed @@ -21,19 +24,26 @@ public class mainGUI : MonoBehaviour { /* Panels */ pnlMenu = transform.Find ("menu").gameObject; pnlSidebar = transform.Find ("sidebarWrapper").gameObject; + pnlSettings = transform.Find ("settings").gameObject; pnlSidebarTransform = pnlSidebar.GetComponent (); /* Buttons */ btnToggleSidebar = pnlSidebar.transform.Find("toggleSidebar").gameObject.GetComponent