mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
add 'core:warning' event
This commit is contained in:
parent
9ede50045b
commit
e51c6bed78
4 changed files with 20 additions and 7 deletions
|
|
@ -1,6 +1,12 @@
|
|||
history = session.get_entry("commands_history")
|
||||
history_pointer = #history
|
||||
|
||||
events.on("core:warning", function (wtype, text)
|
||||
document.problemsLog:add(gui.template("problem", {
|
||||
type="warning", text=wtype..": "..text, id=tostring(math.random())
|
||||
}))
|
||||
end)
|
||||
|
||||
function setup_variables()
|
||||
local pid = hud.get_player()
|
||||
local x,y,z = player.get_pos(pid)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue