mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
added hud.lua script
This commit is contained in:
parent
33d14be71c
commit
dabf42162c
5 changed files with 76 additions and 10 deletions
|
|
@ -223,7 +223,7 @@ void scripting::on_ui_close(UiDocument* layout, Inventory* inventory) {
|
|||
}
|
||||
}
|
||||
|
||||
bool register_event(int env, const std::string& name, const std::string& id) {
|
||||
bool scripting::register_event(int env, const std::string& name, const std::string& id) {
|
||||
if (state->pushenv(env) == 0) {
|
||||
state->pushglobals();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue