From 4540f12a4ead3722ac38bb693e2325e5cb4aa545 Mon Sep 17 00:00:00 2001 From: urnati Date: Mon, 27 Apr 2026 22:02:33 -0400 Subject: [PATCH] - Gold : Add back 'gold only' into menu --- TitanGold/TitanGold.lua | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/TitanGold/TitanGold.lua b/TitanGold/TitanGold.lua index bb28038..75d824b 100644 --- a/TitanGold/TitanGold.lua +++ b/TitanGold/TitanGold.lua @@ -392,17 +392,6 @@ end -- ====== Tool tip routines ----[===[ André Kräußlich ---[[ - In this file I did only the changes for better display and the solving of the problem with the sorting by realm. - Yea, the necessary function is much mor larger als the old, but in my retail it works fine. - - Note: - "".. <-- this chars are not realy necessary and it works without fine, - spaces between brackets and chars also not necessary (see in my func's). - - I hope, I could help to save the old way of TitanGold :-) -]]-- --- functions to check the work after manipulate an singulary array or an array with subarrays local function printArray(t)for k, v in pairs(t)do print(k..": ", v)end end local function printTable(t)for k, v in pairs(t)do if type(v) == "table" then print(k..": ")printArray(v)else print(k..": ", v)end end end @@ -417,6 +406,9 @@ end -- ====== Tool tip routines ---Take a table of toons to sort per user settings: @param gold_table table; @return table sorted May not be need but it is explicit local function SortByIndex(gold_table) + + -- special thanks to Liefwing (Andre) for the code to show all server properly! + --- function to hard copy an array local function deepcopy(orig) local orig_type = type(orig) @@ -1118,6 +1110,8 @@ local function GeneratorFunction(owner, rootDescription) Titan_Menu.AddSelector(opts_gold, id, L["TITAN_GOLD_TOGGLE_GPH_SHOW"], "DisplayGoldPerHour") end + Titan_Menu.AddSelector(root, id, L["TITAN_GOLD_ONLY"], "ShowGoldOnly") + local disp = { -- selectors using the same option { L["TITAN_GOLD_TOGGLE_ALL_TEXT"], true }, { L["TITAN_GOLD_TOGGLE_PLAYER_TEXT"], false }, -- 1.7.9.5