From 36be951c25ccbfe47f14ac85af5d52484580fed5 Mon Sep 17 00:00:00 2001
From: Julius <juliusfe@stud.ntnu.no>
Date: Thu, 20 Oct 2022 13:30:28 +0200
Subject: [PATCH] Renamed StatPanel script

---
 MrBigsock/Assets/Code/UI/StatPanel.cs         | 60 +++++++++++++++++++
 ...tPanelScript.cs.meta => StatPanel.cs.meta} |  0
 MrBigsock/Assets/Code/UI/StatPanelScript.cs   | 18 ------
 3 files changed, 60 insertions(+), 18 deletions(-)
 create mode 100644 MrBigsock/Assets/Code/UI/StatPanel.cs
 rename MrBigsock/Assets/Code/UI/{StatPanelScript.cs.meta => StatPanel.cs.meta} (100%)
 delete mode 100644 MrBigsock/Assets/Code/UI/StatPanelScript.cs

diff --git a/MrBigsock/Assets/Code/UI/StatPanel.cs b/MrBigsock/Assets/Code/UI/StatPanel.cs
new file mode 100644
index 00000000..6b593949
--- /dev/null
+++ b/MrBigsock/Assets/Code/UI/StatPanel.cs
@@ -0,0 +1,60 @@
+using System.Collections;
+using System.Collections.Generic;
+using TMPro;
+using UnityEngine;
+using UnityEngine.UI;
+
+namespace BigSock.UI
+{
+    public class StatPanel : MonoBehaviour
+    {
+        //Variables for game objects.
+        public Slider hpSlider, mpSlider, spSlider, dmgSlider, speedSlider, luckSlider, concSlider;
+        public Button hpUp, hpDown, mpUp, mpDown, spUp, spDown, dmgUp, dmgDown, speedUp, speedDown, luckUp, luckDown, concUp, concDown, save;
+        public GameObject pointIndicator;
+
+        //holds text component of text mesh pro object.
+        private TextMeshProUGUI pointIndicatorText;
+
+        //used to show the player how many points they have left.
+        public int xpPoints;
+
+        private void Start()
+        {
+            //Sets text component of point indicator.
+            pointIndicatorText = pointIndicator.GetComponent<TextMeshProUGUI>();
+            
+        }
+
+        private void Update()
+        {
+            pointIndicatorText.text = xpPoints.ToString();
+        }
+
+        /*
+         Renders up-buttons unclickable 
+        */
+        private void SetUpUnclicable()
+        {
+            hpUp.enabled = false;
+            mpUp.enabled = false;
+            spUp.enabled = false;
+            dmgUp.enabled = false;
+            speedUp.enabled = false;
+            luckUp.enabled = false;
+            concUp.enabled = false;
+        }
+
+        private void SetUpClicable()
+        {
+            hpUp.enabled = true;
+            mpUp.enabled = true;
+            spUp.enabled = true;
+            dmgUp.enabled = true;
+            speedUp.enabled = true;
+            luckUp.enabled = true;
+            concUp.enabled = true;
+        }
+    }
+}
+
diff --git a/MrBigsock/Assets/Code/UI/StatPanelScript.cs.meta b/MrBigsock/Assets/Code/UI/StatPanel.cs.meta
similarity index 100%
rename from MrBigsock/Assets/Code/UI/StatPanelScript.cs.meta
rename to MrBigsock/Assets/Code/UI/StatPanel.cs.meta
diff --git a/MrBigsock/Assets/Code/UI/StatPanelScript.cs b/MrBigsock/Assets/Code/UI/StatPanelScript.cs
deleted file mode 100644
index c60b15e6..00000000
--- a/MrBigsock/Assets/Code/UI/StatPanelScript.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-public class StatPanelScript : MonoBehaviour
-{
-    // Start is called before the first frame update
-    void Start()
-    {
-        
-    }
-
-    // Update is called once per frame
-    void Update()
-    {
-        
-    }
-}
-- 
GitLab