Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions autogen/lua_definitions/constants.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4661,6 +4661,15 @@ PLAYER_PVP_REVAMPED = 1 --- @type PvpType
--- | `PLAYER_PVP_CLASSIC`
--- | `PLAYER_PVP_REVAMPED`

NAMETAGS_DISABLED = 0 --- @type NametagsType
NAMETAGS_DEFAULT = 1 --- @type NametagsType
NAMETAGS_COLORED = 2 --- @type NametagsType

--- @alias NametagsType
--- | `NAMETAGS_DISABLED`
--- | `NAMETAGS_DEFAULT`
--- | `NAMETAGS_COLORED`

--- @type integer
UNKNOWN_LOCAL_INDEX = (-1)

Expand Down
26 changes: 26 additions & 0 deletions autogen/lua_definitions/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4003,6 +4003,17 @@ function djui_hud_print_text(message, x, y, scale)
-- ...
end

--- @param message string
--- @param x number
--- @param y number
--- @param scale number
--- @param outlineThickness number
--- @param outlineDarkness number
--- Prints outlined DJUI HUD text onto the screen
function djui_hud_print_outlined_text(message, x, y, scale, outlineThickness, outlineDarkness)
-- ...
end

--- @param message string
--- @param prevX number
--- @param prevY number
Expand All @@ -4015,6 +4026,21 @@ function djui_hud_print_text_interpolated(message, prevX, prevY, prevScale, x, y
-- ...
end

--- @param message string
--- @param prevX number
--- @param prevY number
--- @param prevScale number
--- @param prevOutlineThickness number
--- @param x number
--- @param y number
--- @param scale number
--- @param outlineThickness number
--- @param outlineDarkness number
--- Prints outlined interpolated DJUI HUD text onto the screen
function djui_hud_print_outlined_text_interpolated(message, prevX, prevY, prevScale, prevOutlineThickness, x, y, scale, outlineThickness, outlineDarkness)
-- ...
end

--- @param texInfo TextureInfo
--- @param x number
--- @param y number
Expand Down
2 changes: 1 addition & 1 deletion autogen/lua_definitions/structs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2171,7 +2171,7 @@
--- @field public enablePlayersInLevelDisplay integer
--- @field public enablePlayerList integer
--- @field public headlessServer integer
--- @field public nametags integer
--- @field public nametags NametagsType
--- @field public maxPlayers integer
--- @field public pauseAnywhere integer

Expand Down
60 changes: 60 additions & 0 deletions docs/lua/functions-3.md
Original file line number Diff line number Diff line change
Expand Up @@ -3414,6 +3414,34 @@ Prints DJUI HUD text onto the screen

<br />

## [djui_hud_print_outlined_text](#djui_hud_print_outlined_text)

### Description
Prints outlined DJUI HUD text onto the screen

### Lua Example
`djui_hud_print_outlined_text(message, x, y, scale, outlineThickness, outlineDarkness)`

### Parameters
| Field | Type |
| ----- | ---- |
| message | `string` |
| x | `number` |
| y | `number` |
| scale | `number` |
| outlineThickness | `number` |
| outlineDarkness | `number` |

### Returns
- None

### C Prototype
`void djui_hud_print_outlined_text(const char* message, f32 x, f32 y, f32 scale, f32 outlineThickness, f32 outlineDarkness);`

[:arrow_up_small:](#)

<br />

## [djui_hud_print_text_interpolated](#djui_hud_print_text_interpolated)

### Description
Expand Down Expand Up @@ -3443,6 +3471,38 @@ Prints interpolated DJUI HUD text onto the screen

<br />

## [djui_hud_print_outlined_text_interpolated](#djui_hud_print_outlined_text_interpolated)

### Description
Prints outlined interpolated DJUI HUD text onto the screen

### Lua Example
`djui_hud_print_outlined_text_interpolated(message, prevX, prevY, prevScale, prevOutlineThickness, x, y, scale, outlineThickness, outlineDarkness)`

### Parameters
| Field | Type |
| ----- | ---- |
| message | `string` |
| prevX | `number` |
| prevY | `number` |
| prevScale | `number` |
| prevOutlineThickness | `number` |
| x | `number` |
| y | `number` |
| scale | `number` |
| outlineThickness | `number` |
| outlineDarkness | `number` |

### Returns
- None

### C Prototype
`void djui_hud_print_outlined_text_interpolated(const char* message, f32 prevX, f32 prevY, f32 prevScale, f32 prevOutlineThickness, f32 x, f32 y, f32 scale, f32 outlineThickness, f32 outlineDarkness);`

[:arrow_up_small:](#)

<br />

## [djui_hud_render_texture](#djui_hud_render_texture)

### Description
Expand Down
2 changes: 2 additions & 0 deletions docs/lua/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,9 @@
- [djui_hud_reset_scissor](functions-3.md#djui_hud_reset_scissor)
- [djui_hud_measure_text](functions-3.md#djui_hud_measure_text)
- [djui_hud_print_text](functions-3.md#djui_hud_print_text)
- [djui_hud_print_outlined_text](functions-3.md#djui_hud_print_outlined_text)
- [djui_hud_print_text_interpolated](functions-3.md#djui_hud_print_text_interpolated)
- [djui_hud_print_outlined_text_interpolated](functions-3.md#djui_hud_print_outlined_text_interpolated)
- [djui_hud_render_texture](functions-3.md#djui_hud_render_texture)
- [djui_hud_render_texture_tile](functions-3.md#djui_hud_render_texture_tile)
- [djui_hud_render_texture_interpolated](functions-3.md#djui_hud_render_texture_interpolated)
Expand Down
2 changes: 1 addition & 1 deletion docs/lua/guides/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ The lua functions sent to `hook_event()` will be automatically called by SM64 wh
| HOOK_ON_ATTACK_OBJECT | Called when a player attacks an object. May be double-fired in some cases, you'll need to write special code for this | [MarioState](../structs.md#MarioState) attacker, [Object](../structs.md#Object) victim, `integer` interactionId |
| HOOK_ON_LANGUAGE_CHANGED | Called when the language is changed | `string` language |
| HOOK_ON_MODS_LOADED | Called directly after every mod file is loaded in by smlua | None |
| HOOK_ON_NAMETAGS_RENDER | Called when nametags are rendered. Return a table with `name` and/or `pos` to override the nametag text and/or position. | `string` playerIndex, `Vec3f` pos |
| HOOK_ON_NAMETAGS_RENDER | Called when nametags are rendered. Return a table with `name`, `pos`, `color` and/or `displayHP` to override the nametag text, position, color and/or power meter display. | `integer` playerIndex, `[Vec3f](../structs.md#vec3f)` pos, `[Color](../structs.md#color)` color, `boolean` displayHP |
| HOOK_ON_DJUI_THEME_CHANGED | Called when the DJUI theme is changed. Run `djui_menu_get_theme()` to get the new theme. | None |
| HOOK_ON_GEO_PROCESS | Called when a GeoLayout is processed **Note:** You must set the `hookProcess` field of the graph node to a non-zero value | [GraphNode](../structs.md#GraphNode) graphNode, `integer` matStackIndex |
| HOOK_BEFORE_GEO_PROCESS | Called before a GeoLayout is processed **Note:** You must set the `hookProcess` field of the graph node to a non-zero value | [GraphNode](../structs.md#GraphNode) graphNode, `integer` matStackIndex |
Expand Down
3 changes: 3 additions & 0 deletions lang/Czech.ini
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ ON_STAR_COLLECTION = "Když se hvězda sebere"
SKIP_INTRO_CUTSCENE = "Přeskočit intro"
ENABLE_CHEATS = "Zapnout cheaty"
BUBBLE_ON_DEATH = "Bublina při smrti"
NAMETAGS_DISABLED = "Vypnuto"
NAMETAGS_DEFAULT = "Přednastavené"
NAMETAGS_COLORED = "Barevné"
NAMETAGS = "Nametags"
MOD_DEV_MODE = "Režim vývoje modů"
BOUNCY_BOUNDS_ON_CAP = "Zapnuto (Omezeno)"
Expand Down
3 changes: 3 additions & 0 deletions lang/Dutch.ini
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ ON_STAR_COLLECTION = "Op ster collectie"
SKIP_INTRO_CUTSCENE = "Introductie film overslaan"
ENABLE_CHEATS = "Cheats aan zetten"
BUBBLE_ON_DEATH = "Bubbelen op dood"
NAMETAGS_DISABLED = "Uit"
NAMETAGS_DEFAULT = "Standaard"
NAMETAGS_COLORED = "Gekleurde"
NAMETAGS = "Nametags"
MOD_DEV_MODE = "Modontwikkelingsmodus"
BOUNCY_BOUNDS_ON_CAP = "Aan (Begrensd)"
Expand Down
3 changes: 3 additions & 0 deletions lang/English.ini
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ ON_STAR_COLLECTION = "On Star Collection"
SKIP_INTRO_CUTSCENE = "Skip Intro Cutscene"
ENABLE_CHEATS = "Enable Cheats"
BUBBLE_ON_DEATH = "Bubble On Death"
NAMETAGS_DISABLED = "Off"
NAMETAGS_DEFAULT = "Default"
NAMETAGS_COLORED = "Colored"
NAMETAGS = "Nametags"
MOD_DEV_MODE = "Mod Development Mode"
BOUNCY_BOUNDS_ON_CAP = "On (Capped)"
Expand Down
3 changes: 3 additions & 0 deletions lang/French.ini
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ ON_STAR_COLLECTION = "Obtention d'étoile"
SKIP_INTRO_CUTSCENE = "Passer la cinématique d'intro"
ENABLE_CHEATS = "Activer le mode triche"
BUBBLE_ON_DEATH = "Bulles (mort)"
NAMETAGS_DISABLED = "Désactivées"
NAMETAGS_DEFAULT = "Par défaut"
NAMETAGS_COLORED = "Colorées"
NAMETAGS = "Afficher Pseudos"
MOD_DEV_MODE = "Mode de développement de mods"
BOUNCY_BOUNDS_ON_CAP = "Activé (Limité)"
Expand Down
3 changes: 3 additions & 0 deletions lang/German.ini
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ ON_STAR_COLLECTION = "Beim Stern sammeln"
SKIP_INTRO_CUTSCENE = "Intro überspringen"
ENABLE_CHEATS = "Cheats aktivieren"
BUBBLE_ON_DEATH = "Base beim Tod"
NAMETAGS_DISABLED = "Aus"
NAMETAGS_DEFAULT = "Standard"
NAMETAGS_COLORED = "Farbige"
NAMETAGS = "Nametags"
MOD_DEV_MODE = "Mod-Entwicklungsmodus"
BOUNCY_BOUNDS_ON_CAP = "An (Gedrosselt)"
Expand Down
3 changes: 3 additions & 0 deletions lang/Italian.ini
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,9 @@ ON_STAR_COLLECTION = "A Stella Collezionata"
SKIP_INTRO_CUTSCENE = "Salta l'introduzione iniziale"
ENABLE_CHEATS = "Abilita i trucchi"
BUBBLE_ON_DEATH = "Abilita la Bolla"
NAMETAGS_DISABLED = "Off"
NAMETAGS_DEFAULT = "Standard"
NAMETAGS_COLORED = "Colorate"
NAMETAGS = "Nametag"
MOD_DEV_MODE = "Modalità sviluppo mod"
BOUNCY_BOUNDS_ON_CAP = "Acceso (Limitato)"
Expand Down
3 changes: 3 additions & 0 deletions lang/Japanese.ini
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ ON_STAR_COLLECTION = "スター取得時の動作"
SKIP_INTRO_CUTSCENE = "イントロをスキップ"
ENABLE_CHEATS = "チートを有効にする"
BUBBLE_ON_DEATH = "やられた時にシャボンで復活"
NAMETAGS_DISABLED = "オフ"
NAMETAGS_DEFAULT = "デフォルト"
NAMETAGS_COLORED = "カラー"
NAMETAGS = "ネームタグを有効にする"
MOD_DEV_MODE = "MOD開発モード"
BOUNCY_BOUNDS_ON_CAP = "オン(制限付き)"
Expand Down
3 changes: 3 additions & 0 deletions lang/Polish.ini
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ ON_STAR_COLLECTION = "Po Zebraniu Gwiazdki"
SKIP_INTRO_CUTSCENE = "Pomiń Przerywnik Intro"
ENABLE_CHEATS = "Włącz Kody"
BUBBLE_ON_DEATH = "Bańka po Śmierci"
NAMETAGS_DISABLED = "Wyłączone"
NAMETAGS_DEFAULT = "Domyślne"
NAMETAGS_COLORED = "Kolorowe"
NAMETAGS = "Identyfikatory"
MOD_DEV_MODE = "Tryb deweloperski modów"
BOUNCY_BOUNDS_ON_CAP = "Wł. (Ograniczone)"
Expand Down
3 changes: 3 additions & 0 deletions lang/Portuguese.ini
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ ON_STAR_COLLECTION = "Ao coletar estrelas"
SKIP_INTRO_CUTSCENE = "Pular cena de introdução"
ENABLE_CHEATS = "Ativar trapaças"
BUBBLE_ON_DEATH = "Bolha após a morte"
NAMETAGS_DISABLED = "Desativadas"
NAMETAGS_DEFAULT = "Padrão"
NAMETAGS_COLORED = "Coloridas"
NAMETAGS = "Etiquetas"
MOD_DEV_MODE = "Modo de desenvolvimento de mods"
BOUNCY_BOUNDS_ON_CAP = "Ativado (limitado)"
Expand Down
3 changes: 3 additions & 0 deletions lang/Russian.ini
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ ON_STAR_COLLECTION = "При получении звезды"
SKIP_INTRO_CUTSCENE = "Пропустить вступительный ролик"
ENABLE_CHEATS = "Включить читы"
BUBBLE_ON_DEATH = "Пузырик при смерти"
NAMETAGS_DISABLED = "Выкл"
NAMETAGS_DEFAULT = "Стандартные"
NAMETAGS_COLORED = "Цветные"
NAMETAGS = "Этикетки"
MOD_DEV_MODE = "Режим разработки модов"
BOUNCY_BOUNDS_ON_CAP = "Вкл. (Ограничено)"
Expand Down
3 changes: 3 additions & 0 deletions lang/Spanish.ini
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ ON_STAR_COLLECTION = "Al conseguir una estrella"
SKIP_INTRO_CUTSCENE = "Saltar cinemática de introducción"
ENABLE_CHEATS = "Habilitar trucos"
BUBBLE_ON_DEATH = "Burbuja al morir"
NAMETAGS_DISABLED = "Desactivadas"
NAMETAGS_DEFAULT = "Por defecto"
NAMETAGS_COLORED = "Coloreadas"
NAMETAGS = "Etiquetas de nombre"
MOD_DEV_MODE = "Modo de desarrollo de mods"
BOUNCY_BOUNDS_ON_CAP = "Activado (Limitado)"
Expand Down
2 changes: 1 addition & 1 deletion src/game/area.c
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ void render_game(void) {
djui_reset_hud_params();
create_dl_ortho_matrix();
djui_gfx_displaylist_begin();
if (gServerSettings.nametags && !gDjuiInMainMenu) {
if (gServerSettings.nametags != NAMETAGS_DISABLED && !gDjuiInMainMenu) {
nametags_render();
}
smlua_call_event_hooks(HOOK_ON_HUD_RENDER_BEHIND, djui_reset_hud_params);
Expand Down
4 changes: 2 additions & 2 deletions src/pc/configfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ unsigned int configNetworkSystem = 0;
unsigned int configPlayerInteraction = 1;
unsigned int configPlayerKnockbackStrength = 25;
unsigned int configStayInLevelAfterStar = 0;
bool configNametags = true;
unsigned int configNametags = 1;
bool configModDevMode = false;
unsigned int configBouncyLevelBounds = 0;
bool configSkipIntro = 0;
Expand Down Expand Up @@ -336,7 +336,7 @@ static const struct ConfigOption options[] = {
{.name = "coop_player_interaction", .type = CONFIG_TYPE_UINT, .uintValue = &configPlayerInteraction},
{.name = "coop_player_knockback_strength", .type = CONFIG_TYPE_UINT, .uintValue = &configPlayerKnockbackStrength},
{.name = "coop_stay_in_level_after_star", .type = CONFIG_TYPE_UINT, .uintValue = &configStayInLevelAfterStar},
{.name = "coop_nametags", .type = CONFIG_TYPE_BOOL, .boolValue = &configNametags},
{.name = "coop_nametags", .type = CONFIG_TYPE_UINT, .uintValue = &configNametags},
{.name = "coop_mod_dev_mode", .type = CONFIG_TYPE_BOOL, .boolValue = &configModDevMode},
{.name = "coop_bouncy_bounds", .type = CONFIG_TYPE_UINT, .uintValue = &configBouncyLevelBounds},
{.name = "skip_intro", .type = CONFIG_TYPE_BOOL, .boolValue = &configSkipIntro},
Expand Down
2 changes: 1 addition & 1 deletion src/pc/configfile.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ extern unsigned int configNetworkSystem;
extern unsigned int configPlayerInteraction;
extern unsigned int configPlayerKnockbackStrength;
extern unsigned int configStayInLevelAfterStar;
extern bool configNametags;
extern unsigned int configNametags;
extern bool configModDevMode;
extern unsigned int configBouncyLevelBounds;
extern bool configSkipIntro;
Expand Down
36 changes: 36 additions & 0 deletions src/pc/djui/djui_hud_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,22 @@ void djui_hud_print_text(const char* message, f32 x, f32 y, f32 scale) {
gSPPopMatrix(gDisplayListHead++, G_MTX_MODELVIEW);
}

void djui_hud_print_outlined_text(const char* message, f32 x, f32 y, f32 scale, f32 outlineThickness, f32 outlineDarkness) {
outlineThickness = clamp(outlineThickness, 0, 1);
f32 offset = outlineThickness * scale * 2;

struct DjuiColor *color = djui_hud_get_color();

djui_hud_set_color(color->r * outlineDarkness, color->g * outlineDarkness, color->b * outlineDarkness, color->a);
djui_hud_print_text(message, x - offset, y, scale);
djui_hud_print_text(message, x + offset, y, scale);
djui_hud_print_text(message, x, y - offset, scale);
djui_hud_print_text(message, x, y + offset, scale);

djui_hud_set_color(color->r, color->g, color->b, color->a);
djui_hud_print_text(message, x, y, scale);
}

void djui_hud_print_text_interpolated(const char* message, f32 prevX, f32 prevY, f32 prevScale, f32 x, f32 y, f32 scale) {
if (message == NULL) { return; }
f32 savedZ = gDjuiHudUtilsZ;
Expand Down Expand Up @@ -495,6 +511,26 @@ void djui_hud_print_text_interpolated(const char* message, f32 prevX, f32 prevY,
interp->rotation = sRotation;
}

void djui_hud_print_outlined_text_interpolated(const char* message, f32 prevX, f32 prevY, f32 prevScale, f32 prevOutlineThickness, f32 x, f32 y, f32 scale, f32 outlineThickness, f32 outlineDarkness) {

outlineThickness = clamp(outlineThickness, 0, 1);
prevOutlineThickness = clamp(prevOutlineThickness, 0, 1);

f32 offset = outlineThickness * scale * 2;
f32 prevOffset = prevOutlineThickness * prevScale * 2;

struct DjuiColor *color = djui_hud_get_color();

djui_hud_set_color(color->r * outlineDarkness, color->g * outlineDarkness, color->b * outlineDarkness, color->a);
djui_hud_print_text_interpolated(message, prevX - prevOffset, prevY, prevScale, x - offset, y, scale);
djui_hud_print_text_interpolated(message, prevX + prevOffset, prevY, prevScale, x + offset, y, scale);
djui_hud_print_text_interpolated(message, prevX, prevY - prevOffset, prevScale, x, y - offset, scale);
djui_hud_print_text_interpolated(message, prevX, prevY + prevOffset, prevScale, x, y + offset, scale);

djui_hud_set_color(color->r, color->g, color->b, color->a);
djui_hud_print_text_interpolated(message, prevX, prevY, prevScale, x, y, scale);
}

static inline bool is_power_of_two(u32 n) {
return (n > 0) && ((n & (n - 1)) == 0);
}
Expand Down
4 changes: 4 additions & 0 deletions src/pc/djui/djui_hud_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,12 @@ void djui_hud_reset_scissor(void);
f32 djui_hud_measure_text(const char* message);
/* |description|Prints DJUI HUD text onto the screen|descriptionEnd| */
void djui_hud_print_text(const char* message, f32 x, f32 y, f32 scale);
/* |description|Prints outlined DJUI HUD text onto the screen|descriptionEnd| */
void djui_hud_print_outlined_text(const char* message, f32 x, f32 y, f32 scale, f32 outlineThickness, f32 outlineDarkness);
/* |description|Prints interpolated DJUI HUD text onto the screen|descriptionEnd| */
void djui_hud_print_text_interpolated(const char* message, f32 prevX, f32 prevY, f32 prevScale, f32 x, f32 y, f32 scale);
/* |description|Prints outlined interpolated DJUI HUD text onto the screen|descriptionEnd| */
void djui_hud_print_outlined_text_interpolated(const char* message, f32 prevX, f32 prevY, f32 prevScale, f32 prevOutlineThickness, f32 x, f32 y, f32 scale, f32 outlineThickness, f32 outlineDarkness);
/* |description|Renders a DJUI HUD texture onto the screen|descriptionEnd| */
void djui_hud_render_texture(struct TextureInfo* texInfo, f32 x, f32 y, f32 scaleW, f32 scaleH);
/* |description|Renders a DJUI HUD texture tile onto the screen|descriptionEnd| */
Expand Down
4 changes: 3 additions & 1 deletion src/pc/djui/djui_panel_host_settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,12 @@ void djui_panel_host_settings_create(struct DjuiBase* caller) {
char* bChoices[3] = { DLANG(HOST_SETTINGS, BOUNCY_BOUNDS_OFF), DLANG(HOST_SETTINGS, BOUNCY_BOUNDS_ON), DLANG(HOST_SETTINGS, BOUNCY_BOUNDS_ON_CAP) };
djui_selectionbox_create(body, DLANG(HOST_SETTINGS, BOUNCY_LEVEL_BOUNDS), bChoices, 3, &configBouncyLevelBounds, NULL);

char* nChoices[3] = { DLANG(HOST_SETTINGS, NAMETAGS_DISABLED), DLANG(HOST_SETTINGS, NAMETAGS_DEFAULT), DLANG(HOST_SETTINGS, NAMETAGS_COLORED) };
djui_selectionbox_create(body, DLANG(HOST_SETTINGS, NAMETAGS), nChoices, 3, &configNametags, NULL);

djui_checkbox_create(body, DLANG(HOST_SETTINGS, SKIP_INTRO_CUTSCENE), &configSkipIntro, NULL);
djui_checkbox_create(body, DLANG(HOST_SETTINGS, PAUSE_ANYWHERE), &configPauseAnywhere, NULL);
djui_checkbox_create(body, DLANG(HOST_SETTINGS, BUBBLE_ON_DEATH), &configBubbleDeath, NULL);
djui_checkbox_create(body, DLANG(HOST_SETTINGS, NAMETAGS), &configNametags, NULL);

struct DjuiCheckbox* chkDevMode = djui_checkbox_create(body, DLANG(HOST_SETTINGS, MOD_DEV_MODE), (configNetworkSystem == NS_SOCKET) ? &configModDevMode : &sFalse, NULL);
djui_base_set_enabled(&chkDevMode->base, configNetworkSystem == NS_SOCKET);
Expand Down
2 changes: 1 addition & 1 deletion src/pc/lua/smlua_cobject_autogen.c
Original file line number Diff line number Diff line change
Expand Up @@ -2502,7 +2502,7 @@ static struct LuaObjectField sServerSettingsFields[LUA_SERVER_SETTINGS_FIELD_COU
{ "enablePlayersInLevelDisplay", LVT_U8, offsetof(struct ServerSettings, enablePlayersInLevelDisplay), false, LOT_NONE, 1, sizeof(u8) },
{ "headlessServer", LVT_U8, offsetof(struct ServerSettings, headlessServer), false, LOT_NONE, 1, sizeof(u8) },
{ "maxPlayers", LVT_U8, offsetof(struct ServerSettings, maxPlayers), false, LOT_NONE, 1, sizeof(u8) },
{ "nametags", LVT_U8, offsetof(struct ServerSettings, nametags), false, LOT_NONE, 1, sizeof(u8) },
{ "nametags", LVT_U8, offsetof(struct ServerSettings, nametags), false, LOT_NONE, 1, sizeof(enum NametagsType) },
{ "pauseAnywhere", LVT_U8, offsetof(struct ServerSettings, pauseAnywhere), false, LOT_NONE, 1, sizeof(u8) },
{ "playerInteractions", LVT_S32, offsetof(struct ServerSettings, playerInteractions), false, LOT_NONE, 1, sizeof(enum PlayerInteractions) },
{ "playerKnockbackStrength", LVT_U8, offsetof(struct ServerSettings, playerKnockbackStrength), false, LOT_NONE, 1, sizeof(u8) },
Expand Down
Loading