Rename is_playerlist_open to djui_is_playerlist_open

This commit is contained in:
Agent X 2024-05-12 09:18:40 -04:00
parent 9910aa32ad
commit 3d2436c808
6 changed files with 42 additions and 42 deletions

View file

@ -8940,6 +8940,11 @@ function deref_s32_pointer(pointer)
-- ...
end
--- @return boolean
function djui_is_playerlist_open()
-- ...
end
--- @return boolean
function djui_is_popup_disabled()
-- ...
@ -9178,11 +9183,6 @@ function is_game_paused()
-- ...
end
--- @return boolean
function is_playerlist_open()
-- ...
end
--- @return boolean
function is_transition_playing()
-- ...

View file

@ -1168,6 +1168,24 @@
<br />
## [djui_is_playerlist_open](#djui_is_playerlist_open)
### Lua Example
`local booleanValue = djui_is_playerlist_open()`
### Parameters
- None
### Returns
- `boolean`
### C Prototype
`bool djui_is_playerlist_open(void);`
[:arrow_up_small:](#)
<br />
## [djui_is_popup_disabled](#djui_is_popup_disabled)
### Lua Example
@ -1955,24 +1973,6 @@
<br />
## [is_playerlist_open](#is_playerlist_open)
### Lua Example
`local booleanValue = is_playerlist_open()`
### Parameters
- None
### Returns
- `boolean`
### C Prototype
`bool is_playerlist_open(void);`
[:arrow_up_small:](#)
<br />
## [is_transition_playing](#is_transition_playing)
### Lua Example

View file

@ -1658,6 +1658,7 @@
- [camera_unfreeze](functions-5.md#camera_unfreeze)
- [course_is_main_course](functions-5.md#course_is_main_course)
- [deref_s32_pointer](functions-5.md#deref_s32_pointer)
- [djui_is_playerlist_open](functions-5.md#djui_is_playerlist_open)
- [djui_is_popup_disabled](functions-5.md#djui_is_popup_disabled)
- [djui_popup_create_global](functions-5.md#djui_popup_create_global)
- [djui_reset_popup_disabled_override](functions-5.md#djui_reset_popup_disabled_override)
@ -1699,7 +1700,6 @@
- [hud_set_value](functions-5.md#hud_set_value)
- [hud_show](functions-5.md#hud_show)
- [is_game_paused](functions-5.md#is_game_paused)
- [is_playerlist_open](functions-5.md#is_playerlist_open)
- [is_transition_playing](functions-5.md#is_transition_playing)
- [movtexqc_register](functions-5.md#movtexqc_register)
- [play_transition](functions-5.md#play_transition)

View file

@ -29391,6 +29391,21 @@ int smlua_func_deref_s32_pointer(lua_State* L) {
return 1;
}
int smlua_func_djui_is_playerlist_open(UNUSED lua_State* L) {
if (L == NULL) { return 0; }
int top = lua_gettop(L);
if (top != 0) {
LOG_LUA_LINE("Improper param count for '%s': Expected %u, Received %u", "djui_is_playerlist_open", 0, top);
return 0;
}
lua_pushboolean(L, djui_is_playerlist_open());
return 1;
}
int smlua_func_djui_is_popup_disabled(UNUSED lua_State* L) {
if (L == NULL) { return 0; }
@ -30072,21 +30087,6 @@ int smlua_func_is_game_paused(UNUSED lua_State* L) {
return 1;
}
int smlua_func_is_playerlist_open(UNUSED lua_State* L) {
if (L == NULL) { return 0; }
int top = lua_gettop(L);
if (top != 0) {
LOG_LUA_LINE("Improper param count for '%s': Expected %u, Received %u", "is_playerlist_open", 0, top);
return 0;
}
lua_pushboolean(L, is_playerlist_open());
return 1;
}
int smlua_func_is_transition_playing(UNUSED lua_State* L) {
if (L == NULL) { return 0; }
@ -33735,6 +33735,7 @@ void smlua_bind_functions_autogen(void) {
smlua_bind_function(L, "camera_unfreeze", smlua_func_camera_unfreeze);
smlua_bind_function(L, "course_is_main_course", smlua_func_course_is_main_course);
smlua_bind_function(L, "deref_s32_pointer", smlua_func_deref_s32_pointer);
smlua_bind_function(L, "djui_is_playerlist_open", smlua_func_djui_is_playerlist_open);
smlua_bind_function(L, "djui_is_popup_disabled", smlua_func_djui_is_popup_disabled);
smlua_bind_function(L, "djui_popup_create_global", smlua_func_djui_popup_create_global);
smlua_bind_function(L, "djui_reset_popup_disabled_override", smlua_func_djui_reset_popup_disabled_override);
@ -33776,7 +33777,6 @@ void smlua_bind_functions_autogen(void) {
smlua_bind_function(L, "hud_set_value", smlua_func_hud_set_value);
smlua_bind_function(L, "hud_show", smlua_func_hud_show);
smlua_bind_function(L, "is_game_paused", smlua_func_is_game_paused);
smlua_bind_function(L, "is_playerlist_open", smlua_func_is_playerlist_open);
smlua_bind_function(L, "is_transition_playing", smlua_func_is_transition_playing);
smlua_bind_function(L, "movtexqc_register", smlua_func_movtexqc_register);
smlua_bind_function(L, "play_transition", smlua_func_play_transition);

View file

@ -638,7 +638,7 @@ s32 get_dialog_response(void) {
///
bool is_playerlist_open(void) {
bool djui_is_playerlist_open(void) {
return gDjuiPlayerList->base.visible;
}

View file

@ -158,7 +158,7 @@ u32 get_global_timer(void);
s32 get_dialog_response(void);
bool is_playerlist_open(void);
bool djui_is_playerlist_open(void);
void set_window_title(const char* title);
void reset_window_title(void);