tweaks
This commit is contained in:
parent
3246f3a8a5
commit
160e9ffe4f
3 changed files with 4 additions and 2 deletions
|
|
@ -143,9 +143,10 @@ ButtonBar.button_width = 36
|
|||
ButtonBar.button_height = 36
|
||||
function ButtonBar:UpdateButtonLayout()
|
||||
local buttons = self.buttons
|
||||
local numbuttons = #buttons
|
||||
local pad = self:GetPadding()
|
||||
|
||||
local numbuttons = self.numbuttons or #buttons
|
||||
|
||||
-- bail out if the bar has no buttons, for whatever reason
|
||||
-- (eg. stanceless class, or no stances learned yet, etc.)
|
||||
if numbuttons == 0 then return end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue