Character select
- A card only picks its character when it is clicked. Before, every card
watched every click, so clicking below the panel could pick a card
scrolled out of view there.
- Six columns of fixed-size cards that scroll for any number of
characters, with a gap between the cards and the scrollbar.
- Pictures are read as PNG, JPG or WebP by their first bytes, so JPGs no
longer print an error. Names are split into words ("Paper Mario") and
the card under the mouse is highlighted.
Shortcuts
- Alt+Z restarts the song; it was listed as "Reset".
- Grouped by what the keys do, in sentence case, and the panel fits the
list. A test checks that every button shortcut is listed.
Log
- Scrolls to the newest row, alternates row colours and says "Nothing
has happened yet" when empty.
QR
- A title, and the code is set up in one place.
59 lines
1.5 KiB
Plaintext
59 lines
1.5 KiB
Plaintext
[gd_scene format=3 uid="uid://bijh5h5yrivm3"]
|
|
|
|
[ext_resource type="Script" uid="uid://cw41y87l64qo7" path="res://popups/log_popup.gd" id="1_q72ua"]
|
|
|
|
[node name="LogPopup" type="Control" node_paths=PackedStringArray("panel")]
|
|
custom_minimum_size = Vector2(700, 700)
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
script = ExtResource("1_q72ua")
|
|
panel = NodePath("LogPanel")
|
|
|
|
[node name="LogPanel" type="Panel" parent="."]
|
|
unique_name_in_owner = true
|
|
visibility_layer = 513
|
|
custom_minimum_size = Vector2(700, 700)
|
|
layout_mode = 0
|
|
offset_right = 700.0
|
|
offset_bottom = 700.0
|
|
theme_type_variation = &"PopupBackground"
|
|
|
|
[node name="TitleLabel" type="Label" parent="LogPanel"]
|
|
layout_mode = 0
|
|
offset_top = 8.0
|
|
offset_right = 700.0
|
|
offset_bottom = 48.0
|
|
theme_type_variation = &"Title"
|
|
text = "Log"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="EmptyLabel" type="Label" parent="LogPanel"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 0
|
|
offset_left = 20.0
|
|
offset_top = 80.0
|
|
offset_right = 680.0
|
|
offset_bottom = 110.0
|
|
theme_type_variation = &"TextLarge"
|
|
text = "Nothing has happened yet"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="LogScrollContainer" type="ScrollContainer" parent="LogPanel"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 0
|
|
offset_left = 20.0
|
|
offset_top = 56.0
|
|
offset_right = 680.0
|
|
offset_bottom = 684.0
|
|
horizontal_scroll_mode = 0
|
|
|
|
[node name="LogVBoxContainer" type="VBoxContainer" parent="LogPanel/LogScrollContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_constants/separation = 1
|