Quantcast

- Config : Hide single bar options if Global skins are being used; give use indication if Global skins used

urnati [08-27-25 - 19:20]
- Config : Hide single bar options if Global skins are being used; give use indication if Global skins used
Filename
Titan/TitanConfig.lua
Titan/TitanHistory.lua
diff --git a/Titan/TitanConfig.lua b/Titan/TitanConfig.lua
index 776903b..2d702a2 100644
--- a/Titan/TitanConfig.lua
+++ b/Titan/TitanConfig.lua
@@ -632,12 +632,46 @@ local function TitanUpdateConfigBars(t, pos)

 		-- ======
 		-- Background group
+		position = position + 1 -- global background
+		args[v.name].args.globalbackground = {
+			name = BACKGROUND,
+			type = "group",
+			inline = true,
+			order = position,
+			hidden = function(info)
+				local hide = false
+				if TitanBarDataVars["Global"].texure == Titan_Global.NONE then
+					hide = true
+				else
+					hide = false -- skin or color is set global
+				end
+				return hide
+			end,
+			args = {
+				globalskins = {
+					type = "header",
+					name = L["TITAN_PANEL_MENU_GLOBAL_SKIN_TITLE"],
+					order = 100,
+					width = "full",
+				},
+			},
+		}
+
 		position = position + 1 -- background
 		args[v.name].args.background = {
 			name = BACKGROUND,
 			type = "group",
 			inline = true,
 			order = position,
+			hidden = function(info)
+				local hide = false
+				if TitanBarDataVars["Global"].texure == Titan_Global.NONE then
+					hide = false
+				else
+					hide = true -- skin or color is set global
+				end
+				return hide
+			end,
 			args = {
 				settextousebar = {
 					name = "",    --L["TITAN_PANEL_MENU_GLOBAL_SKIN"],
@@ -802,7 +836,7 @@ local function TitanUpdateConfigBars(t, pos)
 						},
 					},
 				},
-			}
+			},
 		}
 	end

diff --git a/Titan/TitanHistory.lua b/Titan/TitanHistory.lua
index 0e87839..0b2c87b 100644
--- a/Titan/TitanHistory.lua
+++ b/Titan/TitanHistory.lua
@@ -15,6 +15,14 @@ Green - 'header' - Titan or plugin
 Highlight - notes. tips. and details
 --]]
 Titan_Global.recent_changes = ""
+.. TitanUtils_GetGoldText("8.3.5 : 2025/08/27\n")
+.. TitanUtils_GetGreenText("Titan : \n")
+.. TitanUtils_GetHighlightText(""
+.. "-  Repair : \n"
+.. "-  - : Restore accidently removed 'use guild funds' option.\n"
+.. "-  Internal : \n"
+.. "-  - : Config updates to Vars and Bars All when choosing global versus single bar values.\n"
+)
 .. TitanUtils_GetGoldText("8.3.4 : 2025/08/24\n")
 .. TitanUtils_GetGreenText("Titan : \n")
 .. TitanUtils_GetHighlightText(""
@@ -47,19 +55,6 @@ Titan_Global.recent_changes = ""
 .. "-  Internally : \n"
 .. "-  - : Several tweaks for MoP.\n"
 )
-.. TitanUtils_GetGoldText("8.3.0 : 2025/07/2\n")
-.. TitanUtils_GetGreenText("Titan : \n")
-.. TitanUtils_GetHighlightText(""
-.. "-  Major change : \n"
-.. "-  - : Titan users will have their Titan options reset.\n"
-.. "-  - : Titan plugin options should be the same after update.\n"
-.. "-  - : Titan 3rd party plugins for Classic must be updated.\n"
-.. "-  Internally : \n"
-.. "-  - : TitanClassic is no longer an ID.\n"
-.. "-  - : Titan Classic 3rd party plugins must use Titan as the dependency in TOC, not TitanClassic.\n"
-.. "-  - : Saved variables will be in Titan.lua rather than TitanCLassic.lua.\n"
-)
-
 .. "\n\n"

 --[[ Var Notes