repair button press

main
Fabien Freling 2023-12-18 23:03:56 +01:00
parent 25fa800391
commit 8b1fe0a9be
2 changed files with 4 additions and 1 deletions

View File

@ -30,6 +30,8 @@
devShells.default = with pkgs;
mkShell {
LD_LIBRARY_PATH = lib.makeLibraryPath [ stdenv.cc.cc ]; # For libstdc++.so.6
ANDROID_HOME = "foo/bar";
nativeBuildInputs = [ clang just android-tools godot_4 ];
buildInputs = [ sqlite ];
};

View File

@ -6,6 +6,8 @@ func _ready():
$FileDialog.access = FileDialog.ACCESS_FILESYSTEM
$FileDialog.use_native_dialog = true
$MarginContainer/Unloaded/Button.pressed.connect(_on_button_pressed)
Global.state_changed.connect(_update_state)
if Global.current_state == Global.State.UNLOADED:
pass
@ -14,7 +16,6 @@ func _ready():
var s = ResourceLoader.load("res://loaded.tscn")
var current_scene = s.instantiate()
$MarginContainer.add_child(current_scene)
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):