Исправление. Надписи отображаются только в редакторе
This commit is contained in:
@@ -52,7 +52,6 @@ func _ready() -> void: call_deferred('_on_resized')
|
||||
func _on_resized() -> void:
|
||||
$rect.size = size
|
||||
$margin.size = size
|
||||
$button.size = size
|
||||
|
||||
|
||||
func _enter_tree() -> void:
|
||||
@@ -61,6 +60,10 @@ func _enter_tree() -> void:
|
||||
var unit = network.units[unit_key]
|
||||
unit.connect('data_received', Callable(self, 'on_data_received'))
|
||||
unit.connect('line_changed', Callable(self, 'on_line_changed'))
|
||||
$margin/vbox.alignment = alignment
|
||||
$margin/vbox/grid/fname.text = fname
|
||||
$margin/vbox/grid/rname.text = rname
|
||||
$margin/vbox/grid/state.texture = textures[state]
|
||||
|
||||
|
||||
func _exit_tree() -> void:
|
||||
|
||||
Reference in New Issue
Block a user