https://github.com/alarofrunetotem/GarrisonCommander/issues/17
Alar of Runetotem [03-15-19 - 13:52]
https://github.com/alarofrunetotem/GarrisonCommander/issues/17
Second fix attempt
diff --git a/MissionControl.lua b/MissionControl.lua
index b5c7df1..059d6e4 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, 'ItemButton')
+ row= CreateFrame('ItemButton', "Priority" .. frameIndex, frame)
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/ShipControl.lua b/ShipControl.lua
index 5db0fe0..c145788 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, 'ItemButton')
+ row= CreateFrame('ItemButton', "Priority" .. frameIndex, frame)
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)