Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
inventory [2019/04/10 09:02] – [UserInterface] admin | inventory [2020/06/02 13:21] – [Inventory-Designer] admin | ||
---|---|---|---|
Line 133: | Line 133: | ||
LMan.ResultItem.Template := LFire; | LMan.ResultItem.Template := LFire; | ||
</ | </ | ||
+ | |||
+ | === Combining === | ||
+ | Combining items works the same way like crafting. The only difference is the used time. While crafting expects a predefined time span, combining should work immediatly. | ||
+ | |||
+ | So simply set TimeNeeded property on manufacturer construction to less-equal zero. | ||
+ | <file pascal> | ||
+ | LMan.TimeNeeded := 0; | ||
+ | </ | ||
+ | |||
+ | The Manufacture() method will then not start an async thread for construction, | ||
=== Up-/ | === Up-/ | ||
Line 219: | Line 229: | ||
Currently supported languages are: | Currently supported languages are: | ||
- | ^Language | + | ^ID ^Language |
- | | english | + | | GORILLA_LANG_EN_US | english | |
- | | english | + | | GORILLA_LANG_EN_UK |
- | | german | + | | GORILLA_LANG_DE_DE |
- | | german | + | | GORILLA_LANG_DE_AT |
- | | german | GORILLA_LANG_DE_CH | | + | | GORILLA_LANG_DE_CH |
==== Collect ==== | ==== Collect ==== | ||
Line 350: | Line 360: | ||
The inventory component is a non-visual component which needs an user-interface to make your items visible. | The inventory component is a non-visual component which needs an user-interface to make your items visible. | ||
- | You can extend the **TInventoryFrame** [Gorilla.UI.Inventory] component to build your own user-interface. | + | You can extend the **TInventoryFrame, TInventoryGroup and TInventoryCollectedItem |
^Class ^Description ^ | ^Class ^Description ^ | ||
+ | | TInventoryFrame | A custom inventory frame component to manage a inventory system. | | ||
| TInventoryGroup | A inventory grouping component. Use this component to categorize your collected items into groups. | | | TInventoryGroup | A inventory grouping component. Use this component to categorize your collected items into groups. | | ||
| TInventoryCollectedItem | A custom collected item component. Use this component as basis for all of your collected items. | | | TInventoryCollectedItem | A custom collected item component. Use this component as basis for all of your collected items. | | ||
- | | TInventoryFrame | A custom inventory frame component to manage a inventory system. | | ||
==== Inventory-Designer ==== | ==== Inventory-Designer ==== | ||
Line 368: | Line 378: | ||
Inventory-Files are also supported in AssetsManager packages. | Inventory-Files are also supported in AssetsManager packages. | ||
+ | |||
+ | Next step: [[dialogues|Dialogues]] |