minor changes

This commit is contained in:
Tabby 2026-01-17 18:06:34 +11:00
parent 73b9a706a3
commit f954a04c79
8 changed files with 68 additions and 22 deletions

View file

@ -12,23 +12,26 @@
[sub_resource type="Resource" id="Resource_7lgdl"]
script = ExtResource("6_7lgdl")
item_name = "Unlimited_Gaming (Kane)"
item_name = "Unlimited_Gaming"
icon = ExtResource("5_ih6pn")
custom_panel_style = ExtResource("5_ooihk")
buy_value = 0
metadata/_custom_type_script = "uid://dccraom7a7e8d"
[sub_resource type="Resource" id="Resource_qbfqv"]
script = ExtResource("6_7lgdl")
item_name = "Maxie"
item_name = "Spacey"
icon = ExtResource("8_7lgdl")
custom_panel_style = ExtResource("7_ih6pn")
buy_value = 0
metadata/_custom_type_script = "uid://dccraom7a7e8d"
[sub_resource type="Resource" id="Resource_x5q3x"]
script = ExtResource("6_7lgdl")
item_name = "Unlimited_Gaming (Kane)"
item_name = "Unlimited_Gaming"
icon = ExtResource("5_ih6pn")
custom_panel_style = ExtResource("7_ih6pn")
buy_value = 0
metadata/_custom_type_script = "uid://dccraom7a7e8d"
[sub_resource type="Resource" id="Resource_nmdnh"]
@ -36,6 +39,7 @@ script = ExtResource("6_7lgdl")
item_name = "Spantle"
icon = ExtResource("9_c6kru")
custom_panel_style = ExtResource("7_ih6pn")
buy_value = 0
metadata/_custom_type_script = "uid://dccraom7a7e8d"
[node name="Credits" type="Control"]
@ -182,3 +186,9 @@ text = "[center]Icons[/center][ul]
[url=https://www.fingers.co.in/computer-peripherals/power-protection-ups/fr--1250lcd]UPS[/url]
[url=https://simple.wikipedia.org/wiki/Compact_disc]Disc[/url]"
fit_content = true
[node name="MenuButton" type="Button" parent="MarginContainer/PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "Back to Menu"
[connection signal="pressed" from="MarginContainer/PanelContainer/MarginContainer/VBoxContainer/MenuButton" to="." method="_on_menu_button_pressed"]

View file

@ -32,14 +32,8 @@ func _process(delta: float) -> void:
func _on_reset_button_pressed() -> void:
PlayerInventory.money = 0
PlayerInventory.botnet_servers = 0
PlayerInventory.inventory_panel.empty_grid()
Clock.days_left = 6
Clock.time_left = 200
PlayerInventory.botnet.clear()
PlayerInventory.show()
Clock.show()
Locations.show()
Locations.current_location = Locations.Location.workshop
get_tree().change_scene_to_file("res://scenes/workshop.tscn")
get_tree().change_scene_to_file("res://scenes/menu.tscn")
func _on_credits_button_pressed() -> void:
get_tree().change_scene_to_file("res://scenes/credits.tscn")

View file

@ -84,8 +84,19 @@ bbcode_enabled = true
text = "[wave][color=orchid][center]Thanks for playing :3"
fit_content = true
[node name="ResetButton" type="Button" parent="MarginContainer/PanelContainer/MarginContainer/VBoxContainer"]
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "Play Again"
[connection signal="pressed" from="MarginContainer/PanelContainer/MarginContainer/VBoxContainer/ResetButton" to="." method="_on_reset_button_pressed"]
[node name="HomeButton" type="Button" parent="MarginContainer/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
text = "Return to Menu"
[node name="CreditsButton" type="Button" parent="MarginContainer/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
modulate = Color(1, 0.44313726, 1, 1)
layout_mode = 2
size_flags_horizontal = 3
text = "View Credits"
[connection signal="pressed" from="MarginContainer/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer/HomeButton" to="." method="_on_reset_button_pressed"]
[connection signal="pressed" from="MarginContainer/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer/CreditsButton" to="." method="_on_credits_button_pressed"]

View file

@ -14,8 +14,22 @@ func _process(delta: float) -> void:
func _on_play_button_pressed() -> void:
PlayerInventory.money = 0
PlayerInventory.botnet_servers = 0
PlayerInventory.inventory_panel.empty_grid()
Clock.days_left = 6
Clock.time_left = 200
PlayerInventory.botnet.clear()
PlayerInventory.show()
Clock.show()
Locations.show()
Locations.current_location = Locations.Location.workshop
get_tree().change_scene_to_file("res://scenes/workshop.tscn")
func _on_credits_button_pressed() -> void:
get_tree().change_scene_to_file("res://scenes/credits.tscn")
func _on_menu_button_pressed() -> void:
get_tree().change_scene_to_file("res://scenes/menu.tscn")

View file

@ -66,19 +66,30 @@ fit_content = true
[node name="Label" type="Label" parent="MarginContainer/PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "Your goal is to build a botnet of servers so you can take over the internet with catgirls. You have 7 days to loot the ewaste before building management realises what you're up to and you have to escape"
text = "Your goal is to build a botnet of devices so you can take over the internet with catgirls. You have 7 days to loot the ewaste before building management realises what you're up to and you have to escape"
horizontal_alignment = 1
autowrap_mode = 2
[node name="HSeparator" type="HSeparator" parent="MarginContainer/PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
[node name="PlayButton" type="Button" parent="MarginContainer/PanelContainer/MarginContainer/VBoxContainer"]
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
[node name="PlayButton" type="Button" parent="MarginContainer/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
modulate = Color(0, 1, 0, 1)
layout_mode = 2
size_flags_horizontal = 3
text = "Play!"
[node name="CreditsButton" type="Button" parent="MarginContainer/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
modulate = Color(1, 0.44313726, 1, 1)
layout_mode = 2
size_flags_horizontal = 3
text = "View Credits"
[node name="RichTextLabel3" type="RichTextLabel" parent="MarginContainer/PanelContainer/MarginContainer/VBoxContainer"]
visible = false
layout_mode = 2
bbcode_enabled = true
text = "[i]Credits[/i]
@ -89,6 +100,7 @@ Item Icons: (todo)"
fit_content = true
[node name="HSeparator2" type="HSeparator" parent="MarginContainer/PanelContainer/MarginContainer/VBoxContainer"]
visible = false
layout_mode = 2
[node name="Label2" type="Label" parent="MarginContainer/PanelContainer/MarginContainer/VBoxContainer"]
@ -96,4 +108,5 @@ layout_mode = 2
text = "tip: you can quickly move items between inventories with Shift+Click"
horizontal_alignment = 1
[connection signal="pressed" from="MarginContainer/PanelContainer/MarginContainer/VBoxContainer/PlayButton" to="." method="_on_play_button_pressed"]
[connection signal="pressed" from="MarginContainer/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer/PlayButton" to="." method="_on_play_button_pressed"]
[connection signal="pressed" from="MarginContainer/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer/CreditsButton" to="." method="_on_credits_button_pressed"]