Move generator panel ui inside generator
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
[ext_resource type="Script" uid="uid://es14nqk6vrrk" path="res://generator_container.gd" id="1_8wouw"]
|
||||
|
||||
[node name="GeneratorContainer" type="VBoxContainer" unique_id=1129190041]
|
||||
[node name="GeneratorContainer" type="MarginContainer" unique_id=1253142977]
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
@@ -11,65 +11,71 @@ anchor_bottom = 0.5
|
||||
offset_left = -132.0
|
||||
offset_top = -82.5
|
||||
offset_right = 132.0
|
||||
offset_bottom = 82.5
|
||||
offset_bottom = 87.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_constants/margin_left = 20
|
||||
script = ExtResource("1_8wouw")
|
||||
|
||||
[node name="Label" type="Label" parent="." unique_id=1867673612]
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="." unique_id=1139263929]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer" unique_id=1867673612]
|
||||
layout_mode = 2
|
||||
text = "Generator"
|
||||
|
||||
[node name="HBoxContainerGenerators" type="HBoxContainer" parent="." unique_id=2033456807]
|
||||
[node name="HBoxContainerGenerators" type="HBoxContainer" parent="VBoxContainer" unique_id=2033456807]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 8
|
||||
|
||||
[node name="BuyOneButton" type="Button" parent="HBoxContainerGenerators" unique_id=1171095139]
|
||||
[node name="BuyOneButton" type="Button" parent="VBoxContainer/HBoxContainerGenerators" unique_id=1171095139]
|
||||
layout_mode = 2
|
||||
text = "Buy x1"
|
||||
|
||||
[node name="BuyMaxButton" type="Button" parent="HBoxContainerGenerators" unique_id=871628534]
|
||||
[node name="BuyMaxButton" type="Button" parent="VBoxContainer/HBoxContainerGenerators" unique_id=871628534]
|
||||
layout_mode = 2
|
||||
text = "Buy Max"
|
||||
|
||||
[node name="GeneratorStatsGrid" type="GridContainer" parent="." unique_id=745078076]
|
||||
[node name="GeneratorStatsGrid" type="GridContainer" parent="VBoxContainer" unique_id=745078076]
|
||||
layout_mode = 2
|
||||
columns = 2
|
||||
|
||||
[node name="OwnedTitle" type="Label" parent="GeneratorStatsGrid" unique_id=891417119]
|
||||
[node name="OwnedTitle" type="Label" parent="VBoxContainer/GeneratorStatsGrid" unique_id=891417119]
|
||||
layout_mode = 2
|
||||
text = "Owned"
|
||||
|
||||
[node name="OwnedValue" type="Label" parent="GeneratorStatsGrid" unique_id=549086894]
|
||||
[node name="OwnedValue" type="Label" parent="VBoxContainer/GeneratorStatsGrid" unique_id=549086894]
|
||||
layout_mode = 2
|
||||
text = "0"
|
||||
|
||||
[node name="NextCostTitle" type="Label" parent="GeneratorStatsGrid" unique_id=303459589]
|
||||
[node name="NextCostTitle" type="Label" parent="VBoxContainer/GeneratorStatsGrid" unique_id=303459589]
|
||||
layout_mode = 2
|
||||
text = "Next Cost"
|
||||
|
||||
[node name="NextCostValue" type="Label" parent="GeneratorStatsGrid" unique_id=50480604]
|
||||
[node name="NextCostValue" type="Label" parent="VBoxContainer/GeneratorStatsGrid" unique_id=50480604]
|
||||
layout_mode = 2
|
||||
text = "0"
|
||||
|
||||
[node name="ProductionTitle" type="Label" parent="GeneratorStatsGrid" unique_id=2139535774]
|
||||
[node name="ProductionTitle" type="Label" parent="VBoxContainer/GeneratorStatsGrid" unique_id=2139535774]
|
||||
layout_mode = 2
|
||||
text = "Production / sec"
|
||||
|
||||
[node name="ProductionValue" type="Label" parent="GeneratorStatsGrid" unique_id=938669936]
|
||||
[node name="ProductionValue" type="Label" parent="VBoxContainer/GeneratorStatsGrid" unique_id=938669936]
|
||||
layout_mode = 2
|
||||
text = "0"
|
||||
|
||||
[node name="BuffsSection" type="VBoxContainer" parent="."]
|
||||
[node name="BuffsSection" type="VBoxContainer" parent="VBoxContainer" unique_id=640102105]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="BuffsTitle" type="Label" parent="BuffsSection"]
|
||||
[node name="BuffsTitle" type="Label" parent="VBoxContainer/BuffsSection" unique_id=1169271241]
|
||||
layout_mode = 2
|
||||
text = "Buffs"
|
||||
|
||||
[node name="BuffsList" type="VBoxContainer" parent="BuffsSection"]
|
||||
[node name="BuffsList" type="VBoxContainer" parent="VBoxContainer/BuffsSection" unique_id=1221547661]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 4
|
||||
|
||||
[connection signal="pressed" from="HBoxContainerGenerators/BuyOneButton" to="." method="_on_buy_pressed"]
|
||||
[connection signal="pressed" from="HBoxContainerGenerators/BuyMaxButton" to="." method="_on_buy_max_pressed"]
|
||||
[connection signal="mouse_entered" from="." to="." method="_on_mouse_entered"]
|
||||
[connection signal="mouse_exited" from="." to="." method="_on_mouse_exited"]
|
||||
[connection signal="pressed" from="VBoxContainer/HBoxContainerGenerators/BuyOneButton" to="." method="_on_buy_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/HBoxContainerGenerators/BuyMaxButton" to="." method="_on_buy_max_pressed"]
|
||||
|
||||
Reference in New Issue
Block a user