feature complete prototype almost done!
This commit is contained in:
parent
93cc1a8c59
commit
af8662fd6a
21 changed files with 327 additions and 41 deletions
|
|
@ -111,26 +111,28 @@ anchor_left = 0.5
|
|||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -74.0
|
||||
offset_top = -15.5
|
||||
offset_right = 74.0
|
||||
offset_bottom = 15.5
|
||||
offset_left = 245.0
|
||||
offset_top = -32.0
|
||||
offset_right = 393.0
|
||||
offset_bottom = 22.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
text = "Loot E-waste bins!"
|
||||
text = "Loot E-waste bins!
|
||||
(Uses 10 time)"
|
||||
|
||||
[node name="ReturnButton" type="Button" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 7
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -81.0
|
||||
offset_top = -31.0
|
||||
offset_top = -15.5
|
||||
offset_right = 81.0
|
||||
offset_bottom = 15.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
grow_vertical = 2
|
||||
text = "Return to workshop"
|
||||
|
||||
[connection signal="pressed" from="LootButton" to="." method="_on_loot_button_pressed"]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,8 @@
|
|||
extends Control
|
||||
|
||||
@export var sell_panel : Inventory
|
||||
@export var botnet_panel : Inventory
|
||||
@export var workshop_button : Button
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
|
|
@ -8,6 +11,7 @@ func _ready() -> void:
|
|||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
workshop_button.disabled = sell_panel.filled_slots() > 0 or botnet_panel.filled_slots() > 0
|
||||
pass
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,12 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://cu2yyw3f2avub"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://cu2yyw3f2avub"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cq6xhdlib6c50" path="res://scenes/room.gd" id="1_8pqrt"]
|
||||
[ext_resource type="Texture2D" uid="uid://crdbk8wkw63k0" path="res://assets/computer.png" id="1_om4aa"]
|
||||
[ext_resource type="PackedScene" uid="uid://cqqpf7fca5nk1" path="res://inv_system/sell_panel.tscn" id="3_85yof"]
|
||||
[ext_resource type="Script" uid="uid://bxdc7rrd22mlr" path="res://shop/meowbay.gd" id="4_jxe34"]
|
||||
[ext_resource type="PackedScene" uid="uid://nfd41hcidmju" path="res://inv_system/botnet/botnet_panel.tscn" id="5_jxe34"]
|
||||
|
||||
[node name="room" type="Control"]
|
||||
[node name="room" type="Control" node_paths=PackedStringArray("sell_panel", "botnet_panel", "workshop_button")]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
|
|
@ -14,6 +15,9 @@ grow_horizontal = 2
|
|||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
script = ExtResource("1_8pqrt")
|
||||
sell_panel = NodePath("SellPanel")
|
||||
botnet_panel = NodePath("BotnetPanel")
|
||||
workshop_button = NodePath("GotoWorkshop")
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
|
|
@ -27,11 +31,18 @@ texture = ExtResource("1_om4aa")
|
|||
expand_mode = 3
|
||||
|
||||
[node name="GotoWorkshop" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 508.0
|
||||
offset_top = 591.0
|
||||
offset_right = 635.0
|
||||
offset_bottom = 622.0
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -63.5
|
||||
offset_top = -15.5
|
||||
offset_right = 63.5
|
||||
offset_bottom = 15.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
text = "Goto workshop"
|
||||
|
||||
[node name="SellPanel" parent="." instance=ExtResource("3_85yof")]
|
||||
|
|
@ -68,4 +79,11 @@ layout_mode = 2
|
|||
size_flags_horizontal = 3
|
||||
columns = 2
|
||||
|
||||
[node name="BotnetPanel" parent="." instance=ExtResource("5_jxe34")]
|
||||
layout_mode = 0
|
||||
offset_left = 441.0
|
||||
offset_top = 417.0
|
||||
offset_right = 702.0
|
||||
offset_bottom = 618.0
|
||||
|
||||
[connection signal="pressed" from="GotoWorkshop" to="." method="_on_goto_workshop_pressed"]
|
||||
|
|
|
|||
|
|
@ -29,19 +29,26 @@ texture = ExtResource("1_d7fqo")
|
|||
expand_mode = 3
|
||||
|
||||
[node name="GotoEwaste" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 611.0
|
||||
offset_top = 469.0
|
||||
offset_right = 757.0
|
||||
offset_bottom = 500.0
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -73.0
|
||||
offset_top = -57.0
|
||||
offset_right = 73.0
|
||||
offset_bottom = -26.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
text = "Go to ewaste bins"
|
||||
|
||||
[node name="GotoComputer" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 614.0
|
||||
offset_top = 522.0
|
||||
offset_right = 760.0
|
||||
offset_bottom = 553.0
|
||||
offset_left = 500.0
|
||||
offset_top = 328.0
|
||||
offset_right = 646.0
|
||||
offset_bottom = 359.0
|
||||
text = "Go to room"
|
||||
|
||||
[node name="CraftingPanel" parent="." instance=ExtResource("2_wwo6w")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue