diff options
-rw-r--r-- | src/script/common/c_content.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/script/common/c_content.cpp b/src/script/common/c_content.cpp index cac48d488..38e9411af 100644 --- a/src/script/common/c_content.cpp +++ b/src/script/common/c_content.cpp @@ -1865,6 +1865,15 @@ void push_hud_element(lua_State *L, HudElement *elem) lua_pushnumber(L, elem->dir); lua_setfield(L, -2, "direction"); + push_v2f(L, elem->offset); + lua_setfield(L, -2, "offset"); + + push_v2f(L, elem->align); + lua_setfield(L, -2, "alignment"); + + push_v2s32(L, elem->size); + lua_setfield(L, -2, "size"); + // Deprecated, only for compatibility's sake lua_pushnumber(L, elem->dir); lua_setfield(L, -2, "dir"); |