From 9649e4721467dab348011633c814a63a184bd018 Mon Sep 17 00:00:00 2001 From: red-001 Date: Sat, 20 Jan 2018 13:09:58 +0000 Subject: [CSM] Add basic HUD manipulation. (#6067) * [CSM] Add basic HUD manipulation. Workaround for on_connect not working right now. --- src/script/common/c_content.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/script/common/c_content.h') diff --git a/src/script/common/c_content.h b/src/script/common/c_content.h index 80a96e327..d5c375a8f 100644 --- a/src/script/common/c_content.h +++ b/src/script/common/c_content.h @@ -39,6 +39,7 @@ extern "C" { #include "itemgroup.h" #include "itemdef.h" #include "c_types.h" +#include "hud.h" namespace Json { class Value; } @@ -181,4 +182,10 @@ void push_pointed_thing (lua_State *L, const PointedThing & void push_objectRef (lua_State *L, const u16 id); +void read_hud_element (lua_State *L, HudElement *elem); + +void push_hud_element (lua_State *L, HudElement *elem); + +HudElementStat read_hud_change (lua_State *L, HudElement *elem, void **value); + extern struct EnumString es_TileAnimationType[]; -- cgit v1.2.3