repair button press
This commit is contained in:
parent
25fa800391
commit
8b1fe0a9be
|
@ -30,6 +30,8 @@
|
||||||
devShells.default = with pkgs;
|
devShells.default = with pkgs;
|
||||||
mkShell {
|
mkShell {
|
||||||
LD_LIBRARY_PATH = lib.makeLibraryPath [ stdenv.cc.cc ]; # For libstdc++.so.6
|
LD_LIBRARY_PATH = lib.makeLibraryPath [ stdenv.cc.cc ]; # For libstdc++.so.6
|
||||||
|
ANDROID_HOME = "foo/bar";
|
||||||
|
|
||||||
nativeBuildInputs = [ clang just android-tools godot_4 ];
|
nativeBuildInputs = [ clang just android-tools godot_4 ];
|
||||||
buildInputs = [ sqlite ];
|
buildInputs = [ sqlite ];
|
||||||
};
|
};
|
||||||
|
|
|
@ -6,6 +6,8 @@ func _ready():
|
||||||
$FileDialog.access = FileDialog.ACCESS_FILESYSTEM
|
$FileDialog.access = FileDialog.ACCESS_FILESYSTEM
|
||||||
$FileDialog.use_native_dialog = true
|
$FileDialog.use_native_dialog = true
|
||||||
|
|
||||||
|
$MarginContainer/Unloaded/Button.pressed.connect(_on_button_pressed)
|
||||||
|
|
||||||
Global.state_changed.connect(_update_state)
|
Global.state_changed.connect(_update_state)
|
||||||
if Global.current_state == Global.State.UNLOADED:
|
if Global.current_state == Global.State.UNLOADED:
|
||||||
pass
|
pass
|
||||||
|
@ -14,7 +16,6 @@ func _ready():
|
||||||
var s = ResourceLoader.load("res://loaded.tscn")
|
var s = ResourceLoader.load("res://loaded.tscn")
|
||||||
var current_scene = s.instantiate()
|
var current_scene = s.instantiate()
|
||||||
$MarginContainer.add_child(current_scene)
|
$MarginContainer.add_child(current_scene)
|
||||||
pass
|
|
||||||
|
|
||||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
func _process(delta):
|
func _process(delta):
|
||||||
|
|
Loading…
Reference in a new issue