Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions widgetLibrary/widget_button.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1102,9 +1102,10 @@ local function createUsing9Slice( button, options )

-- Function to set the buttons fill color
function button:setFillColor( ... )
for i = self.numChildren, 1, -1 do
if "function" == type( self[i].setFillColor ) then
self[i]:setFillColor( ... )
for i = self._view.numChildren, 1, -1 do
local child = self._view[i]
if child.setFillColor and "function" == type( child.setFillColor ) and not child._isLabel then
child:setFillColor( ... )
end
end
end
Expand Down