From e7cd848d58b52516478fd7056bb38bbb1e78d3e0 Mon Sep 17 00:00:00 2001 From: cat_or_not <41955154+catornot@users.noreply.github.com> Date: Sat, 21 Oct 2023 22:07:17 -0400 Subject: [PATCH] formatting --- .../mod/scripts/vscripts/cl_northstar_client_init.nut | 6 +++--- .../mod/scripts/vscripts/presence/cl_presence.nut | 2 +- .../mod/scripts/vscripts/presence/ui_presence.nut | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Northstar.Client/mod/scripts/vscripts/cl_northstar_client_init.nut b/Northstar.Client/mod/scripts/vscripts/cl_northstar_client_init.nut index 45cfc868f..765d29c32 100644 --- a/Northstar.Client/mod/scripts/vscripts/cl_northstar_client_init.nut +++ b/Northstar.Client/mod/scripts/vscripts/cl_northstar_client_init.nut @@ -1,7 +1,7 @@ global enum eDiscordGameState { - LOADING = 0 - MAINMENU + LOADING = 0 + MAINMENU LOBBY INGAME } @@ -23,7 +23,7 @@ global struct GameStateStruct { } global struct UIPresenceStruct { - int game_state + int gameState } global struct RequiredModInfo diff --git a/Northstar.Client/mod/scripts/vscripts/presence/cl_presence.nut b/Northstar.Client/mod/scripts/vscripts/presence/cl_presence.nut index 85ad10f21..f17216fbc 100644 --- a/Northstar.Client/mod/scripts/vscripts/presence/cl_presence.nut +++ b/Northstar.Client/mod/scripts/vscripts/presence/cl_presence.nut @@ -39,4 +39,4 @@ GameStateStruct function DiscordRPC_GenerateGameState( GameStateStruct gs ) else gs.timeEnd = expect float(level.nv.gameEndTime - Time()) return gs -} \ No newline at end of file +} diff --git a/Northstar.Client/mod/scripts/vscripts/presence/ui_presence.nut b/Northstar.Client/mod/scripts/vscripts/presence/ui_presence.nut index 26f46670f..ce5abe865 100644 --- a/Northstar.Client/mod/scripts/vscripts/presence/ui_presence.nut +++ b/Northstar.Client/mod/scripts/vscripts/presence/ui_presence.nut @@ -4,13 +4,13 @@ globalize_all_functions UIPresenceStruct function DiscordRPC_GenerateUIPresence( UIPresenceStruct uis ) { if ( uiGlobal.isLoading ) - uis.game_state = eDiscordGameState.LOADING; + uis.gameState = eDiscordGameState.LOADING; else if ( uiGlobal.loadedLevel == "" ) - uis.game_state = eDiscordGameState.MAINMENU; + uis.gameState = eDiscordGameState.MAINMENU; else if ( IsLobby() || uiGlobal.loadedLevel == "mp_lobby" ) - uis.game_state = eDiscordGameState.LOBBY; + uis.gameState = eDiscordGameState.LOBBY; else - uis.game_state = eDiscordGameState.INGAME; + uis.gameState = eDiscordGameState.INGAME; return uis -} \ No newline at end of file +}