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:
authored and GitHub committed 2021-08-10 22:14:00 +02:00
1 parent 15bf1a8c81
commit c1c25aae03
5 files changed
+90 -32

No files matched your search

+2
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
+18 -1
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)
```