Roblox-style blocky avatar + actually-visible build stamp
checkpoint / checkpoint (push) Successful in 1m52s
checkpoint / checkpoint (push) Successful in 1m52s
Avatar: rebuild the placeholder base body as a Roblox-classic (R6) figure -- six chunky solid box parts (head, torso, two arms, two legs) skinned one part per bone onto the same 24-bone canonical rig, arms hanging at the sides instead of a T-pose, plus a painted-on smile face. Classic yellow/blue/green "noob" palette, flat single-colour surfaces (the old capsule-segment chain read as a banded scarecrow). Attachments resized to match the new proportions; head/hair/glove primitives are now boxes too (dropped ~130KB spheres to ~3KB each). Build stamp: it never rendered because `set_anchors_and_offsets_preset()` plus `.position` on a zero-size Label collapses the rect to negative width. Switched to a bottom-anchored full-width strip with explicit offsets and text alignment, brighter colour + black outline. Shows on the main menu (bottom-right) and in-world HUD (bottom-left) as `build PC3 <commit>`. Verified: avatar smoke 14/14 from source and against the exported pack; game.tscn + main_menu.tscn boot headless with no script errors. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015jtxAiu5dAW4WxCNdGkrkJ
This commit is contained in:
+14
-3
@@ -63,10 +63,21 @@ static func _build_label() -> String:
|
||||
func _ready() -> void:
|
||||
var v := Label.new()
|
||||
v.text = "build %s" % _build_label()
|
||||
v.add_theme_color_override("font_color", Color(1, 1, 1, 0.4))
|
||||
v.add_theme_color_override("font_color", Color(1, 1, 1, 0.7))
|
||||
v.add_theme_color_override("font_outline_color", Color(0, 0, 0, 0.85))
|
||||
v.add_theme_constant_override("outline_size", 4)
|
||||
v.add_theme_font_size_override("font_size", 12)
|
||||
v.set_anchors_and_offsets_preset(Control.PRESET_BOTTOM_RIGHT)
|
||||
v.position = Vector2(-140, -22)
|
||||
# Full-width strip pinned to the bottom, text right-aligned. A bare
|
||||
# BOTTOM_RIGHT preset + .position on a zero-size Label collapses the rect
|
||||
# and nothing renders -- which is why this never showed up.
|
||||
v.set_anchors_preset(Control.PRESET_BOTTOM_WIDE)
|
||||
v.horizontal_alignment = HORIZONTAL_ALIGNMENT_RIGHT
|
||||
v.vertical_alignment = VERTICAL_ALIGNMENT_BOTTOM
|
||||
v.offset_left = 8
|
||||
v.offset_right = -10
|
||||
v.offset_top = -28
|
||||
v.offset_bottom = -6
|
||||
v.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
add_child(v)
|
||||
|
||||
# Cache node references.
|
||||
|
||||
Reference in New Issue
Block a user