Files
MusicPlayer/popups/QRPopup.tscn
T
Sansan 8d21b0617d
Build / test (push) Successful in 41s
Build / build (push) Successful in 1m13s
Fix and tidy the Character select, Shortcuts, Log and QR popups
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.
2026-10-07 15:24:43 +02:00

66 lines
1.8 KiB
Plaintext

[gd_scene format=3 uid="uid://btupbowehiyyu"]
[ext_resource type="Script" uid="uid://bsa6xg5xos6h7" path="res://popups/qr_popup.gd" id="1_qr_script"]
[ext_resource type="Script" uid="uid://dynulhnyq5hpq" path="res://addons/kenyoni/qr_code/qr_code_rect.gd" id="2_jpsxt"]
[node name="QRPopup" type="Control" unique_id=1996957585 node_paths=PackedStringArray("panel")]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_qr_script")
panel = NodePath("QRPanel")
[node name="QRPanel" type="Panel" parent="." unique_id=1021365843]
unique_name_in_owner = true
layout_mode = 0
offset_right = 450.0
offset_bottom = 540.0
theme_type_variation = &"PopupBackground"
[node name="TitleLabel" type="Label" parent="QRPanel" unique_id=1021365844]
layout_mode = 0
offset_top = 8.0
offset_right = 450.0
offset_bottom = 56.0
theme_type_variation = &"Title"
text = "Scan to search on your phone"
horizontal_alignment = 1
vertical_alignment = 1
[node name="QRCodeRect" type="TextureRect" parent="QRPanel" unique_id=1054378438]
unique_name_in_owner = true
layout_mode = 0
offset_left = 20.0
offset_top = 60.0
offset_right = 430.0
offset_bottom = 470.0
script = ExtResource("2_jpsxt")
auto_update = true
mode = 4
error_correction = 3
use_eci = true
eci_value = 26
data = ""
auto_version = true
auto_mask_pattern = true
light_module_color = Color(1, 1, 1, 1)
dark_module_color = Color(0, 0, 0, 1)
auto_module_size = false
module_size = 8
quiet_zone_size = 4
metadata/_custom_type_script = "uid://dynulhnyq5hpq"
[node name="URLLabel" type="Label" parent="QRPanel" unique_id=230761497]
unique_name_in_owner = true
layout_mode = 0
offset_left = 20.0
offset_top = 482.0
offset_right = 430.0
offset_bottom = 522.0
text = "URL"
horizontal_alignment = 1
vertical_alignment = 1