fix(profile): polish touch scroll, avatars and wallpaper picker

Local-only v0.8.1 build. Achievement rows pass touch drags, avatars use head crops and hide locked identities, difficulty cycles Zen/Easy/Normal, wallpaper setting opens a preview picker, Brie uses the approved render with a text-free sheet, and the app icon is regenerated in gouache style.
This commit is contained in:
Ratdoku Builder committed 2026-12-04 05:37:34 -06:00
1 parent 6d302f5cb9
commit a54279ffd1
14 files changed
+221 -31

No files matched your search

+21 -4
View File
@@ -192,7 +192,7 @@ func _build_portrait() -> void:
child.queue_free()
var frame := Frames.frame_panel(pending_frame, 118)
var head := TextureRect.new()
head.texture = load(Avatars.portrait_path(pending_avatar))
head.texture = load(Avatars.head_path(pending_avatar))
head.custom_minimum_size = Vector2(96, 96)
head.expand_mode = TextureRect.EXPAND_IGNORE_SIZE
head.stretch_mode = TextureRect.STRETCH_KEEP_ASPECT_CENTERED
@@ -228,12 +228,24 @@ func _build_grid() -> void:
var badge := Frames.frame_panel(pending_frame if current_tab == "avatar" else id, 46)
badge.mouse_filter = Control.MOUSE_FILTER_IGNORE
var head := TextureRect.new()
head.texture = load(Avatars.portrait_path(id) if current_tab == "avatar" else "res://art/crumb_head.png")
head.texture = load(Avatars.head_path(id) if current_tab == "avatar" else "res://art/crumb_head.png")
head.custom_minimum_size = Vector2(30, 30)
head.expand_mode = TextureRect.EXPAND_IGNORE_SIZE
head.stretch_mode = TextureRect.STRETCH_KEEP_ASPECT_CENTERED
head.mouse_filter = Control.MOUSE_FILTER_IGNORE
badge.add_child(head)
var hidden := current_tab == "avatar" and not unlocked
if hidden:
var veil := ColorRect.new()
veil.color = Color(0.98, 0.93, 0.84, 0.82)
veil.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT)
veil.mouse_filter = Control.MOUSE_FILTER_IGNORE
badge.add_child(veil)
var question := UI.label("???", 12, Palette.INK)
question.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT)
question.vertical_alignment = VERTICAL_ALIGNMENT_CENTER
question.mouse_filter = Control.MOUSE_FILTER_IGNORE
badge.add_child(question)
row.add_child(badge)
var text := VBoxContainer.new()
@@ -242,7 +254,8 @@ func _build_grid() -> void:
text.mouse_filter = Control.MOUSE_FILTER_IGNORE
row.add_child(text)
var name := UI.label(str(entry.get("name", "")), 12)
var display_name := "???" if (current_tab == "avatar" and not unlocked) else str(entry.get("name", ""))
var name := UI.label(display_name, 12)
name.horizontal_alignment = HORIZONTAL_ALIGNMENT_LEFT
text.add_child(name)
@@ -251,8 +264,10 @@ func _build_grid() -> void:
detail = "Selected"
elif unlocked:
detail = "Unlocked"
elif current_tab == "avatar":
detail = "Room %d" % int(entry.get("room", 0))
else:
detail = Avatars.requirement_text(id) if current_tab == "avatar" else Frames.requirement_text(id)
detail = Frames.requirement_text(id)
var sub := UI.label(detail, 9, Palette.GOLD if id == selected else (Palette.MUTED if unlocked else Palette.RED))
sub.horizontal_alignment = HORIZONTAL_ALIGNMENT_LEFT
text.add_child(sub)
@@ -321,6 +336,8 @@ func _build_achievements() -> void:
row.add_child(label)
achievements_box.add_child(row)
UI.pass_scroll_input(achievements_box)
func _build_rename_dialog() -> void:
rename_layer = ColorRect.new()