citylimits/scenes/windows/TaxWindow.tscn
Tony Bark d3350dd8a6 Redid interface
- Redid the interface with everything now at the bottom.
- Advisors can now address the mayor and city
- Updated tax window with red and green arrow icons
- Tweaked income algorithm
2021-05-27 13:54:08 -04:00

174 lines
4.3 KiB
Text

[gd_scene load_steps=5 format=2]
[ext_resource path="res://sprites/symbols/fontawesome/coins.svg" type="Texture" id=1]
[ext_resource path="res://scripts/tax_window.gd" type="Script" id=2]
[ext_resource path="res://sprites/symbols/fontawesome/arrow-pointing-down.svg" type="Texture" id=3]
[ext_resource path="res://sprites/symbols/fontawesome/arrow-up.svg" type="Texture" id=4]
[node name="TaxWindow" type="WindowDialog"]
visible = true
anchor_left = 0.2809
anchor_top = 0.265764
anchor_right = 0.631486
anchor_bottom = 0.447431
margin_left = -0.641174
margin_right = -0.641174
window_title = "RCI"
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": true
}
[node name="TaxSlidersCtr" type="VBoxContainer" parent="."]
anchor_left = 0.0167131
anchor_top = 0.0666667
anchor_right = 0.874652
anchor_bottom = 0.6
alignment = 1
__meta__ = {
"_edit_use_anchors_": true
}
[node name="ResCtr" type="HSplitContainer" parent="TaxSlidersCtr"]
margin_top = 1.0
margin_right = 308.0
margin_bottom = 17.0
dragger_visibility = 1
[node name="ResLbl" type="Label" parent="TaxSlidersCtr/ResCtr"]
margin_top = 1.0
margin_right = 71.0
margin_bottom = 15.0
text = "Residential"
align = 2
[node name="ResSlider" type="HSlider" parent="TaxSlidersCtr/ResCtr"]
margin_left = 83.0
margin_right = 308.0
margin_bottom = 16.0
min_value = 1.0
max_value = 10.0
value = 1.0
[node name="ComCtr" type="HSplitContainer" parent="TaxSlidersCtr"]
margin_top = 21.0
margin_right = 308.0
margin_bottom = 37.0
dragger_visibility = 1
[node name="ComLbl" type="Label" parent="TaxSlidersCtr/ComCtr"]
margin_top = 1.0
margin_right = 77.0
margin_bottom = 15.0
text = "Commerical"
align = 2
[node name="ComSlider" type="HSlider" parent="TaxSlidersCtr/ComCtr"]
margin_left = 89.0
margin_right = 308.0
margin_bottom = 16.0
min_value = 1.0
max_value = 10.0
value = 1.0
[node name="IndCtr" type="HSplitContainer" parent="TaxSlidersCtr"]
margin_top = 41.0
margin_right = 308.0
margin_bottom = 57.0
dragger_visibility = 1
[node name="IndLbl" type="Label" parent="TaxSlidersCtr/IndCtr"]
margin_top = 1.0
margin_right = 57.0
margin_bottom = 15.0
text = "Industral"
align = 2
[node name="IndSlider" type="HSlider" parent="TaxSlidersCtr/IndCtr"]
margin_left = 69.0
margin_right = 308.0
margin_bottom = 16.0
min_value = 1.0
max_value = 10.0
value = 1.0
[node name="PrecentCtr" type="VBoxContainer" parent="."]
anchor_left = 0.88329
anchor_top = 0.0790961
anchor_right = 0.991643
anchor_bottom = 0.555287
margin_bottom = -20.339
__meta__ = {
"_edit_use_anchors_": true
}
[node name="ResPctLbl" type="Label" parent="PrecentCtr"]
margin_right = 38.0
margin_bottom = 14.0
text = "1%"
[node name="ComPctLbl" type="Label" parent="PrecentCtr"]
margin_top = 18.0
margin_right = 38.0
margin_bottom = 32.0
text = "1%"
[node name="IndPctLbl" type="Label" parent="PrecentCtr"]
margin_top = 36.0
margin_right = 38.0
margin_bottom = 50.0
text = "1%"
[node name="IncomeCtr" type="HBoxContainer" parent="."]
anchor_left = 0.00707957
anchor_top = 0.650614
anchor_right = 0.973653
anchor_bottom = 0.843274
alignment = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="CoinIcn" type="TextureRect" parent="IncomeCtr"]
margin_left = 115.0
margin_right = 129.0
margin_bottom = 20.0
texture = ExtResource( 1 )
stretch_mode = 6
[node name="UpArrowIcn" type="TextureRect" parent="IncomeCtr"]
modulate = Color( 0.054902, 1, 0, 1 )
margin_left = 133.0
margin_right = 142.0
margin_bottom = 20.0
texture = ExtResource( 4 )
stretch_mode = 6
__meta__ = {
"_edit_use_anchors_": false
}
[node name="IcnomeLbl" type="Label" parent="IncomeCtr"]
margin_left = 146.0
margin_top = 3.0
margin_right = 180.0
margin_bottom = 17.0
text = "0/mo"
[node name="DownArrowIcn" type="TextureRect" parent="IncomeCtr"]
modulate = Color( 1, 0, 0, 1 )
margin_left = 184.0
margin_right = 193.0
margin_bottom = 20.0
texture = ExtResource( 3 )
stretch_mode = 6
[node name="ExpensivesLbl" type="Label" parent="IncomeCtr"]
margin_left = 197.0
margin_top = 3.0
margin_right = 231.0
margin_bottom = 17.0
text = "0/mo"
[connection signal="value_changed" from="TaxSlidersCtr/ResCtr/ResSlider" to="." method="_on_ResSlider_value_changed"]
[connection signal="value_changed" from="TaxSlidersCtr/ComCtr/ComSlider" to="." method="_on_ComSlider_value_changed"]
[connection signal="value_changed" from="TaxSlidersCtr/IndCtr/IndSlider" to="." method="_on_IndSlider_value_changed"]