mirror of
https://github.com/rlabrecque/SteamworksSDK.git
synced 2026-10-10 17:36:39 +08:00
v1.46
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include "htmlsurface.h"
|
||||
#include "Inventory.h"
|
||||
#include "steam/steamencryptedappticket.h"
|
||||
#include "RemotePlay.h"
|
||||
#ifdef WIN32
|
||||
#include <direct.h>
|
||||
#else
|
||||
@@ -148,6 +149,9 @@ void CSpaceWarClient::Init( IGameEngine *pGameEngine )
|
||||
m_pMusicPlayer = new CMusicPlayer( pGameEngine );
|
||||
m_pClanChatRoom = new CClanChatRoom( pGameEngine );
|
||||
|
||||
// Remote Play session list
|
||||
m_pRemotePlayList = new CRemotePlayList( pGameEngine );
|
||||
|
||||
// Remote Storage page
|
||||
m_pRemoteStorage = new CRemoteStorage( pGameEngine );
|
||||
|
||||
@@ -959,6 +963,15 @@ void CSpaceWarClient::OnMenuSelection( FriendsListMenuItem_t selection )
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: Handles menu actions when viewing the Remote Play session list
|
||||
//-----------------------------------------------------------------------------
|
||||
void CSpaceWarClient::OnMenuSelection( RemotePlayListMenuItem_t selection )
|
||||
{
|
||||
m_pRemotePlayList->OnMenuSelection( selection );
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: Handles menu actions when viewing the remote storage sync screen
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -1125,6 +1138,12 @@ void CSpaceWarClient::OnGameStateChanged( EClientGameState eGameStateNew )
|
||||
pchSteamRichPresenceDisplay = SetInGameRichPresence();
|
||||
bDisplayScoreInRichPresence = true;
|
||||
}
|
||||
else if ( m_eGameState == k_EClientRemotePlay )
|
||||
{
|
||||
// we've switched to the remote play menu
|
||||
m_pRemotePlayList->Show();
|
||||
SteamFriends()->SetRichPresence( "status", "Viewing remote play sessions" );
|
||||
}
|
||||
else if ( m_eGameState == k_EClientRemoteStorage )
|
||||
{
|
||||
// we've switched to the remote storage menu
|
||||
@@ -1500,6 +1519,14 @@ void CSpaceWarClient::RunFrame()
|
||||
SetGameState( k_EClientGameMenu );
|
||||
break;
|
||||
|
||||
case k_EClientRemotePlay:
|
||||
m_pStarField->Render();
|
||||
m_pRemotePlayList->RunFrame();
|
||||
|
||||
if ( bEscapePressed )
|
||||
SetGameState( k_EClientGameMenu );
|
||||
break;
|
||||
|
||||
case k_EClientRemoteStorage:
|
||||
m_pStarField->Render();
|
||||
m_pRemoteStorage->Render();
|
||||
|
||||
Reference in New Issue
Block a user