fixed interaction bar

tweaking resource_manager.gd
This commit is contained in:
2024-03-07 09:46:41 -06:00
parent ca8cfee1e8
commit 856b6a0400
11 changed files with 59 additions and 34 deletions

View File

@@ -36,6 +36,7 @@ size_flags_horizontal = 3
[node name="BuildingGroups" type="ItemList" parent="MarginContainer/PanelContainer/HBoxContainer/ScrollContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
allow_search = false
auto_height = true
[node name="ScrollContainer2" type="ScrollContainer" parent="MarginContainer/PanelContainer/HBoxContainer"]

View File

@@ -3,12 +3,7 @@
[ext_resource type="Script" path="res://scripts/interaction_bar.gd" id="1_qwnlc"]
[node name="InteractionBar" type="ProgressBar"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_right = -1092.0
offset_bottom = -628.0
grow_horizontal = 2
grow_vertical = 2
offset_right = 60.0
offset_bottom = 20.0
show_percentage = false
script = ExtResource("1_qwnlc")

View File

@@ -82,7 +82,6 @@ size = Vector2(40, 45)
[node name="Player" type="CharacterBody2D"]
motion_mode = 1
script = ExtResource("1_j0htm")
SPEED = null
[node name="Sprite" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_tj1nq")

View File

@@ -1,11 +1,10 @@
[gd_scene load_steps=12 format=3 uid="uid://m0us5xqa3gnk"]
[gd_scene load_steps=11 format=3 uid="uid://m0us5xqa3gnk"]
[ext_resource type="Script" path="res://scripts/world.gd" id="1_yf6q1"]
[ext_resource type="Resource" uid="uid://dr00rd4f42jqe" path="res://data/game_resources/gem/gem_resource.tres" id="2_rn4a2"]
[ext_resource type="TileSet" uid="uid://d1sh6dy2w10b0" path="res://data/scifi_tileset.tres" id="2_sa7dm"]
[ext_resource type="Resource" uid="uid://bpjj0x7jr1k6u" path="res://data/game_resources/carbon/carbon_resource.tres" id="3_pq6ic"]
[ext_resource type="Script" path="res://scripts/building_manager.gd" id="4_61js3"]
[ext_resource type="Script" path="res://scripts/resource_manager.gd" id="5_k5643"]
[ext_resource type="Texture2D" uid="uid://n806c03hgaq1" path="res://assets/scifi_tilesheet@2.png" id="5_qhth7"]
[ext_resource type="Script" path="res://scripts/gui.gd" id="6_yuatk"]
@@ -41,13 +40,6 @@ layer_4/tile_data = PackedInt32Array()
[node name="BuildingManager" type="Node2D" parent="."]
script = ExtResource("4_61js3")
[node name="ResourceManager" type="Node2D" parent="."]
script = ExtResource("5_k5643")
[node name="Timer" type="Timer" parent="ResourceManager"]
wait_time = 5.0
autostart = true
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="GUI" type="Control" parent="CanvasLayer"]
@@ -146,6 +138,3 @@ other info here too"
layout_mode = 2
size_flags_horizontal = 3
size_flags_stretch_ratio = 2.0
[connection signal="changed_resource" from="ResourceManager" to="CanvasLayer/GUI" method="_on_resource_manager_changed_resource"]
[connection signal="timeout" from="ResourceManager/Timer" to="ResourceManager" method="_on_timer_timeout"]