feat: implement multiplayer network manager and player movement controller with base game entities and UI
This commit is contained in:
@@ -260,6 +260,13 @@ func _ready() -> void:
|
||||
pl_title.add_theme_constant_override("outline_size", 8)
|
||||
hl_right.add_child(pl_title)
|
||||
|
||||
var port_label = Label.new()
|
||||
if get_node_or_null("/root/NetworkManager"):
|
||||
port_label.text = "Port: " + str(get_node("/root/NetworkManager").DEFAULT_PORT)
|
||||
port_label.add_theme_font_size_override("font_size", 24)
|
||||
port_label.add_theme_color_override("font_color", Color(0.7, 0.7, 0.7))
|
||||
hl_right.add_child(port_label)
|
||||
|
||||
_host_lobby_players_list = ItemList.new()
|
||||
_host_lobby_players_list.size_flags_vertical = Control.SIZE_EXPAND_FILL
|
||||
_host_lobby_players_list.add_theme_font_size_override("font_size", 24)
|
||||
|
||||
Reference in New Issue
Block a user