Add tooltip menu and locale strings

This commit is contained in:
rilgamon 2021-03-14 09:14:00 +01:00
parent b732b2a76b
commit 3e5178e1c5
5 changed files with 13 additions and 4 deletions

View File

@ -39,6 +39,8 @@ if L then
L['DeleteCharDesc'] = "Entferne alle Daten zu diesem Character"
L['DeleteCharOk'] = "Ja, ich bin sicher!"
L['showLog'] = "Logge Ver\195\164nderungen im Chat"
L['ttmenu_title'] = "Tooltip-Einstellungen"
L['ttmenu_desc'] = "Diese Einstellungen ver\195\164ndern den Broker-Tooltip"
end
-- ö \195\182 ß \195\159

View File

@ -38,5 +38,7 @@ if L then
L['DeleteChar'] = "Delete Char"
L['DeleteCharDesc'] = "Removes all data for this character"
L['DeleteCharOk'] = "Yes, I'm sure!"
L['showLog'] = "Log changes in chat"
L['showLog'] = "Log changes in chat"
L['ttmenu_title'] = "Tooltip Settings"
L['ttmenu_desc'] = "This settings modify the broker tooltip"
end

View File

@ -39,4 +39,6 @@ if L then
L['DeleteCharDesc'] = "Removes all data for this character"
L['DeleteCharOk'] = "Yes, I'm sure!"
L['showLog'] = "Log changes in chat"
L['ttmenu_title'] = "Tooltip Settings"
L['ttmenu_desc'] = "This settings modify the broker tooltip"
end

View File

@ -39,4 +39,6 @@ if L then
L['DeleteCharDesc'] = "Removes all data for this character"
L['DeleteCharOk'] = "Yes, I'm sure!"
L['showLog'] = "Log changes in chat"
L['ttmenu_title'] = "Tooltip Settings"
L['ttmenu_desc'] = "This settings modify the broker tooltip"
end

View File

@ -55,6 +55,7 @@ function addonTable:SetupPrefs(childName)
local main = addonTable['options']['args'][childName]
local menu = config:AddConfigMenu(addonTable['options'], L['Bankier'], addonTable['bankHandler'] , 2, { disabled = function() return db['disableBanker']
end})
local ttmenu = config:AddConfigEntry(main, "ttmenu", "group", L['ttmenu_title'], L['ttmenu_desc'], 9)
config:AddConfigEntry(menu, "minLimit", "range", L['Minimum Limit'],L['Desc MinL'],1,10,150000,5, false)
config:AddConfigEntry(menu, "maxLimit", "range", L['Maximum Limit'],L['Desc MaxL'],2,10,150000,5,false)
config:AddConfigEntry(menu, "banker","select",L['Bankier'],nil,3,buildSelect)
@ -63,11 +64,11 @@ end})
config:AddConfigEntry(main, "deleteChar", "select", L['DeleteChar'], L['DeleteCharDesc'], 10, buildSelectAll)
config:AddConfigEntry(main, "deleteCharOk", "toggle", L['DeleteCharOk'], nil , 11)
config:AddConfigEntry(main, "deleteCharExec", "execute", L['DeleteChar'], L['DeleteCharDesc'], 12, deleteChar)
config:AddConfigEntry(main, "sortDir", "toggle", L['sortDir'], nil, 2)
config:AddConfigEntry(ttmenu, "sortDir", "toggle", L['sortDir'], nil, 2)
config:AddConfigEntry(main, "connectedRealms", "toggle", L['connectedRealms'], nil, 2)
config:AddConfigEntry(main, "accountMoney", "toggle", L['accountMoney'], L['accountMoneyDesc'], 4)
config:AddConfigEntry(ttmenu, "accountMoney", "toggle", L['accountMoney'], L['accountMoneyDesc'], 4)
config:AddConfigEntry(main, "shortMoney", "toggle", L['shortMoney'], nil, 5)
config:AddConfigEntry(main, "shortMoneyTip", "toggle", L['shortMoneyTip'], nil, 5)
config:AddConfigEntry(ttmenu, "shortMoneyTip", "toggle", L['shortMoneyTip'], nil, 5)
config:AddConfigEntry(main, "abrevK", "toggle", L['abrevK'], nil, 6)
config:AddConfigEntry(main, "abrevM", "toggle", L['abrevM'], nil, 6)
config:AddConfigEntry(main, "showLog", "toggle", L['showLog'], nil, 7)