mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
add animation.action
This commit is contained in:
parent
c19733b594
commit
39a3c1201f
6 changed files with 45 additions and 13 deletions
|
|
@ -63,12 +63,15 @@ void scripting::on_frontend_init(
|
|||
}
|
||||
|
||||
void scripting::on_frontend_render() {
|
||||
auto L = lua::get_main_state();
|
||||
|
||||
if (lua::get_from_registry(L, lua::INTERNALS_TABLE, "on_render", true)) {
|
||||
lua::call_nothrow(L, 0, 0);
|
||||
}
|
||||
for (auto& pack : content_control->getAllContentPacks()) {
|
||||
lua::emit_event(
|
||||
lua::get_main_state(),
|
||||
pack.id + ":.hudrender",
|
||||
[](lua::State* L) { return 0; }
|
||||
);
|
||||
lua::emit_event(L, pack.id + ":.hudrender", [](lua::State* L) {
|
||||
return 0;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue