Skip to content

Commit

Permalink
user count now shows
Browse files Browse the repository at this point in the history
  • Loading branch information
Dazegambler committed Nov 13, 2024
1 parent 5ce8224 commit fcd3dca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion replacement_files/network.nut
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ for( local i = 0; i < 5; i = ++i )
this.lobby_user_str <- ::font.CreateSystemString("Users: ");
this.lobby_user_str.x = 300;
this.lobby_user_str.y = 300;
this.lobby_user_str.ConnectRenderSlot(::graphics.slot.front,-1);
this.lobby_user_str.visible = false;

this.server_port_h <- this.Cursor(1, 5, ::input_all);
Expand Down Expand Up @@ -251,7 +252,7 @@ function UpdateMain()
{
::menu.help.Set(this.help);
this.cursor_item.Update();

if (::LOBBY.GetNetworkState() == 2) {
this.lobby_user_str.Set("Users: " + ::lobby.user_count());
this.lobby_user_str.visible = true;
Expand Down
2 changes: 1 addition & 1 deletion th155r/Netcode/replacement_files/network.nut.h

Large diffs are not rendered by default.

0 comments on commit fcd3dca

Please sign in to comment.