mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 12:04:55 +02:00
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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user