+ const char *alias = "rows";
+
+ if( world_sfd.view_weekly ){
+ alias = "rows_weekly";
+ sfd_encode( (v2i){-1,0}, "Weekly", k_world_sfd_right );
+ }
+ else {
+ sfd_encode( (v2i){-1,0}, "All-Time", k_world_sfd_right );
+ }
+
+ u32 l = 1;
+ if( vg_msg_seekframe( &body, alias ) ){
+ while( vg_msg_seekframe( &body, NULL ) ){
+ /* name */
+ const char *username = vg_msg_getkvstr( &body, "username" );
+
+ char buf[100];
+ vg_str str;
+ vg_strnull( &str, buf, 100 );
+ vg_strcati32( &str, l );
+ vg_strcat( &str, " " );
+
+ if( username )
+ vg_strcat( &str, username );
+ else
+ vg_strcat( &str, "??????" );
+
+ sfd_encode( (v2i){0,l}, str.buffer, k_world_sfd_left );
+
+ /* time */
+ vg_strnull( &str, buf, 100 );
+
+ u32 centiseconds;
+ vg_msg_getkvintg( &body, "time", k_vg_msg_i32, ¢iseconds, NULL );
+
+ i32 seconds = centiseconds / 100,
+ minutes = seconds / 60;
+
+ centiseconds %= 100;
+ seconds %= 60;
+ minutes %= 60;
+ if( minutes > 9 ) vg_strcat( &str, "?" );
+ else vg_strcati32( &str, minutes );
+ vg_strcat( &str, ":" );
+ vg_strcati32r( &str, seconds, 2, '0' );
+ vg_strcat( &str, "." );
+ vg_strcati32r( &str, centiseconds, 2, '0' );
+ sfd_encode( (v2i){-1,l}, str.buffer, k_world_sfd_right );
+ l ++;
+
+ vg_msg_skip_frame( &body );