mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 04:21:50 +00:00
update console layout
This commit is contained in:
parent
aeb8acb7c9
commit
fb18442322
7 changed files with 28 additions and 19 deletions
|
|
@ -302,9 +302,11 @@ function on_open(mode)
|
|||
table.sort(scripts)
|
||||
for _, filename in ipairs(scripts) do
|
||||
local parent = file.parent(filename)
|
||||
local script_type = "file"
|
||||
files_list:add(gui.template("script_file", {
|
||||
path = parent .. (parent[#parent] == ':' and '' or '/'),
|
||||
name = file.name(filename),
|
||||
type = script_type,
|
||||
filename = filename
|
||||
}))
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue