Optimized item and background signal handling (#365)

Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
Co-authored-by: dploeger <dploeger@users.noreply.github.com>
This commit is contained in:
Dennis Ploeger
2021-08-10 22:14:00 +02:00
committed by GitHub
parent 15bf1a8c81
commit c1c25aae03
5 changed files with 90 additions and 32 deletions

View File

@@ -69,3 +69,5 @@ Texture or set size
#### Parameters
- position: The position where the player clicked
- signal mouse_wheel_up(): Emitted when the mouse wheel was turned up
- signal mouse_wheel_down(): Emitted when the mouse wheel was turned down

View File

@@ -53,4 +53,21 @@ A LIFO stack of hovered items
var hotspot_focused: String = ""
```
The global id fo the topmost item from the hover_stack
The global id fo the topmost item from the hover_stack
## Method Descriptions
### register\_inventory\_item
```gdscript
func register_inventory_item(item: Node)
```
Connect the item signals to the local methods
### register\_background
```gdscript
func register_background(background: ESCBackground)
```