mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-19 19:25:18 +02:00
Lua HUD
This commit is contained in:
committed by
kwolekr
parent
1f42479e0c
commit
49f6e347f0
@@ -29,6 +29,14 @@ extern "C" {
|
||||
#include "content_sao.h"
|
||||
#include "player.h"
|
||||
|
||||
#define HUD_STAT_POS 0
|
||||
#define HUD_STAT_NAME 1
|
||||
#define HUD_STAT_SCALE 2
|
||||
#define HUD_STAT_TEXT 3
|
||||
#define HUD_STAT_NUMBER 4
|
||||
#define HUD_STAT_ITEM 5
|
||||
#define HUD_STAT_DIR 6
|
||||
|
||||
/*
|
||||
ObjectRef
|
||||
*/
|
||||
@@ -190,6 +198,27 @@ private:
|
||||
// get_player_control_bits(self)
|
||||
static int l_get_player_control_bits(lua_State *L);
|
||||
|
||||
// hud_add(self, id, form)
|
||||
static int l_hud_add(lua_State *L);
|
||||
|
||||
// hud_rm(self, id)
|
||||
static int l_hud_rm(lua_State *L);
|
||||
|
||||
// hud_change(self, id, stat, data)
|
||||
static int l_hud_change(lua_State *L);
|
||||
|
||||
// hud_get_next_id(self)
|
||||
static u32 hud_get_next_id(lua_State *L);
|
||||
|
||||
// hud_get(self, id)
|
||||
static int l_hud_get(lua_State *L);
|
||||
|
||||
// hud_lock_next_bar(self, right)
|
||||
static int l_hud_lock_next_bar(lua_State *L);
|
||||
|
||||
// hud_unlock_bar(self, id)
|
||||
static int l_hud_unlock_bar(lua_State *L);
|
||||
|
||||
public:
|
||||
ObjectRef(ServerActiveObject *object);
|
||||
|
||||
|
Reference in New Issue
Block a user