mirror of
https://github.com/HarmonyHoney/tiny_crate.git
synced 2026-01-23 02:34:53 +00:00
OptionsMenu overlay
This commit is contained in:
parent
0e8062096d
commit
2e91599d59
3 changed files with 4 additions and 3 deletions
|
|
@ -118,7 +118,7 @@ func menu_select(tag : String = menu_items[cursor].to_lower()):
|
|||
OptionsMenu.open(true, self)
|
||||
is_input = false
|
||||
Audio.play("menu_options", 0.9, 1.1)
|
||||
Shared.cam.pos_target += Vector2(0, 250)
|
||||
Shared.cam.pos_target += Vector2(228, 0)
|
||||
"credits":
|
||||
Shared.wipe_scene(Shared.credits_path)
|
||||
Audio.play("menu_pick", 0.9, 1.1)
|
||||
|
|
@ -156,7 +156,7 @@ func menu_select(tag : String = menu_items[cursor].to_lower()):
|
|||
|
||||
func resume():
|
||||
is_input = true
|
||||
Shared.cam.target_pos = Vector2(90, 76)
|
||||
Shared.cam.pos_target = Vector2(90, 76)
|
||||
|
||||
func switch_menu(arg, silent := false, _cursor := 0):
|
||||
var s = ["quit", "main", "slot", "open", "erase"]
|
||||
|
|
|
|||
|
|
@ -825,7 +825,7 @@ tile_data = PoolIntArray( 131093, 536870916, 3, 131094, 4, 1, 131095, 4, 0, 1310
|
|||
|
||||
[node name="GameCamera" parent="Stage" instance=ExtResource( 13 )]
|
||||
position = Vector2( 90, 76 )
|
||||
bounds = Rect2( 0, 0, 0, 188 )
|
||||
bounds = Rect2( 300, 200, 300, 200 )
|
||||
|
||||
[node name="Actors" type="Node2D" parent="Stage"]
|
||||
script = ExtResource( 10 )
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ func open(arg := is_open, _last = null):
|
|||
center.visible = is_open
|
||||
input_clock = input_cooldown
|
||||
|
||||
select_item()
|
||||
if !is_open and is_instance_valid(last_menu) and last_menu.has_method("resume"):
|
||||
last_menu.resume()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue