Skip to content

Commit

Permalink
Fix lua erros with wow classic 1.14
Browse files Browse the repository at this point in the history
  • Loading branch information
minigwen authored and Rottenbeer committed Oct 16, 2021
1 parent 4be2174 commit c726986
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 18 deletions.
6 changes: 1 addition & 5 deletions ItemRack/ItemRack.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1940,11 +1940,7 @@ function ItemRack.SetSetBindings()
SetBindingClick(ItemRackUser.Sets[i].key,buttonName)
end
end
if ItemRack.IsClassic() then
AttemptToSaveBindings(GetCurrentBindingSet())
elseif ItemRack.IsBCC() then
SaveBindings(GetCurrentBindingSet())
end
SaveBindings(GetCurrentBindingSet())
else
ItemRack.Print("Cannot save hotkeys in combat, please try again out of combat!")
end
Expand Down
2 changes: 1 addition & 1 deletion ItemRack/ItemRack.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 20501
## Interface-Classic: 11307
## Interface-Classic: 11400
## Interface-BCC: 20501
## Title: ItemRack
## Author: Gello - Updated for Classic by Rottenbeer
Expand Down
20 changes: 9 additions & 11 deletions ItemRackOptions/ItemRackOptions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,15 @@ end

function ItemRackOpt.OnLoad(self)
table.insert(UISpecialFrames,"ItemRackOptFrame")
if ItemRack.IsBCC() then
Mixin(ItemRackOptFrame, BackdropTemplateMixin)
ItemRackOptFrame:SetBackdrop({
bgFile = "Interface\\DialogFrame\\UI-DialogBox-Background-Dark",
edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
tile = true,
tileSize = 16,
edgeSize = 16,
insets = {left = 4, right = 4, top = 4, bottom = 4},
})
end
Mixin(ItemRackOptFrame, BackdropTemplateMixin)
ItemRackOptFrame:SetBackdrop({
bgFile = "Interface\\DialogFrame\\UI-DialogBox-Background-Dark",
edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
tile = true,
tileSize = 16,
edgeSize = 16,
insets = {left = 4, right = 4, top = 4, bottom = 4},
})
ItemRackOptInv0:SetScale(.8)
for i=0,19 do
ItemRackOpt.Inv[i] = {}
Expand Down
2 changes: 1 addition & 1 deletion ItemRackOptions/ItemRackOptions.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 20501
## Interface-Classic: 11307
## Interface-Classic: 11400
## Interface-BCC: 20501
## Title: ItemRackOptions
## Notes: Load-On-Demand modules for ItemRack
Expand Down

0 comments on commit c726986

Please sign in to comment.