delted old debug window, added new version notice window, added new features to tracker module, updated locales, and updated main addon files.
This commit is contained in:
@@ -68,12 +68,14 @@ local function GetPlayerVersionText(name)
|
||||
return tostring(HMGT.ADDON_VERSION or "dev"), tonumber(HMGT.PROTOCOL_VERSION) or 0, true
|
||||
end
|
||||
|
||||
local version = HMGT.peerVersions and HMGT.peerVersions[normalized] or nil
|
||||
local protocol = HMGT.GetPeerProtocolVersion and HMGT:GetPeerProtocolVersion(normalized) or 0
|
||||
if version and version ~= "" then
|
||||
return tostring(version), tonumber(protocol) or 0, true
|
||||
local addonStatus = HMGT.GetPlayerAddonStatus and HMGT:GetPlayerAddonStatus(normalized) or nil
|
||||
if addonStatus and addonStatus.mode == "hmgt" and addonStatus.version and addonStatus.version ~= "" then
|
||||
return tostring(addonStatus.version), tonumber(addonStatus.protocol) or 0, true
|
||||
end
|
||||
return nil, tonumber(protocol) or 0, false
|
||||
if addonStatus and addonStatus.mode == "bridge" then
|
||||
return L["VERSION_WINDOW_BRIDGE_MODE"] or "Bridge Mode", 0, true
|
||||
end
|
||||
return nil, tonumber(addonStatus and addonStatus.protocol) or 0, false
|
||||
end
|
||||
|
||||
local function ApplyClassIcon(texture, classTag)
|
||||
@@ -167,7 +169,11 @@ function HMGT:RefreshVersionNoticeWindow()
|
||||
local versionText, protocol, hasAddon = GetPlayerVersionText(info.name)
|
||||
if hasAddon then
|
||||
row.versionText:SetText(versionText or "?")
|
||||
row.versionText:SetTextColor(0.9, 0.9, 0.9, 1)
|
||||
if versionText == (L["VERSION_WINDOW_BRIDGE_MODE"] or "Bridge Mode") then
|
||||
row.versionText:SetTextColor(0.55, 0.82, 1, 1)
|
||||
else
|
||||
row.versionText:SetTextColor(0.9, 0.9, 0.9, 1)
|
||||
end
|
||||
row.protocolText:SetText(protocol > 0 and tostring(protocol) or "-")
|
||||
row.protocolText:SetTextColor(0.75, 0.75, 0.75, 1)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user