mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
graphics fixes and improvements
This commit is contained in:
@@ -44,6 +44,7 @@ local SayModes = {
|
||||
|
||||
local MAX_HISTORY = 1000
|
||||
local MAX_LINES = 100
|
||||
local HELP_CHANNEL = 9
|
||||
|
||||
local consolePanel
|
||||
local consoleContentPanel
|
||||
@@ -221,6 +222,7 @@ function Console.init()
|
||||
-- tibia like hotkeys
|
||||
Keyboard.bindKeyDown('Ctrl+O', g_game.requestChannels)
|
||||
Keyboard.bindKeyDown('Ctrl+E', Console.removeCurrentTab)
|
||||
Keyboard.bindKeyDown('Ctrl+H', Console.openHelp)
|
||||
end
|
||||
|
||||
function Console.terminate()
|
||||
@@ -242,6 +244,7 @@ function Console.terminate()
|
||||
|
||||
Keyboard.unbindKeyDown('Ctrl+O')
|
||||
Keyboard.unbindKeyDown('Ctrl+E')
|
||||
Keyboard.unbindKeyDown('Ctrl+H')
|
||||
|
||||
if channelsWindow then
|
||||
channelsWindow:destroy()
|
||||
@@ -287,6 +290,10 @@ function Console.setTextEditText(text)
|
||||
consoleTextEdit:setText(text)
|
||||
end
|
||||
|
||||
function Console.openHelp()
|
||||
g_game.joinChannel(HELP_CHANNEL)
|
||||
end
|
||||
|
||||
function Console.addTab(name, focus)
|
||||
local tab = consoleTabBar:addTab(name)
|
||||
if focus then
|
||||
|
Reference in New Issue
Block a user