From 847ec0962a1e07b3680de88caab4673c3a0927e0 Mon Sep 17 00:00:00 2001 From: Alar of Runetotem Date: Fri, 15 Mar 2019 12:12:51 +0100 Subject: [PATCH] https://github.com/alarofrunetotem/GarrisonCommander/issues/17 Blind fix because right now I am not able to launch wow on wine --- MissionControl.lua | 2 +- RelNotes.lua | 4 +++- ShipControl.lua | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) 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) -- 1.7.9.5