Fix all warnings

This commit is contained in:
Sebastian Morr 2020-09-24 11:15:00 +02:00
parent 64713ef466
commit 5f375377f7
4 changed files with 9 additions and 8 deletions

View file

@ -11,10 +11,10 @@ onready var terminal = get_node(terminal_path)
onready var input = terminal.input onready var input = terminal.input
onready var output = terminal.output onready var output = terminal.output
export(NodePath) var goal_repository_path export(NodePath) var goal_repository_path_2
export(NodePath) var active_repository_path export(NodePath) var active_repository_path_2
onready var goal_repository = get_node(goal_repository_path) onready var goal_repository = get_node(goal_repository_path_2)
onready var active_repository = get_node(active_repository_path) onready var active_repository = get_node(active_repository_path_2)
export(NodePath) var level_select_path export(NodePath) var level_select_path
onready var level_select = get_node(level_select_path) onready var level_select = get_node(level_select_path)

View file

@ -30,8 +30,8 @@ __meta__ = {
"_edit_use_anchors_": false "_edit_use_anchors_": false
} }
terminal_path = NodePath("HBoxContainer/RightSide/Terminal") terminal_path = NodePath("HBoxContainer/RightSide/Terminal")
goal_repository_path = NodePath("HBoxContainer/Repositories/GoalRepository") goal_repository_path_2 = NodePath("HBoxContainer/Repositories/GoalRepository")
active_repository_path = NodePath("HBoxContainer/Repositories/ActiveRepository") active_repository_path_2 = NodePath("HBoxContainer/Repositories/ActiveRepository")
level_select_path = NodePath("HBoxContainer/RightSide/TopStuff/Menu/LevelSelect") level_select_path = NodePath("HBoxContainer/RightSide/TopStuff/Menu/LevelSelect")
next_level_button_path = NodePath("HBoxContainer/RightSide/TopStuff/Menu/NextLevelButton") next_level_button_path = NodePath("HBoxContainer/RightSide/TopStuff/Menu/NextLevelButton")
level_name_path = NodePath("HBoxContainer/RightSide/TopStuff/LevelPanel/LevelName") level_name_path = NodePath("HBoxContainer/RightSide/TopStuff/LevelPanel/LevelName")

View file

@ -25,7 +25,9 @@ func _ready():
command_dropdown.get_popup().add_item(command) command_dropdown.get_popup().add_item(command)
command_dropdown.get_popup().connect("id_pressed", self, "load_command") command_dropdown.get_popup().connect("id_pressed", self, "load_command")
$TextEditor.connect("hide", self, "editor_closed") var error = $TextEditor.connect("hide", self, "editor_closed")
if error != OK:
push_error("Could not connect TextEditor's hide signal")
input.grab_focus() input.grab_focus()
func _input(event): func _input(event):

View file

@ -15,7 +15,6 @@ func _process(_delta):
_client_connection = _server.take_connection() _client_connection = _server.take_connection()
var length = _client_connection.get_u8() var length = _client_connection.get_u8()
var filename = _client_connection.get_string(length) var filename = _client_connection.get_string(length)
var regex = RegEx.new()
filename = filename.replace("/tmp/active/", "") filename = filename.replace("/tmp/active/", "")
open(filename) open(filename)