711cd453ff
메뉴 > 시간 하위 메뉴에 세 갈래를 둔다. - 실제 시각: 바깥 시계 그대로 (기본) - 빠르게: 하루를 5분으로 압축해 돌린다 - 한 시각에 멈추기: 새벽/아침/낮/저녁/밤 프리셋의 이름과 시각을 DayCycle.FIXED_PRESETS 한곳에 같이 두어, 메뉴 항목과 실제로 적용되는 시각이 어긋날 수 없게 했다. 고른 값은 window_state의 time_mode/time_hour에 저장한다. 모드를 바꿀 때 지금 보이던 시각을 먼저 잡아 둔다. mode를 먼저 바꾼 뒤 hour()를 부르면 이미 새 모드의 시계를 읽어 0시로 튀었다 -- 낮에 "빠르게"를 켜면 한밤중으로 떨어지는 버그였다. 명령줄 --hour=21은 그대로 살아 있고 FIXED 모드의 지름길이 되었다. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
31 lines
932 B
Plaintext
31 lines
932 B
Plaintext
[gd_scene load_steps=5 format=3]
|
|
|
|
[ext_resource type="Script" path="res://scenes/main.gd" id="1_main"]
|
|
[ext_resource type="PackedScene" path="res://scenes/aquarium/aquarium.tscn" id="2_aquarium"]
|
|
[ext_resource type="PackedScene" path="res://scenes/ui/hud.tscn" id="3_hud"]
|
|
[ext_resource type="PackedScene" path="res://scenes/ui/shop_panel.tscn" id="4_shop"]
|
|
|
|
[node name="Main" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 2
|
|
script = ExtResource("1_main")
|
|
|
|
[node name="Aquarium" parent="." instance=ExtResource("2_aquarium")]
|
|
layout_mode = 1
|
|
|
|
[node name="HUD" parent="." instance=ExtResource("3_hud")]
|
|
layout_mode = 1
|
|
|
|
[node name="ShopPanel" parent="." instance=ExtResource("4_shop")]
|
|
visible = false
|
|
layout_mode = 1
|
|
|
|
[node name="ContextMenu" type="PopupMenu" parent="."]
|
|
|
|
[node name="TimeMenu" type="PopupMenu" parent="ContextMenu"]
|