You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
207 lines
6.2 KiB
207 lines
6.2 KiB
[gd_scene load_steps=4 format=2]
|
|
|
|
[ext_resource path="res://prefabs/grid/grid.tscn" type="PackedScene" id=1]
|
|
[ext_resource path="res://scenes/game/game.gd" type="Script" id=2]
|
|
[ext_resource path="res://scenes/game/game_info_ui.gd" type="Script" id=3]
|
|
|
|
[node name="Game" type="Node2D"]
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="Grid" parent="." instance=ExtResource( 1 )]
|
|
|
|
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
|
|
|
[node name="Control" type="Control" parent="CanvasLayer"]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
margin_left = 10.0
|
|
margin_top = 10.0
|
|
margin_right = -10.0
|
|
margin_bottom = -10.0
|
|
mouse_filter = 2
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/Control"]
|
|
anchor_left = 1.0
|
|
anchor_right = 1.0
|
|
margin_left = -373.0
|
|
margin_bottom = 188.0
|
|
|
|
[node name="TurnLabel" type="Label" parent="CanvasLayer/Control/VBoxContainer"]
|
|
margin_right = 373.0
|
|
margin_bottom = 14.0
|
|
text = "TURN: ####"
|
|
align = 2
|
|
|
|
[node name="CountryMoneyLabel" type="Label" parent="CanvasLayer/Control/VBoxContainer"]
|
|
margin_top = 18.0
|
|
margin_right = 373.0
|
|
margin_bottom = 32.0
|
|
text = "?????$"
|
|
align = 2
|
|
|
|
[node name="StockPriceLabel" type="Label" parent="CanvasLayer/Control/VBoxContainer"]
|
|
margin_top = 36.0
|
|
margin_right = 373.0
|
|
margin_bottom = 50.0
|
|
text = "STOCK PRICE: ?????$"
|
|
align = 2
|
|
|
|
[node name="BuyFactory" type="Button" parent="CanvasLayer/Control/VBoxContainer"]
|
|
margin_top = 54.0
|
|
margin_right = 373.0
|
|
margin_bottom = 74.0
|
|
toggle_mode = true
|
|
text = "Buy factory"
|
|
|
|
[node name="BuyArmy" type="Button" parent="CanvasLayer/Control/VBoxContainer"]
|
|
margin_top = 78.0
|
|
margin_right = 373.0
|
|
margin_bottom = 98.0
|
|
toggle_mode = true
|
|
text = "Buy army"
|
|
|
|
[node name="BuyBoat" type="Button" parent="CanvasLayer/Control/VBoxContainer"]
|
|
margin_top = 102.0
|
|
margin_right = 373.0
|
|
margin_bottom = 122.0
|
|
toggle_mode = true
|
|
text = "Buy boat"
|
|
|
|
[node name="PayDividends" type="Button" parent="CanvasLayer/Control/VBoxContainer"]
|
|
margin_top = 126.0
|
|
margin_right = 373.0
|
|
margin_bottom = 146.0
|
|
text = "Pay dividends"
|
|
|
|
[node name="CountryProposal" type="HBoxContainer" parent="CanvasLayer/Control/VBoxContainer"]
|
|
margin_top = 150.0
|
|
margin_right = 373.0
|
|
margin_bottom = 170.0
|
|
|
|
[node name="Label" type="Label" parent="CanvasLayer/Control/VBoxContainer/CountryProposal"]
|
|
margin_top = 3.0
|
|
margin_right = 288.0
|
|
margin_bottom = 17.0
|
|
size_flags_horizontal = 3
|
|
text = "Current Proposal: "
|
|
|
|
[node name="ProposalMinus1" type="Button" parent="CanvasLayer/Control/VBoxContainer/CountryProposal"]
|
|
margin_left = 292.0
|
|
margin_right = 317.0
|
|
margin_bottom = 20.0
|
|
toggle_mode = true
|
|
text = "-1"
|
|
|
|
[node name="ProposalZero" type="Button" parent="CanvasLayer/Control/VBoxContainer/CountryProposal"]
|
|
margin_left = 321.0
|
|
margin_right = 341.0
|
|
margin_bottom = 20.0
|
|
toggle_mode = true
|
|
pressed = true
|
|
text = "0"
|
|
|
|
[node name="ProposalPlus1" type="Button" parent="CanvasLayer/Control/VBoxContainer/CountryProposal"]
|
|
margin_left = 345.0
|
|
margin_right = 373.0
|
|
margin_bottom = 20.0
|
|
toggle_mode = true
|
|
text = "+1"
|
|
|
|
[node name="Stocks" type="GridContainer" parent="CanvasLayer/Control/VBoxContainer"]
|
|
margin_top = 174.0
|
|
margin_right = 373.0
|
|
margin_bottom = 188.0
|
|
columns = 7
|
|
|
|
[node name="Label" type="Label" parent="CanvasLayer/Control/VBoxContainer/Stocks"]
|
|
margin_right = 38.0
|
|
margin_bottom = 14.0
|
|
text = "Name"
|
|
|
|
[node name="Label2" type="Label" parent="CanvasLayer/Control/VBoxContainer/Stocks"]
|
|
margin_left = 42.0
|
|
margin_right = 112.0
|
|
margin_bottom = 14.0
|
|
text = "Stock Price"
|
|
|
|
[node name="Label3" type="Label" parent="CanvasLayer/Control/VBoxContainer/Stocks"]
|
|
margin_left = 116.0
|
|
margin_right = 157.0
|
|
margin_bottom = 14.0
|
|
text = "Stocks"
|
|
|
|
[node name="Label4" type="Label" parent="CanvasLayer/Control/VBoxContainer/Stocks"]
|
|
margin_left = 161.0
|
|
margin_right = 185.0
|
|
margin_bottom = 14.0
|
|
text = "Buy"
|
|
|
|
[node name="Label5" type="Label" parent="CanvasLayer/Control/VBoxContainer/Stocks"]
|
|
margin_left = 189.0
|
|
margin_right = 212.0
|
|
margin_bottom = 14.0
|
|
text = "Sell"
|
|
|
|
[node name="Label6" type="Label" parent="CanvasLayer/Control/VBoxContainer/Stocks"]
|
|
margin_left = 216.0
|
|
margin_right = 271.0
|
|
margin_bottom = 14.0
|
|
text = "Proposal"
|
|
|
|
[node name="Label7" type="Label" parent="CanvasLayer/Control/VBoxContainer/Stocks"]
|
|
margin_left = 275.0
|
|
margin_right = 349.0
|
|
margin_bottom = 14.0
|
|
text = "Acceptance"
|
|
|
|
[node name="EndTurnButton" type="Button" parent="CanvasLayer/Control"]
|
|
anchor_left = 1.0
|
|
anchor_top = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
margin_left = -79.0
|
|
margin_top = -40.0
|
|
text = "END TURN"
|
|
|
|
[node name="ControllerLabel" type="Label" parent="CanvasLayer/Control"]
|
|
anchor_left = 0.5
|
|
anchor_right = 0.5
|
|
margin_left = -42.0
|
|
margin_right = 42.0
|
|
margin_bottom = 14.0
|
|
text = "CONTROLLER"
|
|
|
|
[node name="Winner" type="Label" parent="CanvasLayer/Control"]
|
|
visible = false
|
|
modulate = Color( 1, 0.72549, 0, 1 )
|
|
anchor_left = 0.5
|
|
anchor_top = 1.0
|
|
anchor_right = 0.5
|
|
anchor_bottom = 1.0
|
|
margin_left = -192.0
|
|
margin_top = -56.0
|
|
margin_right = -93.0
|
|
margin_bottom = -42.0
|
|
rect_scale = Vector2( 4, 4 )
|
|
text = "Player X Wins!!!"
|
|
|
|
[node name="GameInfoUI" type="GridContainer" parent="CanvasLayer/Control"]
|
|
anchor_left = 1.0
|
|
anchor_top = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
margin_left = -485.0
|
|
margin_top = -324.0
|
|
margin_bottom = -45.0
|
|
columns = 9
|
|
script = ExtResource( 3 )
|
|
|
|
[connection signal="tile_pressed" from="Grid" to="." method="_on_Grid_tile_pressed"]
|
|
[connection signal="pressed" from="CanvasLayer/Control/VBoxContainer/BuyFactory" to="." method="_on_BuyFactory_pressed"]
|
|
[connection signal="pressed" from="CanvasLayer/Control/VBoxContainer/BuyArmy" to="." method="_on_BuyArmy_pressed"]
|
|
[connection signal="pressed" from="CanvasLayer/Control/VBoxContainer/BuyBoat" to="." method="_on_BuyBoat_pressed"]
|
|
[connection signal="pressed" from="CanvasLayer/Control/VBoxContainer/PayDividends" to="." method="_on_PayDividends_pressed"]
|
|
[connection signal="pressed" from="CanvasLayer/Control/VBoxContainer/CountryProposal/ProposalMinus1" to="." method="_on_ProposalMinus1_pressed"]
|
|
[connection signal="pressed" from="CanvasLayer/Control/VBoxContainer/CountryProposal/ProposalZero" to="." method="_on_ProposalZero_pressed"]
|
|
[connection signal="pressed" from="CanvasLayer/Control/VBoxContainer/CountryProposal/ProposalPlus1" to="." method="_on_ProposalPlus1_pressed"]
|
|
[connection signal="pressed" from="CanvasLayer/Control/EndTurnButton" to="." method="_on_EndTurnButton_pressed"]
|
|
|