feat: search togglable and search by tooltip text ~t:{string}

This commit is contained in:
Vati
2026-04-16 02:33:53 +04:00
parent 1af002fa08
commit 6d7c5d4f4c
8 changed files with 391 additions and 56 deletions
+7 -1
View File
@@ -46,7 +46,8 @@ function DB:Initialize()
iconFontSize = 12,
showQualityBorderEquipment = true,
showQualityBorderOther = true,
showSearchBar = true,
showSearchBar = true, -- legacy boolean; preserved for migration. New code reads searchBarMode.
searchBarMode = "shown", -- "shown" | "hidden" | "toggle"
hideBagline = true,
hideFooter = false,
bgTransparency = 0.15,
@@ -120,6 +121,11 @@ function DB:Initialize()
if Guda_CharDB.settings.showSearchBar == nil then
Guda_CharDB.settings.showSearchBar = true
end
-- Migrate legacy boolean to three-state searchBarMode.
if Guda_CharDB.settings.searchBarMode == nil then
Guda_CharDB.settings.searchBarMode =
(Guda_CharDB.settings.showSearchBar == false) and "hidden" or "shown"
end
if Guda_CharDB.settings.questBarPinnedItems == nil then
Guda_CharDB.settings.questBarPinnedItems = {}
end