Quantcast

- Titan - Update right-click menu; when plugin and on a Bar show Bar as Green if current Bar or Gold if not

urnati [04-27-23 - 18:30]
- Titan - Update right-click menu; when plugin and on a Bar show Bar as Green if current Bar or Gold if not
Filename
Titan/Titan.lua
diff --git a/Titan/Titan.lua b/Titan/Titan.lua
index f1cc822..f26d23b 100644
--- a/Titan/Titan.lua
+++ b/Titan/Titan.lua
@@ -2315,11 +2315,15 @@ local function BuildPluginCategoryMenu(frame)
 					info.text = plugin.menuText;
 				end
 				-- Add Bar
-				local _, which_bar = TitanUtils_GetWhichBar(id)
+				local internal_bar, which_bar = TitanUtils_GetWhichBar(id)
 				if which_bar == nil then
 					-- Plugin not shown
 				else
-					info.text = info.text..TitanUtils_GetGoldText(" ("..which_bar..")")
+					if internal_bar == TitanBarData[frame].name then
+						info.text = info.text..TitanUtils_GetGreenText(" ("..which_bar..")")
+					else
+						info.text = info.text..TitanUtils_GetGoldText(" ("..which_bar..")")
+					end
 				end

 				if plugin.controlVariables then