Quantcast

https://github.com/alarofrunetotem/GarrisonCommander/issues/17

Alar of Runetotem [03-15-19 - 11:12]
https://github.com/alarofrunetotem/GarrisonCommander/issues/17

Blind fix because right now I am not able to launch wow on wine
Filename
MissionControl.lua
RelNotes.lua
ShipControl.lua
diff --git a/MissionControl.lua b/MissionControl.lua
index 72a75df..b5c7df1 100644
--- a/MissionControl.lua
+++ b/MissionControl.lua
@@ -399,7 +399,7 @@ local function drawItemButtons(frame)
 	for frameIndex,i in ipairs(classlist) do
 		local row = GMC.ignoreFrames[frameIndex]
 		if not row then
-			row= CreateFrame('BUTTON', "Priority" .. frameIndex, frame, 'ItemButtonTemplate')
+			row= CreateFrame('BUTTON', "Priority" .. frameIndex, frame, 'ItemButton')
 			row.chance=settings.rewardChance[row.key] or 100
 			GMC.ignoreFrames[frameIndex] = row
 			row.slider=row.slider or factory:Slider(row,0,100,row.chance,row.chance)
diff --git a/RelNotes.lua b/RelNotes.lua
index c4a7add..db0d17b 100644
--- a/RelNotes.lua
+++ b/RelNotes.lua
@@ -22,10 +22,12 @@ self:Wiki([[
 == Silent mode ==
 typing /gac silent in chat will eliminate every chat message from GarrisonCommander
 ]])
+self:RelNotes(3,0,1,[[
+Fix: Blind fix for errors related to changed blizzard itembutton
+]])
 self:RelNotes(3,0,0,[[
 Feature: Updated broker
 ]])
-
 self:RelNotes(2,19,0,[[
 Feature: Addon can no longer log out the game. No workaround found, so Autologout and logout were removed
 ]])
diff --git a/ShipControl.lua b/ShipControl.lua
index 80e6f5c..5db0fe0 100644
--- a/ShipControl.lua
+++ b/ShipControl.lua
@@ -453,7 +453,7 @@ local function drawItemButtons(frame)
 	for frameIndex,i in ipairs(classlist) do
 		local row = GMC.ignoreFrames[frameIndex]
 		if not row then
-			row= CreateFrame('BUTTON', "Priority" .. frameIndex, frame, 'ItemButtonTemplate')
+			row= CreateFrame('BUTTON', "Priority" .. frameIndex, frame, 'ItemButton')
 			row.chance=settings.rewardChance[row.key] or 100
 			GMC.ignoreFrames[frameIndex] = row
 			row.slider=row.slider or factory:Slider(row,0,100,row.chance,row.chance)