themes/main_theme.tres is the project theme. It holds Godot's default look for every control type the game uses, plus named styles for the game's own look (popups, the background, spacers, list rows, title and text sizes, highlights) and a palette for the popup dimming. Scenes and scripts name these styles instead of setting colours, sizes or style boxes, and the five old theme files are gone. themes/README.md explains the styles and how to make a new theme. The screenshot tour now uses the real character pictures, so the layout baseline is taken again. Screenshots are pixel-identical to before, and test_theme.gd checks that the look stays in the theme.
24 lines
800 B
Plaintext
24 lines
800 B
Plaintext
[gd_scene format=3]
|
|
|
|
[ext_resource type="Script" path="res://quiz/music_list_panel.gd" id="part_script"]
|
|
[ext_resource type="Script" uid="uid://gf1bk6xbe3j" path="res://quiz/scroll_to_end_container.gd" id="7_dj026"]
|
|
|
|
[node name="MusicListPanel" type="PanelContainer" unique_id=2011292375]
|
|
layout_mode = 3
|
|
offset_right = 1088.0
|
|
offset_bottom = 512.0
|
|
theme_type_variation = &"MusicList"
|
|
script = ExtResource("part_script")
|
|
|
|
[node name="ScrollContainer" type="ScrollContainer" parent="." unique_id=707750459]
|
|
layout_mode = 2
|
|
follow_focus = true
|
|
script = ExtResource("7_dj026")
|
|
|
|
[node name="MusicList" type="VBoxContainer" parent="ScrollContainer" unique_id=373398568]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
theme_override_constants/separation = 10
|