mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add gui.set_syntax_styles
This commit is contained in:
parent
1676c47093
commit
50f6c48771
11 changed files with 149 additions and 43 deletions
|
|
@ -150,6 +150,18 @@ _MENU = _GUI_ROOT.menu
|
|||
menu = _MENU
|
||||
gui.root = _GUI_ROOT
|
||||
|
||||
do
|
||||
local status, err = pcall(function()
|
||||
local default_styles = toml.parse(file.read(
|
||||
"res:devtools/default_syntax_scheme.toml"
|
||||
))
|
||||
gui.set_syntax_styles(default_styles)
|
||||
end)
|
||||
if not status then
|
||||
debug.error("could not to load default syntax scheme: "..err)
|
||||
end
|
||||
end
|
||||
|
||||
--- Console library extension ---
|
||||
console.cheats = {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue