add animation.action

This commit is contained in:
MihailRis 2026-09-01 23:01:47 +03:00
parent c19733b594
commit 39a3c1201f
6 changed files with 45 additions and 13 deletions

View file

@ -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;
});
}
}