Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
catornot committed Oct 22, 2023
1 parent 0e38613 commit e7cd848
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
global enum eDiscordGameState
{
LOADING = 0
MAINMENU
LOADING = 0
MAINMENU
LOBBY
INGAME
}
Expand All @@ -23,7 +23,7 @@ global struct GameStateStruct {
}

global struct UIPresenceStruct {
int game_state
int gameState
}

global struct RequiredModInfo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ GameStateStruct function DiscordRPC_GenerateGameState( GameStateStruct gs )
else
gs.timeEnd = expect float(level.nv.gameEndTime - Time())
return gs
}
}
10 changes: 5 additions & 5 deletions Northstar.Client/mod/scripts/vscripts/presence/ui_presence.nut
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit e7cd848

Please sign in to comment.