Reach nodes by unique name instead of long paths
Nodes a script uses through a path of several nodes are marked unique in their scene and found with %Name. The search list is renamed SearchResults, and the player row's nodes get their real types.
This commit is contained in:
1 parent
390da577d7
commit
674604425f
17 files changed
+54
-24
No files matched your search
+5
-5
@@ -2,19 +2,19 @@ class_name PlayerRow
|
||||
extends Control
|
||||
|
||||
@onready
|
||||
var player_name_field := $HBoxContainer/Name
|
||||
var player_name_field: Label = %Name
|
||||
|
||||
@onready
|
||||
var add_button := $HBoxContainer/AddPoint
|
||||
var add_button: Button = %AddPoint
|
||||
|
||||
@onready
|
||||
var minus_button := $HBoxContainer/RemovePoint
|
||||
var minus_button: Button = %RemovePoint
|
||||
|
||||
@onready
|
||||
var character := $HBoxContainer/Character
|
||||
var character: TextureButton = %Character
|
||||
|
||||
@onready
|
||||
var remove_player := $HBoxContainer/RemovePlayer
|
||||
var remove_player: TextureButton = %RemovePlayer
|
||||
|
||||
signal change_character_clicked
|
||||
signal player_removed
|
||||
|
||||
Reference in new issue
Block a user