bind zoom hotkeys

master
Eduardo Bart 12 years ago
parent 3aacd9d43c
commit d10a68613b

@ -2,10 +2,9 @@
High priority TODO in order (before first public disclose) High priority TODO in order (before first public disclose)
multiline text edit multiline text edit
remove UIGame
move windows, navigate in containers move windows, navigate in containers
complete miniwindow (close, minimize, resize, move) complete miniwindow (close, minimize, resize, move)
create and bind all game functions/events create and bind all game events
player status icons (poison, etc) player status icons (poison, etc)
load modules from zip files load modules from zip files
display exit box when exiting from game display exit box when exiting from game
@ -68,9 +67,7 @@ remake spr/dat using OTML and image files
game/graphics window with options game/graphics window with options
do lua game event calls from Game instead from GameProtocol do lua game event calls from Game instead from GameProtocol
auto walk
minimap window minimap window
login queue login queue
questlog questlog
edit texts edit texts

@ -203,7 +203,7 @@ KeyCodeDescs = {
[KeyLeftParen] = '(', [KeyLeftParen] = '(',
[KeyRightParen] = ')', [KeyRightParen] = ')',
[KeyAsterisk] = '*', [KeyAsterisk] = '*',
[KeyPlus] = '+', [KeyPlus] = 'Plus',
[KeyComma] = ',', [KeyComma] = ',',
[KeyMinus] = '-', [KeyMinus] = '-',
[KeyPeriod] = '.', [KeyPeriod] = '.',

@ -45,6 +45,8 @@ function GameInterface.init()
Keyboard.bindKeyPress('Ctrl+Numpad2', function() g_game.turn(South) end, gameRootPanel, WALK_AUTO_REPEAT_DELAY) Keyboard.bindKeyPress('Ctrl+Numpad2', function() g_game.turn(South) end, gameRootPanel, WALK_AUTO_REPEAT_DELAY)
Keyboard.bindKeyPress('Ctrl+Numpad4', function() g_game.turn(West) end, gameRootPanel, WALK_AUTO_REPEAT_DELAY) Keyboard.bindKeyPress('Ctrl+Numpad4', function() g_game.turn(West) end, gameRootPanel, WALK_AUTO_REPEAT_DELAY)
Keyboard.bindKeyPress('Escape', function() g_game.cancelAttackAndFollow() end, gameRootPanel, WALK_AUTO_REPEAT_DELAY) Keyboard.bindKeyPress('Escape', function() g_game.cancelAttackAndFollow() end, gameRootPanel, WALK_AUTO_REPEAT_DELAY)
Keyboard.bindKeyPress('Ctrl+Plus', function() gameMapPanel:zoomIn() end, gameRootPanel, 250)
Keyboard.bindKeyPress('Ctrl+-', function() gameMapPanel:zoomOut() end, gameRootPanel, 250)
if g_game.isOnline() then if g_game.isOnline() then
GameInterface.show() GameInterface.show()

@ -327,7 +327,6 @@ function Console.addTabText(text, speaktype, tab)
label:setText(text) label:setText(text)
label:setColor(speaktype.color) label:setColor(speaktype.color)
consoleTabBar:blinkTab(tab) consoleTabBar:blinkTab(tab)
print 'yeah'
if panel:getChildCount() > 10 then if panel:getChildCount() > 10 then
panel:removeChild(panel:getFirstChild()) panel:removeChild(panel:getFirstChild())

Loading…
Cancel
Save