Skip to content

Commit

Permalink
Hotfix 2.3.1
Browse files Browse the repository at this point in the history
Addon data recovery will now work properly when loading old data.
  • Loading branch information
Arxareon committed Jul 24, 2023
1 parent 7f3a84b commit d8e7242
Show file tree
Hide file tree
Showing 9 changed files with 78 additions and 76 deletions.
44 changes: 22 additions & 22 deletions RemainingXP/Main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ local dbDefault = {
display = {
position = {
anchor = "TOP",
offset = { x = 0, y = -58, },
offset = { x = 0, y = -58 }
},
layer = {
strata = "HIGH",
Expand Down Expand Up @@ -345,29 +345,29 @@ local function CheckDBs(dbCheck, dbSample, dbcCheck, dbcSample)
wt.AddMissing(dbCheck, dbSample)
wt.AddMissing(dbcCheck, dbcSample)
wt.RemoveMismatch(dbCheck, dbSample, {
["customPreset.position.point"] = { saveTo = dbSample.customPreset.position, saveKey = "anchor" },
["position.point"] = { saveTo = dbSample.display.position, saveKey = "anchor" },
["display.position.point"] = { saveTo = dbSample.display.position, saveKey = "anchor" },
["appearance.frameStrata"] = { saveTo = dbSample.display.layer, saveKey = "strata" },
["display.visibility.frameStrata"] = { saveTo = dbSample.display.layer, saveKey = "strata" },
["display.visibility.fade"] = { saveTo = dbSample.display, saveKey = "fade" },
["appearance.backdrop.visible"] = { saveTo = dbSample.display.background, saveKey = "visible" },
["appearance.backdrop.color.r"] = { saveTo = dbSample.display.background.colors.bg, saveKey = "r" },
["appearance.backdrop.color.g"] = { saveTo = dbSample.display.background.colors.bg, saveKey = "g" },
["appearance.backdrop.color.b"] = { saveTo = dbSample.display.background.colors.bg, saveKey = "b" },
["appearance.backdrop.color.a"] = { saveTo = dbSample.display.background.colors.bg, saveKey = "a" },
["font.family"] = { saveTo = dbSample.display.text.font, saveKey = "family" },
["font.size"] = { saveTo = dbSample.display.text.font, saveKey = "size" },
["font.color.r"] = { saveTo = dbSample.display.text.font.color, saveKey = "r" },
["font.color.g"] = { saveTo = dbSample.display.text.font.color, saveKey = "g" },
["font.color.b"] = { saveTo = dbSample.display.text.font.color, saveKey = "b" },
["font.color.a"] = { saveTo = dbSample.display.text.font.color, saveKey = "a" },
["removals.statusBars"] = { saveTo = dbSample.removals, saveKey = "xpBar" },
["notifications.maxReminder"] = { saveTo = dbSample.notifications.statusNotice, saveKey = "maxReminder" },
["mouseover"] = { saveTo = dbSample.display.fade, saveKey = "enabled" },
["customPreset.position.point"] = { saveTo = dbCheck.customPreset.position, saveKey = "anchor" },
["position.point"] = { saveTo = dbCheck.display.position, saveKey = "anchor" },
["display.position.point"] = { saveTo = dbCheck.display.position, saveKey = "anchor" },
["appearance.frameStrata"] = { saveTo = dbCheck.display.layer, saveKey = "strata" },
["display.visibility.frameStrata"] = { saveTo = dbCheck.display.layer, saveKey = "strata" },
["display.visibility.fade"] = { saveTo = dbCheck.display, saveKey = "fade" },
["appearance.backdrop.visible"] = { saveTo = dbCheck.display.background, saveKey = "visible" },
["appearance.backdrop.color.r"] = { saveTo = dbCheck.display.background.colors.bg, saveKey = "r" },
["appearance.backdrop.color.g"] = { saveTo = dbCheck.display.background.colors.bg, saveKey = "g" },
["appearance.backdrop.color.b"] = { saveTo = dbCheck.display.background.colors.bg, saveKey = "b" },
["appearance.backdrop.color.a"] = { saveTo = dbCheck.display.background.colors.bg, saveKey = "a" },
["font.family"] = { saveTo = dbCheck.display.text.font, saveKey = "family" },
["font.size"] = { saveTo = dbCheck.display.text.font, saveKey = "size" },
["font.color.r"] = { saveTo = dbCheck.display.text.font.color, saveKey = "r" },
["font.color.g"] = { saveTo = dbCheck.display.text.font.color, saveKey = "g" },
["font.color.b"] = { saveTo = dbCheck.display.text.font.color, saveKey = "b" },
["font.color.a"] = { saveTo = dbCheck.display.text.font.color, saveKey = "a" },
["removals.statusBars"] = { saveTo = dbCheck.removals, saveKey = "xpBar" },
["notifications.maxReminder"] = { saveTo = dbCheck.notifications.statusNotice, saveKey = "maxReminder" },
["mouseover"] = { saveTo = dbCheck.display.fade, saveKey = "enabled" },
})
wt.RemoveMismatch(dbcCheck, dbcSample, {
["mouseover"] = { saveTo = dbSample.display.fade, saveKey = "enabled" },
["mouseover"] = { saveTo = dbCheck.display.fade, saveKey = "enabled" },
})

--Check the display visibility values
Expand Down
44 changes: 22 additions & 22 deletions RemainingXP/Main_Classic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ local dbDefault = {
display = {
position = {
anchor = "TOP",
offset = { x = 0, y = -120, },
offset = { x = 0, y = -120 }
},
layer = {
strata = "HIGH",
Expand Down Expand Up @@ -323,29 +323,29 @@ local function CheckDBs(dbCheck, dbSample, dbcCheck, dbcSample)
wt.AddMissing(dbCheck, dbSample)
wt.AddMissing(dbcCheck, dbcSample)
wt.RemoveMismatch(dbCheck, dbSample, {
["customPreset.position.point"] = { saveTo = dbSample.customPreset.position, saveKey = "anchor" },
["position.point"] = { saveTo = dbSample.display.position, saveKey = "anchor" },
["display.position.point"] = { saveTo = dbSample.display.position, saveKey = "anchor" },
["appearance.frameStrata"] = { saveTo = dbSample.display.layer, saveKey = "strata" },
["display.visibility.frameStrata"] = { saveTo = dbSample.display.layer, saveKey = "strata" },
["display.visibility.fade"] = { saveTo = dbSample.display, saveKey = "fade" },
["appearance.backdrop.visible"] = { saveTo = dbSample.display.background, saveKey = "visible" },
["appearance.backdrop.color.r"] = { saveTo = dbSample.display.background.colors.bg, saveKey = "r" },
["appearance.backdrop.color.g"] = { saveTo = dbSample.display.background.colors.bg, saveKey = "g" },
["appearance.backdrop.color.b"] = { saveTo = dbSample.display.background.colors.bg, saveKey = "b" },
["appearance.backdrop.color.a"] = { saveTo = dbSample.display.background.colors.bg, saveKey = "a" },
["font.family"] = { saveTo = dbSample.display.text.font, saveKey = "family" },
["font.size"] = { saveTo = dbSample.display.text.font, saveKey = "size" },
["font.color.r"] = { saveTo = dbSample.display.text.font.color, saveKey = "r" },
["font.color.g"] = { saveTo = dbSample.display.text.font.color, saveKey = "g" },
["font.color.b"] = { saveTo = dbSample.display.text.font.color, saveKey = "b" },
["font.color.a"] = { saveTo = dbSample.display.text.font.color, saveKey = "a" },
["removals.statusBars"] = { saveTo = dbSample.removals, saveKey = "xpBar" },
["notifications.maxReminder"] = { saveTo = dbSample.notifications.statusNotice, saveKey = "maxReminder" },
["mouseover"] = { saveTo = dbSample.display.fade, saveKey = "enabled" },
["customPreset.position.point"] = { saveTo = dbCheck.customPreset.position, saveKey = "anchor" },
["position.point"] = { saveTo = dbCheck.display.position, saveKey = "anchor" },
["display.position.point"] = { saveTo = dbCheck.display.position, saveKey = "anchor" },
["appearance.frameStrata"] = { saveTo = dbCheck.display.layer, saveKey = "strata" },
["display.visibility.frameStrata"] = { saveTo = dbCheck.display.layer, saveKey = "strata" },
["display.visibility.fade"] = { saveTo = dbCheck.display, saveKey = "fade" },
["appearance.backdrop.visible"] = { saveTo = dbCheck.display.background, saveKey = "visible" },
["appearance.backdrop.color.r"] = { saveTo = dbCheck.display.background.colors.bg, saveKey = "r" },
["appearance.backdrop.color.g"] = { saveTo = dbCheck.display.background.colors.bg, saveKey = "g" },
["appearance.backdrop.color.b"] = { saveTo = dbCheck.display.background.colors.bg, saveKey = "b" },
["appearance.backdrop.color.a"] = { saveTo = dbCheck.display.background.colors.bg, saveKey = "a" },
["font.family"] = { saveTo = dbCheck.display.text.font, saveKey = "family" },
["font.size"] = { saveTo = dbCheck.display.text.font, saveKey = "size" },
["font.color.r"] = { saveTo = dbCheck.display.text.font.color, saveKey = "r" },
["font.color.g"] = { saveTo = dbCheck.display.text.font.color, saveKey = "g" },
["font.color.b"] = { saveTo = dbCheck.display.text.font.color, saveKey = "b" },
["font.color.a"] = { saveTo = dbCheck.display.text.font.color, saveKey = "a" },
["removals.statusBars"] = { saveTo = dbCheck.removals, saveKey = "xpBar" },
["notifications.maxReminder"] = { saveTo = dbCheck.notifications.statusNotice, saveKey = "maxReminder" },
["mouseover"] = { saveTo = dbCheck.display.fade, saveKey = "enabled" },
})
wt.RemoveMismatch(dbcCheck, dbcSample, {
["mouseover"] = { saveTo = dbSample.display.fade, saveKey = "enabled" },
["mouseover"] = { saveTo = dbCheck.display.fade, saveKey = "enabled" },
})

--Check the display visibility values
Expand Down
44 changes: 22 additions & 22 deletions RemainingXP/Main_WotLK.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ local dbDefault = {
display = {
position = {
anchor = "TOP",
offset = { x = 0, y = -120, },
offset = { x = 0, y = -120 }
},
layer = {
strata = "HIGH",
Expand Down Expand Up @@ -341,29 +341,29 @@ local function CheckDBs(dbCheck, dbSample, dbcCheck, dbcSample)
wt.AddMissing(dbCheck, dbSample)
wt.AddMissing(dbcCheck, dbcSample)
wt.RemoveMismatch(dbCheck, dbSample, {
["customPreset.position.point"] = { saveTo = dbSample.customPreset.position, saveKey = "anchor" },
["position.point"] = { saveTo = dbSample.display.position, saveKey = "anchor" },
["display.position.point"] = { saveTo = dbSample.display.position, saveKey = "anchor" },
["appearance.frameStrata"] = { saveTo = dbSample.display.layer, saveKey = "strata" },
["display.visibility.frameStrata"] = { saveTo = dbSample.display.layer, saveKey = "strata" },
["display.visibility.fade"] = { saveTo = dbSample.display, saveKey = "fade" },
["appearance.backdrop.visible"] = { saveTo = dbSample.display.background, saveKey = "visible" },
["appearance.backdrop.color.r"] = { saveTo = dbSample.display.background.colors.bg, saveKey = "r" },
["appearance.backdrop.color.g"] = { saveTo = dbSample.display.background.colors.bg, saveKey = "g" },
["appearance.backdrop.color.b"] = { saveTo = dbSample.display.background.colors.bg, saveKey = "b" },
["appearance.backdrop.color.a"] = { saveTo = dbSample.display.background.colors.bg, saveKey = "a" },
["font.family"] = { saveTo = dbSample.display.text.font, saveKey = "family" },
["font.size"] = { saveTo = dbSample.display.text.font, saveKey = "size" },
["font.color.r"] = { saveTo = dbSample.display.text.font.color, saveKey = "r" },
["font.color.g"] = { saveTo = dbSample.display.text.font.color, saveKey = "g" },
["font.color.b"] = { saveTo = dbSample.display.text.font.color, saveKey = "b" },
["font.color.a"] = { saveTo = dbSample.display.text.font.color, saveKey = "a" },
["removals.statusBars"] = { saveTo = dbSample.removals, saveKey = "xpBar" },
["notifications.maxReminder"] = { saveTo = dbSample.notifications.statusNotice, saveKey = "maxReminder" },
["mouseover"] = { saveTo = dbSample.display.fade, saveKey = "enabled" },
["customPreset.position.point"] = { saveTo = dbCheck.customPreset.position, saveKey = "anchor" },
["position.point"] = { saveTo = dbCheck.display.position, saveKey = "anchor" },
["display.position.point"] = { saveTo = dbCheck.display.position, saveKey = "anchor" },
["appearance.frameStrata"] = { saveTo = dbCheck.display.layer, saveKey = "strata" },
["display.visibility.frameStrata"] = { saveTo = dbCheck.display.layer, saveKey = "strata" },
["display.visibility.fade"] = { saveTo = dbCheck.display, saveKey = "fade" },
["appearance.backdrop.visible"] = { saveTo = dbCheck.display.background, saveKey = "visible" },
["appearance.backdrop.color.r"] = { saveTo = dbCheck.display.background.colors.bg, saveKey = "r" },
["appearance.backdrop.color.g"] = { saveTo = dbCheck.display.background.colors.bg, saveKey = "g" },
["appearance.backdrop.color.b"] = { saveTo = dbCheck.display.background.colors.bg, saveKey = "b" },
["appearance.backdrop.color.a"] = { saveTo = dbCheck.display.background.colors.bg, saveKey = "a" },
["font.family"] = { saveTo = dbCheck.display.text.font, saveKey = "family" },
["font.size"] = { saveTo = dbCheck.display.text.font, saveKey = "size" },
["font.color.r"] = { saveTo = dbCheck.display.text.font.color, saveKey = "r" },
["font.color.g"] = { saveTo = dbCheck.display.text.font.color, saveKey = "g" },
["font.color.b"] = { saveTo = dbCheck.display.text.font.color, saveKey = "b" },
["font.color.a"] = { saveTo = dbCheck.display.text.font.color, saveKey = "a" },
["removals.statusBars"] = { saveTo = dbCheck.removals, saveKey = "xpBar" },
["notifications.maxReminder"] = { saveTo = dbCheck.notifications.statusNotice, saveKey = "maxReminder" },
["mouseover"] = { saveTo = dbCheck.display.fade, saveKey = "enabled" },
})
wt.RemoveMismatch(dbcCheck, dbcSample, {
["mouseover"] = { saveTo = dbSample.display.fade, saveKey = "enabled" },
["mouseover"] = { saveTo = dbCheck.display.fade, saveKey = "enabled" },
})

--Check the display visibility values
Expand Down
4 changes: 2 additions & 2 deletions RemainingXP/RemainingXP-BCC.toc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Interface: 20504
## Title: Remaining XP |TInterface/AddOns/RemainingXP/Textures/Logo.tga:0|t
## Version: 2.3
## X-Day: 23
## Version: 2.3.1
## X-Day: 24
## X-Month: 7
## X-Year: 2023
## Author: Barnabas Nagy (Arxareon)
Expand Down
4 changes: 2 additions & 2 deletions RemainingXP/RemainingXP-Classic.toc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Interface: 11403
## Title: Remaining XP |TInterface/AddOns/RemainingXP/Textures/Logo.tga:0|t
## IconTexture: Interface/AddOns/RemainingXP/Textures/Logo.tga
## Version: 2.3
## X-Day: 23
## Version: 2.3.1
## X-Day: 24
## X-Month: 7
## X-Year: 2023
## Author: Barnabas Nagy (Arxareon)
Expand Down
4 changes: 2 additions & 2 deletions RemainingXP/RemainingXP-Mainline.toc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Interface: 100105
## Title: Remaining XP
## IconTexture: Interface/AddOns/RemainingXP/Textures/Logo.tga
## Version: 2.3
## X-Day: 23
## Version: 2.3.1
## X-Day: 24
## X-Month: 7
## X-Year: 2023
## Author: Barnabas Nagy (Arxareon)
Expand Down
4 changes: 2 additions & 2 deletions RemainingXP/RemainingXP-Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Interface: 30402
## Title: Remaining XP |TInterface/AddOns/RemainingXP/Textures/Logo.tga:0|t
## IconTexture: Interface/AddOns/RemainingXP/Textures/Logo.tga
## Version: 2.3
## X-Day: 23
## Version: 2.3.1
## X-Day: 24
## X-Month: 7
## X-Year: 2023
## Author: Barnabas Nagy (Arxareon)
Expand Down
4 changes: 2 additions & 2 deletions RemainingXP/RemainingXP.toc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Interface: 100105 #Fallback to the Mainline version
## Title: Remaining XP
## IconTexture: Interface/AddOns/RemainingXP/Textures/Logo.tga
## Version: 2.3
## X-Day: 23
## Version: 2.3.1
## X-Day: 24
## X-Month: 7
## X-Year: 2023
## Author: Barnabas Nagy (Arxareon)
Expand Down
2 changes: 2 additions & 0 deletions RemainingXP/Resources.lua
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ local changelogDB = {
"The XP Display size will now properly be able to be set again via Settings after applying a preset.",
"The default XP Status Bar will now be hidden again after exiting Edit Mode if the \"Hide default XP bar\" option is enabled.",
"Other small fixes, changes & improvements.",
"#F_Hotfix (2.3.1 7/24/2023):_#",
"Addon data recovery will now work properly when loading old data.",
},
}

Expand Down

0 comments on commit d8e7242

Please sign in to comment.