void remote_players_imgui_lobby( ui_context *ctx )
{
- if( network_client.user_intent == k_server_intent_online ){
- if( !(steam_ready &&
- (network_client.state == k_ESteamNetworkingConnectionState_Connected)))
+ if( network_client.user_intent == k_server_intent_online )
+ {
+ if( !(steam_ready && (network_client.state == k_ESteamNetworkingConnectionState_Connected)) )
{
return;
}
x = vg.window_x - width;
ctx->font = &vgf_default_large;
- ui_text( ctx, (ui_rect){ x, 0, width, height },
- "In World", 1, k_ui_align_middle_center, 0 );
+ ui_text( ctx, (ui_rect){ x, 0, width, height }, "In World", 1, k_ui_align_middle_center, 0 );
ctx->font = &vgf_default_small;
-
ui_rect us = { x, y, width, height };
/* FIXME: your location */
- remote_player_gui_info( ctx, us, steam_username_at_startup, "you",
- k_remote_player_gui_type_you, 1 );
+ remote_player_gui_info( ctx, us, steam_username_at_startup, "you", k_remote_player_gui_type_you, 1 );
y += height + gap;
for( u32 i=0; i<NETWORK_MAX_PLAYERS; i ++ )
{
struct network_player *player = &netplayers.list[i];
- if( !player->active || player->isblocked ) continue;
+ if( !player->active || player->isblocked )
+ continue;
if( !player->isfriend && !player->same_world )
continue;
const char *location = player->same_world? "": "another world";
- if( player->region_flags & k_ent_region_flag_hasname ){
+ if( player->region_flags & k_ent_region_flag_hasname )
location = player->region;
- }
ui_rect box = { x, y, width, height };
- remote_player_gui_info( ctx, box, player->username, location,
- player->isfriend, player->same_world );
+ remote_player_gui_info( ctx, box, player->username, location, player->isfriend, player->same_world );
y += height + gap;
}
}