brackeys-12/ui/UI.tscn
2024-09-10 16:03:27 +03:00

105 lines
3.3 KiB
Text

[gd_scene load_steps=3 format=3 uid="uid://bxctpr0tfqidf"]
[ext_resource type="Texture2D" uid="uid://dsy18stvo2pu5" path="res://ui/ui-elements.png" id="1_cx752"]
[ext_resource type="Script" path="res://ui/number.gd" id="2_ei01o"]
[node name="UI" type="MarginContainer"]
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 44.0
grow_horizontal = 2
[node name="HBoxContainer" type="HBoxContainer" parent="."]
layout_mode = 2
[node name="LeftCounters" type="HBoxContainer" parent="HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="FloodLevel" type="MarginContainer" parent="HBoxContainer/LeftCounters"]
layout_mode = 2
[node name="Background" type="NinePatchRect" parent="HBoxContainer/LeftCounters/FloodLevel"]
custom_minimum_size = Vector2(160, 40)
layout_mode = 2
texture = ExtResource("1_cx752")
region_rect = Rect2(779.878, 10.1175, 231.253, 25.8529)
[node name="Title" type="Label" parent="HBoxContainer/LeftCounters/FloodLevel/Background"]
layout_mode = 2
offset_top = 9.0
offset_right = 112.0
offset_bottom = 32.0
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = "Flood Level:"
horizontal_alignment = 1
[node name="Number" type="Label" parent="HBoxContainer/LeftCounters/FloodLevel/Background"]
layout_mode = 2
offset_left = 112.0
offset_top = 9.0
offset_right = 148.0
offset_bottom = 32.0
theme_override_colors/font_color = Color(0, 0, 0, 1)
horizontal_alignment = 2
script = ExtResource("2_ei01o")
[node name="RightCounters" type="VBoxContainer" parent="HBoxContainer"]
layout_direction = 2
layout_mode = 2
[node name="Population" type="MarginContainer" parent="HBoxContainer/RightCounters"]
layout_mode = 2
[node name="Background" type="NinePatchRect" parent="HBoxContainer/RightCounters/Population"]
custom_minimum_size = Vector2(160, 20)
layout_mode = 2
texture = ExtResource("1_cx752")
region_rect = Rect2(779.878, 10.1175, 231.253, 25.8529)
[node name="Title" type="Label" parent="HBoxContainer/RightCounters/Population/Background"]
layout_mode = 2
offset_top = -2.0
offset_right = 112.0
offset_bottom = 21.0
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = "Population:"
horizontal_alignment = 1
[node name="Number" type="Label" parent="HBoxContainer/RightCounters/Population/Background"]
layout_mode = 2
offset_left = 112.0
offset_top = -1.0
offset_right = 148.0
offset_bottom = 22.0
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = "10"
horizontal_alignment = 2
[node name="Resources" type="MarginContainer" parent="HBoxContainer/RightCounters"]
layout_mode = 2
[node name="Background" type="NinePatchRect" parent="HBoxContainer/RightCounters/Resources"]
custom_minimum_size = Vector2(160, 20)
layout_mode = 2
texture = ExtResource("1_cx752")
region_rect = Rect2(779.878, 10.1175, 231.253, 25.8529)
[node name="Title" type="Label" parent="HBoxContainer/RightCounters/Resources/Background"]
layout_mode = 2
offset_top = -2.0
offset_right = 112.0
offset_bottom = 21.0
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = "Resources:"
horizontal_alignment = 1
[node name="Number" type="Label" parent="HBoxContainer/RightCounters/Resources/Background"]
layout_mode = 2
offset_left = 112.0
offset_top = -1.0
offset_right = 148.0
offset_bottom = 22.0
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = "10"
horizontal_alignment = 2