From 222e68217c625d831152068cb8daafcc392937ea Mon Sep 17 00:00:00 2001 From: urnati Date: Thu, 27 Apr 2023 14:30:24 -0400 Subject: [PATCH] - Titan - Update right-click menu; when plugin and on a Bar show Bar as Green if current Bar or Gold if not --- Titan/Titan.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 -- 1.7.9.5