Some fixes and design tweaks:

* Fixed the game_viplist module to work with the latest vip protocols.
* Fixed a referencing error in the game_cooldown module
* Started editing the design of the popupmenu (needs more work).
This commit is contained in:
BeniS
2012-12-29 05:15:57 +13:00
parent 034c768994
commit 8961f4dfd4
12 changed files with 52 additions and 36 deletions

View File

@@ -41,7 +41,7 @@ function UIPopupMenu:addOption(optionName, optionCallback)
self:getParent():destroy()
end
optionWidget:setText(optionName)
local width = optionWidget:getTextSize().width + optionWidget:getMarginLeft() + optionWidget:getMarginRight() + 6
local width = optionWidget:getTextSize().width + optionWidget:getMarginLeft() + optionWidget:getMarginRight() + 15
self:setWidth(math.max(self:getWidth(), width))
end