From 3e4e58c6728ed104c2b57761f6bf78785061a841 Mon Sep 17 00:00:00 2001 From: domi41 Date: Tue, 11 Aug 2020 10:33:28 +0200 Subject: [PATCH] feat: more QoL in the GUI --- gui/forms/CandidatesTree.gd | 1 + gui/forms/NewPollForm.gd | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/gui/forms/CandidatesTree.gd b/gui/forms/CandidatesTree.gd index b09fc39..6f1c8c4 100644 --- a/gui/forms/CandidatesTree.gd +++ b/gui/forms/CandidatesTree.gd @@ -31,6 +31,7 @@ func setup(): func setup_dummy_items(): create_candidate_item("Candidate A") create_candidate_item("Candidate B") + create_candidate_item("Candidate C") func create_candidate_item(__name:String): diff --git a/gui/forms/NewPollForm.gd b/gui/forms/NewPollForm.gd index f65f8ac..15e9ae5 100644 --- a/gui/forms/NewPollForm.gd +++ b/gui/forms/NewPollForm.gd @@ -1,6 +1,12 @@ extends Control +onready var LaunchButton = find_node("LaunchButton", true) + +func _ready(): + LaunchButton.grab_focus() + + func _on_CancelButton_pressed(): var _done = get_tree().change_scene("res://gui/MainMenu.tscn")