Fix popupmenu style, exitting on game
This commit is contained in:
parent
db4ced65eb
commit
857657d8a0
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue