mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
Added a new console command
This commit is contained in:
parent
9c911beec4
commit
f8e17e720f
1 changed files with 9 additions and 0 deletions
|
|
@ -13,6 +13,15 @@ function build_scheme(command)
|
|||
return str
|
||||
end
|
||||
|
||||
console.add_command(
|
||||
"clear",
|
||||
"Clears the console",
|
||||
function ()
|
||||
document = Document.new("core:console")
|
||||
document.log.text = ""
|
||||
end
|
||||
)
|
||||
|
||||
console.add_command(
|
||||
"help name:str=''",
|
||||
"Show help infomation for the specified command",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue