start working on the XLib plugin, add evilium

This commit is contained in:
2026-06-04 18:40:21 -05:00
parent d3779cff20
commit f320e6bd80
11 changed files with 94 additions and 6 deletions

View File

@@ -7,21 +7,31 @@ extends Control
## if you are looking for chat var storage
## they are in GameShit/ChatSystem/ChatBox.gd
## This dict holds a reference to all command IDs and their corresponding call
var Commands : Dictionary = {
"give": CommandHandler.registerCommand("base:giveItem").new(),
"say": CommandHandler.registerCommand("base:say").new()
}
## load the language manager
var language = LanguageManager.loadLanguage()
## parse message
func _parseMessage():
## get the contents
var messageContents : String = %Input.text
## handle if its a command
if messageContents.begins_with("/"):
## strip out the /
var command = messageContents.right(-1)
## run the command
runCommand(command)
%Input.text = ""
MainGame.hideChatbox.emit()
## if its not a command, send the message and reset the field and hide the box
else:
sendMessage(messageContents)
%Input.text = ""