mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
style adjustment and fixes
* style adjustments, now window and button style * fix bug when logging on a tile with too many creatures * remove deprecated onLogin and onLogout events
This commit is contained in:
@@ -31,7 +31,7 @@ end
|
||||
|
||||
-- public functions
|
||||
function Minimap.init()
|
||||
connect(g_game, { onLogin = Minimap.reset })
|
||||
connect(g_game, { onGameStart = Minimap.reset })
|
||||
Keyboard.bindKeyDown('Ctrl+M', Minimap.toggle)
|
||||
|
||||
minimapButton = TopMenu.addGameToggleButton('minimapButton', tr('Minimap') .. ' (Ctrl+M)', 'minimap.png', Minimap.toggle)
|
||||
@@ -46,7 +46,7 @@ function Minimap.init()
|
||||
end
|
||||
|
||||
function Minimap.terminate()
|
||||
disconnect(g_game, { onLogin = Minimap.reset })
|
||||
disconnect(g_game, { onGameStart = Minimap.reset })
|
||||
Keyboard.unbindKeyDown('Ctrl+M')
|
||||
|
||||
minimapWidget:destroy()
|
||||
|
Reference in New Issue
Block a user