mirror of
https://github.com/tpawstdio/skyscraperrising.git
synced 2025-05-06 14:44:49 -04:00
Use generic interface names
- Default tower name is "Elecoms HQ"
This commit is contained in:
parent
c4f7bbc872
commit
68e75226e6
3 changed files with 30 additions and 21 deletions
|
@ -3,10 +3,10 @@ extends Control
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
$WelcomeDlg.show()
|
$WelcomeDlg.show()
|
||||||
$GPanel/TwrMenus/TwrNameLbl.text = TowerData.tower_name
|
$GPanel/GameMenus/NameLbl.text = TowerData.tower_name
|
||||||
|
|
||||||
func _process(delta):
|
func _process(delta):
|
||||||
# $GPanel/TwrMenus/MoneyLbl.text = str(TowerData.budget)
|
# $GPanel/GameStatus/MoneyLbl.text = str(TowerData.budget)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
func _on_WelcomeDlg_confirmed():
|
func _on_WelcomeDlg_confirmed():
|
||||||
|
|
|
@ -17,7 +17,7 @@ __meta__ = {
|
||||||
"_edit_use_anchors_": false
|
"_edit_use_anchors_": false
|
||||||
}
|
}
|
||||||
|
|
||||||
[node name="TwrMenus" type="HBoxContainer" parent="GPanel"]
|
[node name="GameMenus" type="HBoxContainer" parent="GPanel"]
|
||||||
anchor_top = 0.5
|
anchor_top = 0.5
|
||||||
anchor_bottom = 0.5
|
anchor_bottom = 0.5
|
||||||
margin_left = 3.0
|
margin_left = 3.0
|
||||||
|
@ -28,20 +28,26 @@ __meta__ = {
|
||||||
"_edit_use_anchors_": false
|
"_edit_use_anchors_": false
|
||||||
}
|
}
|
||||||
|
|
||||||
[node name="TwrNameLbl" type="Label" parent="GPanel/TwrMenus"]
|
[node name="NameLbl" type="Label" parent="GPanel/GameMenus"]
|
||||||
margin_top = 3.0
|
margin_top = 3.0
|
||||||
margin_right = 80.0
|
margin_right = 80.0
|
||||||
margin_bottom = 17.0
|
margin_bottom = 17.0
|
||||||
text = "Tower Name"
|
text = "Tower Name"
|
||||||
|
|
||||||
[node name="GameSpeed" type="MenuButton" parent="GPanel/TwrMenus"]
|
[node name="GameSpeed" type="MenuButton" parent="GPanel/GameMenus"]
|
||||||
margin_left = 84.0
|
margin_left = 84.0
|
||||||
margin_right = 177.0
|
margin_right = 177.0
|
||||||
margin_bottom = 20.0
|
margin_bottom = 20.0
|
||||||
text = "Game Speed"
|
text = "Game Speed"
|
||||||
items = [ "Slow", null, 0, false, false, 0, 0, null, "", false, "Medium", null, 0, false, false, 1, 0, null, "", false, "Fast", null, 0, false, false, 2, 0, null, "", false ]
|
items = [ "Slow", null, 0, false, false, 0, 0, null, "", false, "Medium", null, 0, false, false, 1, 0, null, "", false, "Fast", null, 0, false, false, 2, 0, null, "", false ]
|
||||||
|
|
||||||
[node name="TwrStatus" type="HBoxContainer" parent="GPanel"]
|
[node name="Disasters" type="MenuButton" parent="GPanel/GameMenus"]
|
||||||
|
margin_left = 181.0
|
||||||
|
margin_right = 253.0
|
||||||
|
margin_bottom = 20.0
|
||||||
|
text = "Disasters"
|
||||||
|
|
||||||
|
[node name="GameStatus" type="HBoxContainer" parent="GPanel"]
|
||||||
anchor_left = 1.0
|
anchor_left = 1.0
|
||||||
anchor_top = 0.5
|
anchor_top = 0.5
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
|
@ -55,14 +61,14 @@ __meta__ = {
|
||||||
"_edit_use_anchors_": false
|
"_edit_use_anchors_": false
|
||||||
}
|
}
|
||||||
|
|
||||||
[node name="CurrencyLbl" type="Label" parent="GPanel/TwrStatus"]
|
[node name="CurrencyLbl" type="Label" parent="GPanel/GameStatus"]
|
||||||
margin_left = 251.0
|
margin_left = 251.0
|
||||||
margin_top = 3.0
|
margin_top = 3.0
|
||||||
margin_right = 259.0
|
margin_right = 259.0
|
||||||
margin_bottom = 17.0
|
margin_bottom = 17.0
|
||||||
text = "$"
|
text = "$"
|
||||||
|
|
||||||
[node name="MoneyLbl" type="Label" parent="GPanel/TwrStatus"]
|
[node name="MoneyLbl" type="Label" parent="GPanel/GameStatus"]
|
||||||
margin_left = 263.0
|
margin_left = 263.0
|
||||||
margin_top = 3.0
|
margin_top = 3.0
|
||||||
margin_right = 272.0
|
margin_right = 272.0
|
||||||
|
@ -94,9 +100,9 @@ __meta__ = {
|
||||||
[node name="WelcomeLbl" type="RichTextLabel" parent="WelcomeDlg"]
|
[node name="WelcomeLbl" type="RichTextLabel" parent="WelcomeDlg"]
|
||||||
anchor_left = 0.5
|
anchor_left = 0.5
|
||||||
anchor_right = 0.5
|
anchor_right = 0.5
|
||||||
margin_left = -125.5
|
margin_left = -123.5
|
||||||
margin_top = 5.0
|
margin_top = 8.0
|
||||||
margin_right = 129.5
|
margin_right = 123.5
|
||||||
margin_bottom = 102.0
|
margin_bottom = 102.0
|
||||||
text = "Elecoms Corp. has invited you to build their next regional HQ. You've been given creative liberty over the design as long you assign an office to them."
|
text = "Elecoms Corp. has invited you to build their next regional HQ. You've been given creative liberty over the design as long you assign an office to them."
|
||||||
__meta__ = {
|
__meta__ = {
|
||||||
|
|
|
@ -11,28 +11,28 @@ __meta__ = {
|
||||||
}
|
}
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="."]
|
[node name="Label" type="Label" parent="."]
|
||||||
margin_left = 312.0
|
margin_left = 339.0
|
||||||
margin_top = 235.0
|
margin_top = 235.0
|
||||||
margin_right = 601.0
|
margin_right = 628.0
|
||||||
margin_bottom = 249.0
|
margin_bottom = 249.0
|
||||||
text = "Welcome to City Limits!"
|
text = "Welcome to Elecoms Tower!"
|
||||||
align = 1
|
align = 1
|
||||||
|
|
||||||
[node name="TwrNameEdit" type="LineEdit" parent="."]
|
[node name="TwrNameEdit" type="LineEdit" parent="."]
|
||||||
margin_left = 312.0
|
margin_left = 339.0
|
||||||
margin_top = 261.0
|
margin_top = 261.0
|
||||||
margin_right = 601.0
|
margin_right = 628.0
|
||||||
margin_bottom = 285.0
|
margin_bottom = 285.0
|
||||||
text = "City Name"
|
text = "Elecoms HQ"
|
||||||
align = 1
|
align = 1
|
||||||
__meta__ = {
|
__meta__ = {
|
||||||
"_edit_use_anchors_": false
|
"_edit_use_anchors_": false
|
||||||
}
|
}
|
||||||
|
|
||||||
[node name="BudgetMenu" type="MenuButton" parent="."]
|
[node name="BudgetMenu" type="MenuButton" parent="."]
|
||||||
margin_left = 312.0
|
margin_left = 339.0
|
||||||
margin_top = 294.0
|
margin_top = 294.0
|
||||||
margin_right = 601.0
|
margin_right = 628.0
|
||||||
margin_bottom = 314.0
|
margin_bottom = 314.0
|
||||||
text = "Starting Budget"
|
text = "Starting Budget"
|
||||||
items = [ "20000", null, 0, false, false, 0, 0, null, "", false, "10000", null, 0, false, false, 1, 0, null, "", false, "500", null, 0, false, false, 2, 0, null, "", false ]
|
items = [ "20000", null, 0, false, false, 0, 0, null, "", false, "10000", null, 0, false, false, 1, 0, null, "", false, "500", null, 0, false, false, 2, 0, null, "", false ]
|
||||||
|
@ -41,9 +41,12 @@ __meta__ = {
|
||||||
}
|
}
|
||||||
|
|
||||||
[node name="CreateBtn" type="Button" parent="."]
|
[node name="CreateBtn" type="Button" parent="."]
|
||||||
margin_left = 312.0
|
margin_left = 339.0
|
||||||
margin_top = 319.0
|
margin_top = 319.0
|
||||||
margin_right = 601.0
|
margin_right = 628.0
|
||||||
margin_bottom = 339.0
|
margin_bottom = 339.0
|
||||||
text = "Create"
|
text = "Create"
|
||||||
|
__meta__ = {
|
||||||
|
"_edit_use_anchors_": false
|
||||||
|
}
|
||||||
[connection signal="pressed" from="CreateBtn" to="." method="_on_CreateBtn_pressed"]
|
[connection signal="pressed" from="CreateBtn" to="." method="_on_CreateBtn_pressed"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue