more work on the 240p ui

This commit is contained in:
2025-10-27 01:25:15 +11:00
parent 0de868c796
commit a411be74aa
39 changed files with 597 additions and 2975 deletions

13
hot_wheel.gd Normal file
View File

@@ -0,0 +1,13 @@
class_name HotWheel
extends HBoxContainer
var entries: Array[TextureRect]
func add_cassette(cassette: Card) -> void:
var tex: TextureRect = TextureRect.new()
tex.texture = cassette.icon
tex.expand_mode = TextureRect.EXPAND_IGNORE_SIZE
tex.stretch_mode = TextureRect.STRETCH_KEEP_ASPECT_CENTERED
tex.custom_minimum_size = Vector2(32.0, 32.0)
add_child(tex)