-
Notifications
You must be signed in to change notification settings - Fork 2
/
BuildingWidget.tscn
104 lines (88 loc) · 3.17 KB
/
BuildingWidget.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
[gd_scene load_steps=12 format=2]
[ext_resource path="res://BuildingWidget.gd" type="Script" id=1]
[ext_resource path="res://assets/fonts/Secuela-Regular.otf" type="DynamicFontData" id=2]
[ext_resource path="res://assets/fonts/Secuela-Bold.otf" type="DynamicFontData" id=3]
[ext_resource path="res://assets/fonts/Secuela-BoldItalic.otf" type="DynamicFontData" id=4]
[ext_resource path="res://assets/fonts/Secuela-Italic.otf" type="DynamicFontData" id=5]
[ext_resource path="res://Theme.tres" type="Theme" id=6]
[sub_resource type="StyleBoxFlat" id=1]
bg_color = Color( 0.6, 0.6, 0.6, 0.501961 )
[sub_resource type="DynamicFont" id=2]
font_data = ExtResource( 4 )
[sub_resource type="DynamicFont" id=3]
font_data = ExtResource( 5 )
[sub_resource type="DynamicFont" id=4]
font_data = ExtResource( 3 )
[sub_resource type="DynamicFont" id=5]
font_data = ExtResource( 2 )
[node name="BuildingWidget" type="PanelContainer" groups=[
"building_widgets",
]]
custom_styles/panel = SubResource( 1 )
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="margin" type="MarginContainer" parent="."]
margin_right = 78.0
margin_bottom = 62.0
custom_constants/margin_right = 4
custom_constants/margin_top = 4
custom_constants/margin_left = 4
custom_constants/margin_bottom = 4
[node name="vbox" type="VBoxContainer" parent="margin"]
margin_left = 4.0
margin_top = 4.0
margin_right = 74.0
margin_bottom = 58.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="description" type="RichTextLabel" parent="margin/vbox"]
margin_right = 70.0
margin_bottom = 16.0
custom_fonts/bold_italics_font = SubResource( 2 )
custom_fonts/italics_font = SubResource( 3 )
custom_fonts/bold_font = SubResource( 4 )
custom_fonts/normal_font = SubResource( 5 )
custom_colors/default_color = Color( 0, 0, 0, 1 )
bbcode_enabled = true
fit_content_height = true
scroll_active = false
[node name="stats" type="VBoxContainer" parent="margin/vbox"]
margin_top = 20.0
margin_right = 70.0
margin_bottom = 20.0
[node name="batch" type="HBoxContainer" parent="margin/vbox"]
visible = false
margin_top = 20.0
margin_right = 97.0
margin_bottom = 48.0
[node name="label" type="Label" parent="margin/vbox/batch"]
margin_top = 7.0
margin_right = 63.0
margin_bottom = 21.0
theme = ExtResource( 6 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "Buy in batch:"
[node name="batch_sizes" type="OptionButton" parent="margin/vbox/batch"]
margin_left = 67.0
margin_right = 97.0
margin_bottom = 28.0
rect_min_size = Vector2( 0, 28 )
size_flags_horizontal = 3
theme = ExtResource( 6 )
text = "1"
items = [ "1", null, false, 0, null, "10", null, false, 1, null, "100", null, false, 2, null, "1000", null, false, 3, null, "10000", null, false, 4, null, "100000", null, false, 5, null ]
selected = 0
[node name="action_btn" type="Button" parent="margin/vbox"]
margin_top = 24.0
margin_right = 70.0
margin_bottom = 54.0
rect_min_size = Vector2( 70, 30 )
focus_mode = 0
size_flags_horizontal = 8
theme = ExtResource( 6 )
text = "Upgrade"
[connection signal="item_selected" from="margin/vbox/batch/batch_sizes" to="." method="_on_batch_sizes_item_selected"]
[connection signal="pressed" from="margin/vbox/action_btn" to="." method="_on_action_btn_pressed"]