-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
100 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
## Changes | ||
|
||
### TradeUI | ||
|
||
Addons can no longer check whether people are in trade range during combat, so now the labels are yellow in combat. Clicking the yellow label will attempt to open trade. | ||
|
||
### Bugfixes | ||
|
||
- *Fixed issue introduced in v0.22.2 causing voting frame to break when reloading with access to the voting frame.* | ||
- *Added fix for histories containing broken colors.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- BackwardsCompatibility.lua See RCLootCouncil/Utils/BackwardsCompat.lua | ||
|
||
--- @type RCLootCouncil | ||
local addon = select(2, ...) | ||
local Classic = addon:GetModule("RCClassic") | ||
local Compat = {} | ||
Classic.Compat = Compat | ||
|
||
--- Runs all compability changes registered. | ||
--- Initially called in `Classic:OnEnable()` | ||
--- Note: Nothing is run on first installs. | ||
--- Each compat can only be run once per login, so feel free to call it again. | ||
function Compat:Run() | ||
for k, v in ipairs(self.list) do | ||
addon:Debug("CompatRun", v.name) | ||
if v.version == "always" | ||
or (addon:VersionCompare(addon.db.global.Classic_version, v.version) or not addon.db.global.Classic_version) | ||
and not v.executed then | ||
addon:Debug("<ClassicCompat>", "Executing:", k, v.name or "no_name") | ||
local check, err = pcall(v.func, addon, Classic.version, addon.db.global.Classic_version, | ||
addon.db.global.Classic_oldVersion) | ||
v.executed = true | ||
if not check then | ||
addon:Debug("<ClassicCompat>", "<ERROR>", err) | ||
end | ||
end | ||
end | ||
end | ||
|
||
-- List of backwards compatibility. Each entry is executed numerically, if allowed. | ||
-- Fields: | ||
-- name: Optional - name that gets logged if the function is run. | ||
-- version: If the user's last version is older than this, then the function is run. | ||
-- `always` will always run the function. | ||
-- Directly compared in `addon:VersionCompare(db.global.version, version_field)` | ||
-- func: The function to execute if the version predicate is met. Called with the following parameters: | ||
-- (addon, addon.version, addon.db.global.version, addon.db.global.oldVersion) | ||
Compat.list = { | ||
{ | ||
name = "History Color fix", | ||
version = "0.22.4", | ||
func = function() | ||
local count = 0 | ||
for _, a in pairs(_G.RCLootCouncilLootDB["factionrealm"]) do | ||
for _, b in pairs(a) do | ||
for _, c in pairs(b) do | ||
if #c.color < 3 then | ||
for i = #c.color + 1, 3 do | ||
c.color[i] = 1 | ||
end | ||
count = count + 1 | ||
end | ||
end | ||
end | ||
end | ||
addon:Debug("Fixed", count, "history colors") | ||
end | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule RCLootCouncil
updated
6 files
+1 −0 | Core/Defaults.lua | |
+27 −2 | Core/ErrorHandler.lua | |
+8 −2 | Modules/History/lootHistory.lua | |
+10 −1 | Modules/TradeUI.lua | |
+3 −0 | Modules/votingFrame.lua | |
+2 −2 | ml_core.lua |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters