151 lines
4.4 KiB
Plaintext
151 lines
4.4 KiB
Plaintext
[gd_scene load_steps=2 format=3 uid="uid://g4uti1ufgc7i"]
|
|
|
|
[ext_resource type="Script" uid="uid://blb4o22kdgh5r" path="res://scenes/leaderboard/leaderboard_screen.gd" id="1_lb"]
|
|
|
|
[node name="LeaderboardScreen" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
script = ExtResource("1_lb")
|
|
|
|
[node name="Background" type="ColorRect" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
color = Color(0.094, 0.094, 0.137, 1)
|
|
|
|
[node name="Layout" type="VBoxContainer" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_constants/separation = 0
|
|
|
|
[node name="TopBar" type="MarginContainer" parent="Layout"]
|
|
layout_mode = 2
|
|
theme_override_constants/margin_left = 16
|
|
theme_override_constants/margin_top = 8
|
|
theme_override_constants/margin_right = 16
|
|
theme_override_constants/margin_bottom = 8
|
|
|
|
[node name="TopBarInner" type="HBoxContainer" parent="Layout/TopBar"]
|
|
custom_minimum_size = Vector2(0, 40)
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 10
|
|
|
|
[node name="BackBtn" type="Button" parent="Layout/TopBar/TopBarInner"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(40, 40)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 18
|
|
text = "←"
|
|
|
|
[node name="TitleLabel" type="Label" parent="Layout/TopBar/TopBarInner"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_font_sizes/font_size = 18
|
|
text = "Leaderboard"
|
|
vertical_alignment = 1
|
|
|
|
[node name="HSep" type="HSeparator" parent="Layout"]
|
|
layout_mode = 2
|
|
|
|
[node name="HeaderRow" type="MarginContainer" parent="Layout"]
|
|
layout_mode = 2
|
|
theme_override_constants/margin_left = 20
|
|
theme_override_constants/margin_top = 8
|
|
theme_override_constants/margin_right = 20
|
|
theme_override_constants/margin_bottom = 4
|
|
|
|
[node name="HeaderInner" type="HBoxContainer" parent="Layout/HeaderRow"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 12
|
|
|
|
[node name="RankHeader" type="Label" parent="Layout/HeaderRow/HeaderInner"]
|
|
modulate = Color(0.6, 0.6, 0.65, 1)
|
|
custom_minimum_size = Vector2(48, 0)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 11
|
|
text = "Rank"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="NameHeader" type="Label" parent="Layout/HeaderRow/HeaderInner"]
|
|
modulate = Color(0.6, 0.6, 0.65, 1)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_font_sizes/font_size = 11
|
|
text = "Player"
|
|
|
|
[node name="ScoreHeader" type="Label" parent="Layout/HeaderRow/HeaderInner"]
|
|
modulate = Color(0.6, 0.6, 0.65, 1)
|
|
custom_minimum_size = Vector2(80, 0)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 11
|
|
text = "Score"
|
|
horizontal_alignment = 2
|
|
|
|
[node name="HSep2" type="HSeparator" parent="Layout"]
|
|
layout_mode = 2
|
|
|
|
[node name="Scroll" type="ScrollContainer" parent="Layout"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
horizontal_scroll_mode = 0
|
|
|
|
[node name="ListMargin" type="MarginContainer" parent="Layout/Scroll"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_constants/margin_left = 20
|
|
theme_override_constants/margin_top = 8
|
|
theme_override_constants/margin_right = 20
|
|
theme_override_constants/margin_bottom = 8
|
|
|
|
[node name="LoadingLabel" type="Label" parent="Layout/Scroll/ListMargin"]
|
|
unique_name_in_owner = true
|
|
modulate = Color(0.7, 0.7, 0.75, 1)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 14
|
|
text = "Loading…"
|
|
|
|
[node name="EntryList" type="VBoxContainer" parent="Layout/Scroll/ListMargin"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_constants/separation = 4
|
|
|
|
[node name="PaginationRow" type="HBoxContainer" parent="Layout"]
|
|
custom_minimum_size = Vector2(0, 44)
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 12
|
|
alignment = 1
|
|
|
|
[node name="PrevBtn" type="Button" parent="Layout/PaginationRow"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(80, 34)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 13
|
|
text = "← Prev"
|
|
|
|
[node name="PageLabel" type="Label" parent="Layout/PaginationRow"]
|
|
unique_name_in_owner = true
|
|
modulate = Color(0.7, 0.7, 0.75, 1)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 13
|
|
text = "Page 1 / 1"
|
|
vertical_alignment = 1
|
|
|
|
[node name="NextBtn" type="Button" parent="Layout/PaginationRow"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(80, 34)
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 13
|
|
text = "Next →"
|