Changement de touche pour charger la scene principal, la touche f8 semble bug est ferme le jeu meme sans etre map quelque part.
This commit is contained in:
parent
ddf8472b9a
commit
16b93154c2
5 changed files with 9 additions and 11 deletions
|
@ -84,9 +84,7 @@ func change_level( p_next_scene_path, p_parent_next_scene = null, p_old_scene =
|
||||||
if old_scene:
|
if old_scene:
|
||||||
unload_scene( old_scene )
|
unload_scene( old_scene )
|
||||||
|
|
||||||
|
wait_frames = 1
|
||||||
|
|
||||||
wait_frames = 10
|
|
||||||
|
|
||||||
########
|
########
|
||||||
|
|
||||||
|
@ -130,7 +128,7 @@ func _process( time ):
|
||||||
|
|
||||||
func _input( event ):
|
func _input( event ):
|
||||||
|
|
||||||
if event is InputEventKey :
|
if event is InputEventKey and not event.is_echo():
|
||||||
if event.is_action_pressed("test_change_map_1"):
|
if event.is_action_pressed("test_change_map_1"):
|
||||||
global.change_level( "res://test_scene/test_scene.tscn", null, current_map )
|
global.change_level( "res://test_scene/test_scene.tscn", null, current_map )
|
||||||
elif event.is_action_pressed("test_change_map_2"):
|
elif event.is_action_pressed("test_change_map_2"):
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
[ext_resource path="res://global.gd" type="Script" id=1]
|
[ext_resource path="res://global.gd" type="Script" id=1]
|
||||||
[ext_resource path="res://background_loader_scene/background_loader.tscn" type="PackedScene" id=2]
|
[ext_resource path="res://background_loader_scene/background_loader.tscn" type="PackedScene" id=2]
|
||||||
|
|
||||||
[node name="global" type="Node" index="0"]
|
[node name="global" type="Node"]
|
||||||
|
|
||||||
pause_mode = 2
|
pause_mode = 2
|
||||||
script = ExtResource( 1 )
|
script = ExtResource( 1 )
|
||||||
|
|
|
@ -85,7 +85,7 @@ test_change_map_1=[ Object(InputEventKey,"resource_local_to_scene":false,"resour
|
||||||
]
|
]
|
||||||
test_change_map_2=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777250,"unicode":0,"echo":false,"script":null)
|
test_change_map_2=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777250,"unicode":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
test_change_map_3=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777251,"unicode":0,"echo":false,"script":null)
|
test_change_map_3=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777252,"unicode":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
|
|
||||||
[locale]
|
[locale]
|
||||||
|
|
|
@ -4,8 +4,8 @@ extends MarginContainer
|
||||||
# var a = 2
|
# var a = 2
|
||||||
# var b = "textvar"
|
# var b = "textvar"
|
||||||
|
|
||||||
const ACTION_LIST = [ "ui_debug_window", "ui_music_controls", "hide_char", "ui_hide_all", "move_up", "move_down", "move_left", "move_right", "fly_up", "fly_down","game_flashlight", "ui_pause", "ui_reload", "ui_free_cursor", "ui_quit", "test_change_map_1", "test_change_map_2" ]
|
const ACTION_LIST = [ "ui_debug_window", "ui_music_controls", "hide_char", "ui_hide_all", "move_up", "move_down", "move_left", "move_right", "fly_up", "fly_down","game_flashlight", "ui_pause", "ui_reload", "ui_free_cursor", "ui_quit", "test_change_map_1", "test_change_map_2", "test_change_map_3" ]
|
||||||
const ACTION_TEXT = [ "show/hide debug", "show/hide music", "Hide/show character", "hide/show UI", "move up", "move down", "move left", "move right", "fly up", "fly down", "on/off flashlight", "pause/play", "reload the scene", "free/capture mouse cursor", "quit", "test scene", "test grid map" ]
|
const ACTION_TEXT = [ "show/hide debug", "show/hide music", "Hide/show character", "hide/show UI", "move up", "move down", "move left", "move right", "fly up", "fly down", "on/off flashlight", "pause/play", "reload the scene", "free/capture mouse cursor", "quit", "test scene", "test grid map", "main test scene" ]
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
_on_Refresh_pressed()
|
_on_Refresh_pressed()
|
||||||
|
|
|
@ -14,7 +14,7 @@ flags = 4
|
||||||
gradient = SubResource( 1 )
|
gradient = SubResource( 1 )
|
||||||
width = 2048
|
width = 2048
|
||||||
|
|
||||||
[node name="Help" type="MarginContainer"]
|
[node name="Help" type="MarginContainer" index="0"]
|
||||||
|
|
||||||
anchor_left = 0.0
|
anchor_left = 0.0
|
||||||
anchor_top = 0.0
|
anchor_top = 0.0
|
||||||
|
|
Loading…
Reference in a new issue