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
@@ -18,19 +18,19 @@ signal change_character_requested(row: PlayerRow, player_name: String)
|
||||
var _player_row: PackedScene = preload("res://PlayerRow.tscn")
|
||||
|
||||
@onready
|
||||
var add_players_button: TextureButton = $VBoxContainer/HBoxContainer/AddPlayersButton
|
||||
var add_players_button: TextureButton = %AddPlayersButton
|
||||
|
||||
@onready
|
||||
var add_player_container: HBoxContainer = $VBoxContainer/AddPlayerContainer
|
||||
var add_player_container: HBoxContainer = %AddPlayerContainer
|
||||
|
||||
@onready
|
||||
var add_player_button: Button = $VBoxContainer/AddPlayerContainer/AddPlayerButton
|
||||
var add_player_button: Button = %AddPlayerButton
|
||||
|
||||
@onready
|
||||
var new_player_name_field: TextEdit = $VBoxContainer/AddPlayerContainer/PlayerNameField
|
||||
var new_player_name_field: TextEdit = %PlayerNameField
|
||||
|
||||
@onready
|
||||
var players_list_container: VBoxContainer = $VBoxContainer/ScrollContainer/PlayersListVBoxContainer
|
||||
var players_list_container: VBoxContainer = %PlayersListVBoxContainer
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
|
||||
Reference in new issue
Block a user