Skip to content

Commit

Permalink
Update for 9.2.0, 2.5.3, 1.14.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Ketho committed Feb 14, 2022
1 parent c8fcad0 commit 1f0a677
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 48 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,11 @@ jobs:
- uses: actions/checkout@v1

- uses: BigWigsMods/packager@master
with:
args: -g classic

- uses: BigWigsMods/packager@master
with:
args: -g bcc

- uses: BigWigsMods/packager@master
11 changes: 6 additions & 5 deletions MaxCam.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ local MAX_RETAIL = 39
local MAX_CLASSIC = 50

local defaults = {
db_version = 2.3,
increment = 4,
speed = 20,
distance = isRetail and 2.6 or 3.34,

nearDistance = 5,
nearIncrement = 1,
}
Expand Down Expand Up @@ -101,10 +99,13 @@ local f = CreateFrame("Frame")

function f:OnEvent(event, addon)
if addon == NAME then
if not MaxCamDB or MaxCamDB.db_version < defaults.db_version then
MaxCamDB = CopyTable(defaults)
end
MaxCamDB = MaxCamDB or {}
db = MaxCamDB
for k, v in pairs(defaults) do
if db[k] == nil then
db[k] = v
end
end

ACR:RegisterOptionsTable(NAME, options)
ACD:AddToBlizOptions(NAME, NAME)
Expand Down
4 changes: 3 additions & 1 deletion MaxCam.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
## Interface: 90100
## Interface-Retail: 90200
## Interface-Classic: 11402
## Interface-BCC: 20503
## Version: @project-version@
## Title: MaxCam
## Notes: Max Camera Distance
Expand Down
21 changes: 0 additions & 21 deletions MaxCam_TBC.toc

This file was deleted.

21 changes: 0 additions & 21 deletions MaxCam_Vanilla.toc

This file was deleted.

0 comments on commit 1f0a677

Please sign in to comment.