blob: ce5abe865ab56bdd66ec01d19be44c36af70bf92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
untyped
globalize_all_functions
UIPresenceStruct function DiscordRPC_GenerateUIPresence( UIPresenceStruct uis )
{
if ( uiGlobal.isLoading )
uis.gameState = eDiscordGameState.LOADING;
else if ( uiGlobal.loadedLevel == "" )
uis.gameState = eDiscordGameState.MAINMENU;
else if ( IsLobby() || uiGlobal.loadedLevel == "mp_lobby" )
uis.gameState = eDiscordGameState.LOBBY;
else
uis.gameState = eDiscordGameState.INGAME;
return uis
}
|