Move files warcraft scene to folder
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture_array"
|
||||
type="TextureArray"
|
||||
path="res://.import/WarCraft.exr-fa3141c8d5045461fb0582db300e740a.texarr"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/levels/warcraft/WarCraft.exr"
|
||||
dest_files=[ "res://.import/WarCraft.exr-fa3141c8d5045461fb0582db300e740a.texarr" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/no_bptc_if_rgb=false
|
||||
flags/repeat=false
|
||||
flags/filter=true
|
||||
flags/mipmaps=false
|
||||
flags/srgb=false
|
||||
slices/horizontal=1
|
||||
slices/vertical=1
|
||||
@@ -0,0 +1,23 @@
|
||||
extends Spatial
|
||||
|
||||
func _process(_delta):
|
||||
# Event key "escape" and "godot event" ui_end
|
||||
if Input.is_action_just_pressed("ui_end"):
|
||||
_confirm_before_quit()
|
||||
|
||||
func _notification(what):
|
||||
# Notification for android back action
|
||||
if what == MainLoop.NOTIFICATION_WM_GO_BACK_REQUEST:
|
||||
_confirm_before_quit()
|
||||
|
||||
func _confirm_before_quit():
|
||||
var confirm = ConfirmationDialog.new()
|
||||
confirm.set_title("Quit ?")
|
||||
confirm.set_text("Voulez vous vraiment quitté ?")
|
||||
add_child(confirm)
|
||||
confirm.connect("confirmed", self, "_quit_to_menu")
|
||||
confirm.popup()
|
||||
|
||||
# Back to main scene
|
||||
func _quit_to_menu():
|
||||
Global.goto_scene("res://scenes/main.tscn")
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user