rename legacy theme to modern

This commit is contained in:
gretj
2025-06-28 15:36:41 +02:00
parent f98d707af5
commit c378e27074
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
# aux Turtle
* Now comes with a new blizz-like theme by default thanks to Oldmana. Use **/aux theme blizzard** or **/aux theme legacy** to switch between them.
* Now comes with a new blizz-like theme by default thanks to Oldmana. Use **/aux theme blizzard** or **/aux theme modern** to switch between them.
* Shares some price data through the LFT chat when searching the AH, use **/aux sharing** to disable sending and receiving data.
* Accurate auction durations for Turtle WoW.
* Autocompletion for custom Turtle WoW items.
@@ -60,7 +60,7 @@ The most advanced auction house addOn for the 1.12 client with some features mor
**/aux crafting cost** (Toggles the crafting price information)<br/>
**/aux post duration _hours_** (Sets the default auction duration to _2_/_8_/_24_ hours)<br/>
**/aux sharing** (Enable or disable auction data sharing as described above)<br/>
**/aux theme _blizzard|legacy_** (Switch between the two themes)<br/>
**/aux theme _blizzard|modern_** (Switch between the two themes)<br/>
### Tooltip
**/aux tooltip value**<br/>
**/aux tooltip daily**<br/>
+3 -3
View File
@@ -66,8 +66,8 @@ function SlashCmdList.AUX(command)
elseif arguments[1] == 'sharing' then
aux.account_data.sharing = not aux.account_data.sharing
aux.print('sharing ' .. status(aux.account_data.sharing))
elseif arguments[1] == 'theme' and (arguments[2] == nil or (arguments[2] == 'legacy' or arguments[2] == 'blizzard')) then
aux.account_data.theme = arguments[2] or (aux.account_data.theme == 'blizzard' and 'legacy' or 'blizzard')
elseif arguments[1] == 'theme' and (arguments[2] == nil or (arguments[2] == 'modern' or arguments[2] == 'blizzard')) then
aux.account_data.theme = arguments[2] or (aux.account_data.theme == 'blizzard' and 'modern' or 'blizzard')
aux.print('theme ' .. aux.color.blue(aux.account_data.theme))
warn_reload()
elseif arguments[1] == 'show' and arguments[2] == 'hidden' then
@@ -91,7 +91,7 @@ function SlashCmdList.AUX(command)
aux.print('- populate wdb')
aux.print('- sharing [' .. status(aux.account_data.sharing) .. ']')
aux.print('- theme [' .. aux.color[aux.account_data.theme == 'blizzard' and 'green' or 'red']('blizzard') .. ' | ' ..
aux.color[aux.account_data.theme == 'legacy' and 'green' or 'red']('legacy') .. ']')
aux.color[aux.account_data.theme == 'modern' and 'green' or 'red']('modern') .. ']')
aux.print('- show hidden [' .. status(aux.account_data.showhidden) .. ']')
end
end
+1 -1
View File
@@ -110,7 +110,7 @@ end
local using_blizzard_theme = true
function M.set_global_theme(theme)
using_blizzard_theme = theme ~= 'legacy'
using_blizzard_theme = theme ~= 'modern'
end
function M.is_blizzard()