mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-03 19:04:40 +01:00
Fix all warnings
This commit is contained in:
parent
64713ef466
commit
5f375377f7
4 changed files with 9 additions and 8 deletions
8
main.gd
8
main.gd
|
@ -11,10 +11,10 @@ onready var terminal = get_node(terminal_path)
|
|||
onready var input = terminal.input
|
||||
onready var output = terminal.output
|
||||
|
||||
export(NodePath) var goal_repository_path
|
||||
export(NodePath) var active_repository_path
|
||||
onready var goal_repository = get_node(goal_repository_path)
|
||||
onready var active_repository = get_node(active_repository_path)
|
||||
export(NodePath) var goal_repository_path_2
|
||||
export(NodePath) var active_repository_path_2
|
||||
onready var goal_repository = get_node(goal_repository_path_2)
|
||||
onready var active_repository = get_node(active_repository_path_2)
|
||||
|
||||
export(NodePath) var level_select_path
|
||||
onready var level_select = get_node(level_select_path)
|
||||
|
|
|
@ -30,8 +30,8 @@ __meta__ = {
|
|||
"_edit_use_anchors_": false
|
||||
}
|
||||
terminal_path = NodePath("HBoxContainer/RightSide/Terminal")
|
||||
goal_repository_path = NodePath("HBoxContainer/Repositories/GoalRepository")
|
||||
active_repository_path = NodePath("HBoxContainer/Repositories/ActiveRepository")
|
||||
goal_repository_path_2 = NodePath("HBoxContainer/Repositories/GoalRepository")
|
||||
active_repository_path_2 = NodePath("HBoxContainer/Repositories/ActiveRepository")
|
||||
level_select_path = NodePath("HBoxContainer/RightSide/TopStuff/Menu/LevelSelect")
|
||||
next_level_button_path = NodePath("HBoxContainer/RightSide/TopStuff/Menu/NextLevelButton")
|
||||
level_name_path = NodePath("HBoxContainer/RightSide/TopStuff/LevelPanel/LevelName")
|
||||
|
|
|
@ -25,7 +25,9 @@ func _ready():
|
|||
command_dropdown.get_popup().add_item(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()
|
||||
|
||||
func _input(event):
|
||||
|
|
|
@ -15,7 +15,6 @@ func _process(_delta):
|
|||
_client_connection = _server.take_connection()
|
||||
var length = _client_connection.get_u8()
|
||||
var filename = _client_connection.get_string(length)
|
||||
var regex = RegEx.new()
|
||||
filename = filename.replace("/tmp/active/", "")
|
||||
open(filename)
|
||||
|
||||
|
|
Loading…
Reference in a new issue