hide minimap by default
This commit is contained in:
parent
48d2027327
commit
2c53d0b1dc
|
@ -34,11 +34,12 @@ function Minimap.init()
|
||||||
Keyboard.bindKeyDown('Ctrl+M', Minimap.toggle)
|
Keyboard.bindKeyDown('Ctrl+M', Minimap.toggle)
|
||||||
|
|
||||||
minimapButton = TopMenu.addGameToggleButton('minimapButton', 'Minimap (Ctrl+M)', 'minimap.png', Minimap.toggle)
|
minimapButton = TopMenu.addGameToggleButton('minimapButton', 'Minimap (Ctrl+M)', 'minimap.png', Minimap.toggle)
|
||||||
minimapButton:setOn(true)
|
minimapButton:setOn(false)
|
||||||
|
|
||||||
minimapWidget = loadUI('minimap.otui', GameInterface.getMapPanel())
|
minimapWidget = loadUI('minimap.otui', GameInterface.getMapPanel())
|
||||||
minimapWidget.onMouseRelease = onMinimapMouseRelease
|
minimapWidget.onMouseRelease = onMinimapMouseRelease
|
||||||
minimapWidget.onMouseWheel = onMinimapMouseWheel
|
minimapWidget.onMouseWheel = onMinimapMouseWheel
|
||||||
|
minimapWidget:hide()
|
||||||
end
|
end
|
||||||
|
|
||||||
function Minimap.terminate()
|
function Minimap.terminate()
|
||||||
|
|
Loading…
Reference in New Issue