fix(v0.9): polish pass before release
Clears free mode when starting campaign/daily rooms, rebuilds levels on restore, fixes free win label, makes event claims cycle-aware and event schedule local-day based, grants VIBRATE permission, validates corrupt save values, and fixes Home scrolling, Guest Book close button, event claim contrast, achievement contrast, and difficulty modal spacing. Adds QA for these paths.
This commit is contained in:
1 parent
25c918e6a2
commit
3cdc3567f3
9 files changed
+115
-21
No files matched your search
+15
-3
@@ -14,6 +14,7 @@ var progress_label: Label
|
||||
var status_label: Label
|
||||
var scroll: ScrollContainer
|
||||
var detail_layer: ColorRect
|
||||
var detail_panel: PanelContainer
|
||||
var detail_portrait: TextureRect
|
||||
var detail_name: Label
|
||||
var detail_role: Label
|
||||
@@ -297,15 +298,19 @@ func _build_detail() -> void:
|
||||
detail_layer.add_child(center)
|
||||
|
||||
var panel := UI.panel(Palette.CREAM, 24, 16)
|
||||
detail_panel = panel
|
||||
var view_size := get_viewport_rect().size
|
||||
panel.custom_minimum_size = Vector2(320, max(320, min(560, int(view_size.y) - 80)))
|
||||
panel.mouse_filter = Control.MOUSE_FILTER_STOP
|
||||
center.add_child(panel)
|
||||
|
||||
var outer := VBoxContainer.new()
|
||||
outer.add_theme_constant_override("separation", 6)
|
||||
panel.add_child(outer)
|
||||
var detail_scroll := ScrollContainer.new()
|
||||
detail_scroll.horizontal_scroll_mode = ScrollContainer.SCROLL_MODE_DISABLED
|
||||
detail_scroll.size_flags_vertical = Control.SIZE_EXPAND_FILL
|
||||
panel.add_child(detail_scroll)
|
||||
outer.add_child(detail_scroll)
|
||||
var box := VBoxContainer.new()
|
||||
box.add_theme_constant_override("separation", 4)
|
||||
box.size_flags_horizontal = Control.SIZE_EXPAND_FILL
|
||||
@@ -339,10 +344,13 @@ func _build_detail() -> void:
|
||||
box.add_child(detail_story_box)
|
||||
UI.pass_scroll_input(detail_story_box)
|
||||
|
||||
var actions := HBoxContainer.new()
|
||||
outer.add_child(actions)
|
||||
var close := UI.button("Close", false, 44)
|
||||
close.size_flags_horizontal = Control.SIZE_EXPAND_FILL
|
||||
UI.set_font_size(close, 16)
|
||||
close.pressed.connect(_try_close_detail)
|
||||
box.add_child(close)
|
||||
actions.add_child(close)
|
||||
UI.pass_scroll_input(box)
|
||||
|
||||
|
||||
@@ -363,7 +371,11 @@ func _show_detail(guest: Dictionary) -> void:
|
||||
for child in detail_story_box.get_children():
|
||||
child.queue_free()
|
||||
var stories: Array = guest.get("stories", [])
|
||||
if not SaveGame.is_guest_unlocked(id):
|
||||
var unlocked := SaveGame.is_guest_unlocked(id)
|
||||
if detail_panel != null:
|
||||
var h := max(320, min(560, int(get_viewport_rect().size.y) - 80))
|
||||
detail_panel.custom_minimum_size.y = 340 if not unlocked else h
|
||||
if not unlocked:
|
||||
var hidden_line := UI.label("??? — check in from Room %d to hear their story." % int(guest.get("unlock_room", 0)), 11, Palette.MUTED)
|
||||
hidden_line.horizontal_alignment = HORIZONTAL_ALIGNMENT_LEFT
|
||||
detail_story_box.add_child(hidden_line)
|
||||
|
||||
Reference in new issue
Block a user