mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 21:11:50 +00:00
console layout WIP
This commit is contained in:
parent
7ade504ec0
commit
f4e98b2091
6 changed files with 10 additions and 4 deletions
3
res/layouts/console.xml
Normal file
3
res/layouts/console.xml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<container size='400' color='#00000080' size-func="unpack(gui.get_viewport())">
|
||||
<textbox id='prompt' margin='0' gravity='bottom-left' size-func="gui.get_viewport()[1],40"></textbox>
|
||||
</container>
|
||||
3
res/layouts/console.xml.lua
Normal file
3
res/layouts/console.xml.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
function on_open()
|
||||
document.prompt.focused = true
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue