Add inventory and logbook player menu

This commit is contained in:
Alexander Sellite 2026-07-25 16:02:34 -04:00
parent bd2768b676
commit ad89c22cca
12 changed files with 719 additions and 50 deletions

View file

@ -1,9 +1,12 @@
extends Node3D
const FishingSpotType = preload("res://fishing/fishing_spot.gd")
const FishPoolType = preload("res://fish/fish_pool.gd")
const GameUIType = preload("res://ui/game_ui.gd")
const PlayerType = preload("res://player/player.gd")
@export var fish_catalog: FishPoolType
@onready var _player: PlayerType = %Player
@onready var _fishing_spot: FishingSpotType = %FishingSpot
@onready var _game_ui: GameUIType = %GameUI
@ -15,4 +18,10 @@ func _ready() -> void:
_player.inventory,
_player.collection_log
)
_game_ui.setup(_player.inventory, _fishing_spot)
_game_ui.setup(
_player,
_player.inventory,
_player.collection_log,
fish_catalog,
_fishing_spot
)

View file

@ -1,13 +1,15 @@
[gd_scene load_steps=6 format=3]
[gd_scene load_steps=7 format=3]
[ext_resource type="PackedScene" path="res://world/test_world.tscn" id="1_world"]
[ext_resource type="PackedScene" path="res://player/player.tscn" id="2_player"]
[ext_resource type="Script" path="res://main/main.gd" id="3_main"]
[ext_resource type="PackedScene" path="res://fishing/fishing_spot.tscn" id="4_spot"]
[ext_resource type="PackedScene" path="res://ui/game_ui.tscn" id="5_ui"]
[ext_resource type="Resource" path="res://fish/pools/test_water_pool.tres" id="6_pool"]
[node name="Main" type="Node3D"]
script = ExtResource("3_main")
fish_catalog = ExtResource("6_pool")
[node name="TestWorld" parent="." instance=ExtResource("1_world")]