mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
Fix popupmenu style, exitting on game
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user