mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Add TOCLIENT_SHOW_FORMSPEC to display formspecs at client from lua
This commit is contained in:
parent
36f03a7f4a
commit
da9707950e
8 changed files with 129 additions and 2 deletions
|
@ -154,7 +154,8 @@ enum ClientEventType
|
|||
CE_PLAYER_DAMAGE,
|
||||
CE_PLAYER_FORCE_MOVE,
|
||||
CE_DEATHSCREEN,
|
||||
CE_TEXTURES_UPDATED
|
||||
CE_TEXTURES_UPDATED,
|
||||
CE_SHOW_FORMSPEC
|
||||
};
|
||||
|
||||
struct ClientEvent
|
||||
|
@ -176,6 +177,9 @@ struct ClientEvent
|
|||
f32 camera_point_target_y;
|
||||
f32 camera_point_target_z;
|
||||
} deathscreen;
|
||||
struct{
|
||||
std::string* formspec;
|
||||
} show_formspec;
|
||||
struct{
|
||||
} textures_updated;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue