X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player_remote.c;h=ad1c2e5988de82a4bf7280b7353ba240625ba18b;hb=bdca621ba09a4611d9fb57f791e96172e376651a;hp=0336624efa421dcdb71b311bcdbf8ba60cc11a7e;hpb=d1860effe17d86ef47b7c879668eb97ef8c3ab51;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player_remote.c b/player_remote.c index 0336624..ad1c2e5 100644 --- a/player_remote.c +++ b/player_remote.c @@ -368,6 +368,20 @@ static void remote_player_debug_update(void){ * Debugging information */ static void remote_player_network_imgui( m4x4f pv ){ + if( network_client.user_intent == k_server_intent_online ){ + if( !(steam_ready && + (network_client.state == k_ESteamNetworkingConnectionState_Connected))) + { + char buf[128]; + vg_str str; + vg_strnull( &str, buf, sizeof(buf) ); + u32 fg = 0; + network_status_string( &str, &fg ); + ui_text( (ui_rect){ vg.window_x - 200, 0, 200, 32 }, buf, 1, + k_ui_align_middle_center, fg ); + } + } + if( !network_client.network_info ) return;