coa.9: revert scale default + crash fixes + personal/realm bank + woodworking
release / release (push) Successful in 5s
release / release (push) Successful in 5s
- Revert UIScale default 1.4->1.0 (scaling only zoomed, no extra content; real larger layout tracked separately). Apply saved scale on open, default 1.0. - Fix Options:Get/Set nil 'options' crash (TabOptions.lua:442). - Guild Members: guard Level_OnClick against cleared/stale row IDs. - Personal + Realm bank tracking ported from coa-bagnon (BANK_PERMISSIONS_PAYLOAD detection; personal per-char, realm per-realm; Search + BagUsage surfacing). - Woodcutting/Woodworking columns on Skills tab (CoA custom professions).
This commit is contained in:
@@ -603,15 +603,17 @@ local function BrowseCharacter(character)
|
||||
currentResultLocation = L["Bank"]
|
||||
elseif (containerName == "Bag-2") then
|
||||
currentResultLocation = KEYRING
|
||||
elseif string.sub(containerName, 1, 5) == "PBank" then -- CoA personal bank tab
|
||||
currentResultLocation = "Personal Bank"
|
||||
else
|
||||
local bagNum = tonumber(string.sub(containerName, 4))
|
||||
if (bagNum >= 0) and (bagNum <= 4) then
|
||||
currentResultLocation = L["Bags"]
|
||||
else
|
||||
currentResultLocation = L["Bank"]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
for slotID = 1, container.size do
|
||||
itemID, itemLink, itemCount = DS:GetSlotInfo(container, slotID)
|
||||
|
||||
@@ -710,7 +712,39 @@ local function BrowseRealm(realm, account, bothFactions)
|
||||
currentResultType = nil
|
||||
currentResultLocation = nil
|
||||
end
|
||||
|
||||
|
||||
-- CoA realm bank: shared per-realm storage. Scanned once per realm (not per
|
||||
-- character). Reported on the player-item line, attributed to the realm.
|
||||
if addon.Options:Get("IncludeGuildBank") == 1 then
|
||||
currentResultType = PLAYER_ITEM_LINE
|
||||
-- Use the first scanned character of this realm as the row "source" so
|
||||
-- the result lists the correct realm/account; if none, skip.
|
||||
local anyChar
|
||||
for _, character in pairs(DS:GetCharacters(realm, account)) do
|
||||
anyChar = character
|
||||
break
|
||||
end
|
||||
|
||||
if anyChar then
|
||||
for tabID = 1, 6 do
|
||||
local tab = DS:GetRealmBankTab(realm, account, tabID)
|
||||
if tab and tab.name then
|
||||
currentResultKey = anyChar
|
||||
for slotID = 1, (tab.size or 0) do
|
||||
currentResultLocation = format("Realm Bank (%s)", tab.name)
|
||||
local id = tab.ids[slotID]
|
||||
if id then
|
||||
VerifyItem((tab.links or {})[slotID] or id, (tab.counts or {})[slotID] or 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
currentResultKey = nil
|
||||
end
|
||||
currentResultType = nil
|
||||
currentResultLocation = nil
|
||||
end
|
||||
|
||||
if addon.Options:Get("IncludeGuildSkills") == 1 and string.len(currentValue) > 1 then -- Check guild professions ?
|
||||
local guild = addon:GetGuild()
|
||||
if guild and LTL then -- LTL won't be valid if there's a version mismatch (see :Init() )
|
||||
|
||||
Reference in New Issue
Block a user