Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

Commit 8d041c5

Browse files
committed
fix for vehicle and posses bar icons not showing
1 parent 06ab9eb commit 8d041c5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Objects/ACTIONBUTTON.lua

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -718,11 +718,11 @@ end
718718
-----------------------------------------------------------------------------------------
719719

720720
function ACTIONBUTTON:UpdateIcon()
721-
if self.data.macro_Icon then
721+
if self.actionID then
722+
self:SetActionIcon(self.actionID)
723+
elseif self.data.macro_Icon then
722724
self.iconframeicon:SetTexture(self.data.macro_Icon)
723725
self.iconframeicon:Show()
724-
elseif self.actionID then
725-
self:SetActionIcon(self.actionID)
726726
elseif self.spell then
727727
self:SetSpellIcon(self.spell)
728728
elseif self.item then
@@ -801,7 +801,8 @@ function ACTIONBUTTON:SetActionIcon(action)
801801
if texture then
802802
self.iconframeicon:SetTexture(texture)
803803
else
804-
self.iconframeicon:SetTexture("INTERFACE\\ICONS\\INV_MISC_QUESTIONMARK")
804+
--self.iconframeicon:SetTexture("INTERFACE\\ICONS\\INV_MISC_QUESTIONMARK")
805+
self.iconframeicon:SetTexture("")
805806
end
806807

807808
self.iconframeicon:Show()
@@ -863,7 +864,7 @@ function ACTIONBUTTON:SetActionState(action)
863864
self:SetChecked(nil)
864865
end
865866

866-
self.button_name:SetText(self.data.macro_Name)
867+
self.button_name:SetText("")
867868
self.button_count:SetText("")
868869
self:UpdateUsable()
869870
end

0 commit comments

Comments
 (0)