fix(daily): full 30-room rotation and reset-safe profile
Use a fixed shuffled order so every room appears once before repeats. Keep Profile Confirm/Cancel visible, clear locked avatar/frame on reset, and make Home's avatar caption dynamic.
This commit is contained in:
1 parent
0cc08de31b
commit
b4fd03a8a4
6 files changed
+74
-15
No files matched your search
+13
-12
@@ -51,6 +51,19 @@ func _ready() -> void:
|
||||
scroll.horizontal_scroll_mode = ScrollContainer.SCROLL_MODE_DISABLED
|
||||
column.add_child(scroll)
|
||||
|
||||
# Confirm/Cancel stay visible instead of being hidden below the scroll.
|
||||
var actions := HBoxContainer.new()
|
||||
actions.add_theme_constant_override("separation", 8)
|
||||
column.add_child(actions)
|
||||
var cancel := UI.button("Cancel", false, 46)
|
||||
cancel.size_flags_horizontal = Control.SIZE_EXPAND_FILL
|
||||
cancel.pressed.connect(_on_cancel)
|
||||
actions.add_child(cancel)
|
||||
var confirm := UI.button("Confirm", true, 46)
|
||||
confirm.size_flags_horizontal = Control.SIZE_EXPAND_FILL
|
||||
confirm.pressed.connect(_on_confirm)
|
||||
actions.add_child(confirm)
|
||||
|
||||
var content := VBoxContainer.new()
|
||||
content.size_flags_horizontal = Control.SIZE_EXPAND_FILL
|
||||
content.add_theme_constant_override("separation", 8)
|
||||
@@ -99,18 +112,6 @@ func _ready() -> void:
|
||||
status_label.custom_minimum_size = Vector2(0, 22)
|
||||
content.add_child(status_label)
|
||||
|
||||
var actions := HBoxContainer.new()
|
||||
actions.add_theme_constant_override("separation", 8)
|
||||
content.add_child(actions)
|
||||
var cancel := UI.button("Cancel", false, 46)
|
||||
cancel.size_flags_horizontal = Control.SIZE_EXPAND_FILL
|
||||
cancel.pressed.connect(_on_cancel)
|
||||
actions.add_child(cancel)
|
||||
var confirm := UI.button("Confirm", true, 46)
|
||||
confirm.size_flags_horizontal = Control.SIZE_EXPAND_FILL
|
||||
confirm.pressed.connect(_on_confirm)
|
||||
actions.add_child(confirm)
|
||||
|
||||
UI.pass_scroll_input(content)
|
||||
SaveGame.progress_changed.connect(refresh)
|
||||
refresh()
|
||||
|
||||
Reference in new issue
Block a user