From f42ef4e8196cf51b47e3ceaefae01732308aa71e Mon Sep 17 00:00:00 2001 From: Erik Bylund Date: Mon, 16 Jun 2025 16:23:09 +0200 Subject: [PATCH 01/12] chore: Shore up the admin extension --- .../Editor UI/LootLockerAdminExtension.cs | 361 +++++++++--------- 1 file changed, 175 insertions(+), 186 deletions(-) diff --git a/Runtime/Editor/Editor UI/LootLockerAdminExtension.cs b/Runtime/Editor/Editor UI/LootLockerAdminExtension.cs index c258bd70..442c0737 100644 --- a/Runtime/Editor/Editor UI/LootLockerAdminExtension.cs +++ b/Runtime/Editor/Editor UI/LootLockerAdminExtension.cs @@ -127,182 +127,171 @@ public void CreateGUI() var styleLength = new StyleLength(); var current = styleLength.value; current.unit = LengthUnit.Percent; - current.value = 100; - labelFromUXML.style.height = current; - root.Add(labelFromUXML); + var securityWarning = new Label("Warning: Admin tokens are stored in EditorPrefs and are not encrypted. Do not use on shared or insecure machines."); + securityWarning.style.color = new StyleColor(Color.yellow); + securityWarning.style.unityFontStyleAndWeight = FontStyle.Bold; + root.Add(securityWarning); + live.value = new Color(0.749f, 0.325f, 0.098f, 1); stage.value = new Color(0.094f, 0.749f, 0.352f, 1); defaultButton.value = new Color(0.345f, 0.345f, 0.345f, 1); + // Null checks for all Q() calls menuLogoutBtn = root.Q