Fix popupmenu style, exitting on game

This commit is contained in:
Henrique 2012-06-20 04:10:12 -03:00
parent db4ced65eb
commit 857657d8a0
2 changed files with 3 additions and 2 deletions

View File

@ -17,7 +17,7 @@ PopupMenuButton < UIButton
PopupMenuSeparator < UIWidget PopupMenuSeparator < UIWidget
margin-left: 2 margin-left: 2
margin-right: 2 margin-right: 2
image-source: images/menubox.png image-source: /images/menubox.png
image-border-left: 1 image-border-left: 1
image-border-right: 1 image-border-right: 1
image-clip: 0 0 32 2 image-clip: 0 0 32 2
@ -26,7 +26,7 @@ PopupMenuSeparator < UIWidget
PopupMenu < UIPopupMenu PopupMenu < UIPopupMenu
width: 50 width: 50
image-source: images/menubox.png image-source: /images/menubox.png
image-border: 3 image-border: 3
padding-top: 3 padding-top: 3
padding-bottom: 3 padding-bottom: 3

View File

@ -96,6 +96,7 @@ function GameInterface.tryExit()
if g_game.isOnline() then if g_game.isOnline() then
g_game.forceLogout() g_game.forceLogout()
scheduleEvent(exit, 10) scheduleEvent(exit, 10)
return true
end end
end end