- Gold : Add back 'gold only' into menu
urnati [04-28-26 - 02:02]
- Gold : Add back 'gold only' into menu
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 <demian1976andre@yahoo.de>
---[[
- 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 },