Init chatbox script
This commit is contained in:
@@ -19,8 +19,25 @@ let maxChatBoxLines = 6;
|
|||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
bindKey(SDLK_PAGEUP, KEYSTATE_DOWN, chatBoxScrollUp);
|
function initChatBoxScript() {
|
||||||
bindKey(SDLK_PAGEDOWN, KEYSTATE_DOWN, chatBoxScrollDown);
|
logToConsole(LOG_DEBUG, "[Asshat.ChatBox]: Initializing chatbox script ...");
|
||||||
|
bindChatBoxKeys();
|
||||||
|
logToConsole(LOG_DEBUG, "[Asshat.ChatBox]: Chatbox script initialized!");
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
|
function bindChatBoxKeys() {
|
||||||
|
bindKey(SDLK_PAGEUP, KEYSTATE_DOWN, chatBoxScrollUp);
|
||||||
|
bindKey(SDLK_PAGEDOWN, KEYSTATE_DOWN, chatBoxScrollDown);
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
|
function unBindChatBoxKeys() {
|
||||||
|
unbindKey(SDLK_PAGEUP);
|
||||||
|
unbindKey(SDLK_PAGEDOWN);
|
||||||
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user