Popups: - All nine popups now extend a shared PopupWindow class with open(), close() and toggle(), instead of each copying its own close-on-click code. Popups that need cleanup override close(). - A click outside a popup closed it and also pressed whatever was underneath, e.g. Reset playlist. The closing click is now consumed. - Popups used Godot's see-through default panel, so the song list and titles showed through. They now use an opaque popup theme, and a backdrop dims the window behind them. - The main window root now fills the screen, so the backdrop covers it. Text and images: - Many labels and buttons forced nearest filtering, which made text and icons jagged when the window is not 1920x1080. They now use the default smooth filtering. Only the pixel-art "no character" picture keeps nearest filtering when the winner window enlarges it. Player list: - A long player name pushed that row's character and buttons to the right. Names now take the free space and shorten with an ellipsis, so all rows line up and use the full width of the panel.
51 lines
1.6 KiB
Plaintext
51 lines
1.6 KiB
Plaintext
[gd_scene load_steps=2 format=3 uid="uid://bd1by80q1v27e"]
|
|
|
|
[ext_resource type="Script" uid="uid://rolypd0cqd6h" path="res://shortcuts_window.gd" id="1_12pxi"]
|
|
[ext_resource type="Theme" path="res://popup_theme.tres" id="popup_theme"]
|
|
|
|
[node name="ShorcutsControl" type="Control" node_paths=PackedStringArray("panel")]
|
|
theme = ExtResource("popup_theme")
|
|
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_12pxi")
|
|
panel = NodePath("ShortcutsPanel")
|
|
|
|
[node name="ShortcutsPanel" type="Panel" parent="."]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(700, 700)
|
|
layout_mode = 0
|
|
offset_right = 40.0
|
|
offset_bottom = 40.0
|
|
|
|
[node name="ScrollContainer" type="ScrollContainer" parent="ShortcutsPanel"]
|
|
custom_minimum_size = Vector2(700, 700)
|
|
layout_mode = 0
|
|
offset_right = 40.0
|
|
offset_bottom = 40.0
|
|
|
|
[node name="shortcutsVBox" type="VBoxContainer" parent="ShortcutsPanel/ScrollContainer"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(700, 700)
|
|
layout_mode = 2
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="ShortcutsPanel/ScrollContainer/shortcutsVBox"]
|
|
layout_mode = 2
|
|
alignment = 1
|
|
|
|
[node name="Label" type="Label" parent="ShortcutsPanel/ScrollContainer/shortcutsVBox/HBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "testar"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="Label2" type="Label" parent="ShortcutsPanel/ScrollContainer/shortcutsVBox/HBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "testera 2"
|
|
horizontal_alignment = 1
|