mirror of
https://github.com/edubart/otclient.git
synced 2025-05-01 10:09:21 +02:00
replacing tabs, fixing event hook
This commit is contained in:
parent
710f105675
commit
4563471790
@ -71,15 +71,14 @@ function Console.create()
|
|||||||
Hotkeys.bindKeyDown('Enter', Console.sendCurrentMessage, consolePanel)
|
Hotkeys.bindKeyDown('Enter', Console.sendCurrentMessage, consolePanel)
|
||||||
Hotkeys.bindKeyDown('Return', Console.sendCurrentMessage, consolePanel)
|
Hotkeys.bindKeyDown('Return', Console.sendCurrentMessage, consolePanel)
|
||||||
|
|
||||||
--Apply buttom functions after loaded
|
-- apply buttom functions after loaded
|
||||||
consolePanel:getChildById('nextChannelButton').onClick = function() consoleTabBar:selectNextTab() end
|
connect(consolePanel:getChildById('nextChannelButton'), { onClick = function() consoleTabBar:selectNextTab() end } )
|
||||||
consolePanel:getChildById('prevChannelButton').onClick = function() consoleTabBar:selectPrevTab() end
|
connect(consolePanel:getChildById('prevChannelButton'), { onClick = function() consoleTabBar:selectPrevTab() end } )
|
||||||
|
connect(consoleTabBar, { onTabChange = Console.onTabChange })
|
||||||
|
|
||||||
--Tibia Like Hotkeys
|
-- tibia like hotkeys
|
||||||
Hotkeys.bindKeyDown('Ctrl+O', Game.requestChannels)
|
Hotkeys.bindKeyDown('Ctrl+O', Game.requestChannels)
|
||||||
Hotkeys.bindKeyDown('Ctrl+E', Console.removeCurrentTab)
|
Hotkeys.bindKeyDown('Ctrl+E', Console.removeCurrentTab)
|
||||||
|
|
||||||
connect(consoleTabBar, { onTabChange = Console.onTabChange })
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function Console.destroy()
|
function Console.destroy()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user