-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
114 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<!-- Auto-generated from JSON by GDScript docs maker. Do not edit this document directly. --> | ||
|
||
# ESCInventoryButton | ||
|
||
**Extends:** [TextureButton](../TextureButton) | ||
|
||
## Description | ||
|
||
The inventory representation of an ESC item if pickable (only used by | ||
the inventory components) | ||
|
||
## Property Descriptions | ||
|
||
### global\_id | ||
|
||
```gdscript | ||
var global_id: String = "" | ||
``` | ||
|
||
Global ID of the ESCItem that uses this ESCInventoryItem | ||
|
||
## Method Descriptions | ||
|
||
### \_init | ||
|
||
```gdscript | ||
func _init(p_item: ESCInventoryItem) -> void | ||
``` | ||
|
||
## Signals | ||
|
||
- signal mouse_left_inventory_item(item_id): Signal emitted when the item was left clicked | ||
|
||
#### Parameters | ||
|
||
- item_id: Global ID of the clicked item | ||
- signal mouse_right_inventory_item(item_id): Signal emitted when the item was right clicked | ||
|
||
#### Parameters | ||
|
||
- item_id: Global ID of the clicked item | ||
- signal mouse_double_left_inventory_item(item_id): Signal emitted when the item was double clicked | ||
|
||
#### Parameters | ||
|
||
- item_id: Global ID of the clicked item | ||
- signal inventory_item_focused(item_id): Signal emitted when the item was focused | ||
|
||
#### Parameters | ||
|
||
- item_id: Global ID of the clicked item | ||
- signal inventory_item_unfocused(): Signal emitted when the item is not focused anymore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!-- Auto-generated from JSON by GDScript docs maker. Do not edit this document directly. --> | ||
|
||
# ESCInventoryContainer | ||
|
||
**Extends:** [Control](../Control) | ||
|
||
## Description | ||
|
||
Inventory container handler that acts as a base for UIs inventory containers | ||
|
||
## Method Descriptions | ||
|
||
### is\_empty | ||
|
||
```gdscript | ||
func is_empty() -> bool | ||
``` | ||
|
||
Get wether the inventory container currently is empty | ||
**Returns** Wether the container is empty or not | ||
|
||
### add\_item | ||
|
||
```gdscript | ||
func add_item(inventory_item: ESCInventoryItem) -> ESCInventoryButton | ||
``` | ||
|
||
Add a new item into the container and return the control generated for it | ||
so its events can be handled by the inputs manager | ||
|
||
#### Parameters | ||
- inventory_item: Item to add | ||
**Returns** The button generated for the item | ||
|
||
### remove\_item | ||
|
||
```gdscript | ||
func remove_item(inventory_item: ESCInventoryItem) | ||
``` | ||
|
||
Remove an item from the container | ||
|
||
#### Parameters | ||
- inventory_item: Item to remove |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters