示例#1
0
	private void OnGameOverlayActivated(GameOverlayActivated_t pCallback) {
		if (pCallback.m_bActive != 0)
		{
			Debug.Log("Steam Overlay has been mf'n actiVATEd!");
		}
		else {
			Debug.Log("Steam oerlay has been crushed, closed and phased out like a donuz.");
		}
	}
示例#2
0
 internal static void InstallEvents()
 {
     FriendStateChange_t.Install(x => OnPersonaStateChange?.Invoke(new Friend(x.SteamID)));
     GameRichPresenceJoinRequested_t.Install(x => OnGameRichPresenceJoinRequested?.Invoke(new Friend(x.SteamIDFriend), x.Connect));
     GameConnectedFriendChatMsg_t.Install(OnFriendChatMessage);
     GameOverlayActivated_t.Install(x => OnGameOverlayActivated?.Invoke());
     GameServerChangeRequested_t.Install(x => OnGameServerChangeRequested?.Invoke(x.Server, x.Password));
     GameLobbyJoinRequested_t.Install(x => OnGameLobbyJoinRequested?.Invoke(x.SteamIDLobby, x.SteamIDFriend));
     FriendRichPresenceUpdate_t.Install(x => OnFriendRichPresenceUpdate?.Invoke(new Friend(x.SteamIDFriend)));
 }
 private void OnGameOverlayActivated(GameOverlayActivated_t pCallback)
 {
     if (pCallback.m_bActive != 0)
     {
         Time.timeScale = 0;
         Debug.Log("Steam Overlay has been activated");
     }
     else
     {
         Time.timeScale = 1;
         Debug.Log("Steam Overlay has been closed");
     }
 }
	void OnGameOverlayActivated(GameOverlayActivated_t pCallback) {
		Debug.Log("[" + GameOverlayActivated_t.k_iCallback + " - GameOverlayActivated] - " + pCallback.m_bActive);
	}
示例#5
0
 public void OnOverlayActivated(GameOverlayActivated_t result)
 {
     Main.instance.IsMouseVisible = (result.m_bActive == 1);
 }
示例#6
0
		private static void OnOverlayActivated(GameOverlayActivated_t callback)
		{
			OverlayActive.Value = callback.m_bActive != 0;
			if (!OverlayActive) _overlayTimer = 0.2f;
		}
示例#7
0
 internal static void InstallEvents()
 {
     FriendStateChange_t.Install((FriendStateChange_t x) => {
         Action <Friend> onPersonaStateChange = SteamFriends.OnPersonaStateChange;
         if (onPersonaStateChange != null)
         {
             onPersonaStateChange(new Friend(x.SteamID));
         }
         else
         {
         }
     }, false);
     GameRichPresenceJoinRequested_t.Install((GameRichPresenceJoinRequested_t x) => {
         Action <Friend, string> onGameRichPresenceJoinRequested = SteamFriends.OnGameRichPresenceJoinRequested;
         if (onGameRichPresenceJoinRequested != null)
         {
             onGameRichPresenceJoinRequested(new Friend(x.SteamIDFriend), x.Connect);
         }
         else
         {
         }
     }, false);
     GameConnectedFriendChatMsg_t.Install(new Action <GameConnectedFriendChatMsg_t>(SteamFriends.OnFriendChatMessage), false);
     GameOverlayActivated_t.Install((GameOverlayActivated_t x) => {
         Action onGameOverlayActivated = SteamFriends.OnGameOverlayActivated;
         if (onGameOverlayActivated != null)
         {
             onGameOverlayActivated();
         }
         else
         {
         }
     }, false);
     GameServerChangeRequested_t.Install((GameServerChangeRequested_t x) => {
         Action <string, string> onGameServerChangeRequested = SteamFriends.OnGameServerChangeRequested;
         if (onGameServerChangeRequested != null)
         {
             onGameServerChangeRequested(x.Server, x.Password);
         }
         else
         {
         }
     }, false);
     GameLobbyJoinRequested_t.Install((GameLobbyJoinRequested_t x) => {
         Action <Lobby, SteamId> onGameLobbyJoinRequested = SteamFriends.OnGameLobbyJoinRequested;
         if (onGameLobbyJoinRequested != null)
         {
             onGameLobbyJoinRequested(new Lobby(x.SteamIDLobby), x.SteamIDFriend);
         }
         else
         {
         }
     }, false);
     FriendRichPresenceUpdate_t.Install((FriendRichPresenceUpdate_t x) => {
         Action <Friend> onFriendRichPresenceUpdate = SteamFriends.OnFriendRichPresenceUpdate;
         if (onFriendRichPresenceUpdate != null)
         {
             onFriendRichPresenceUpdate(new Friend(x.SteamIDFriend));
         }
         else
         {
         }
     }, false);
 }