Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
inventory [2019/04/10 08:56] – [Manufacturer] admininventory [2020/06/02 13:21] – [Inventory-Designer] admin
Line 133: Line 133:
   LMan.ResultItem.Template := LFire;   LMan.ResultItem.Template := LFire;
 </file> </file>
 +
 +=== 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;
 +</file>
 +
 +The Manufacture() method will then not start an async thread for construction, instead it will directly build the new item.
  
 === Up-/Downgrading === === Up-/Downgrading ===
Line 214: Line 224:
 <file pascal> <file pascal>
 FInventory.Language := GORILLA_LANG_EN_US; FInventory.Language := GORILLA_LANG_EN_US;
 +FIFrame.UpdateInventory();
 </file> </file>
  
 Currently supported languages are: Currently supported languages are:
  
-^Language ^ID ^ +^ID ^Language 
-| english | GORILLA_LANG_EN_US +| GORILLA_LANG_EN_US | english | 
-| english | GORILLA_LANG_EN_UK +GORILLA_LANG_EN_UK english 
-german GORILLA_LANG_DE_DE +| GORILLA_LANG_DE_DE | german | 
-| german | GORILLA_LANG_DE_AT +| GORILLA_LANG_DE_AT | german 
-| german | GORILLA_LANG_DE_CH |+| GORILLA_LANG_DE_CH | german |
 ==== Collect ==== ==== Collect ====
  
Line 349: 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 ** [Gorilla.UI.Inventory] component to build your own user-interface. 
 + 
 +^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. | 
 +| TInventoryCollectedItem | A custom collected item component. Use this component as basis for all of your collected items. |
 ==== Inventory-Designer ==== ==== Inventory-Designer ====
  
Line 361: Line 377:
 The tool provides a sandbox mode, where you can test your item and manufacturer settings directly. The tool provides a sandbox mode, where you can test your item and manufacturer settings directly.
  
-Inventory-Files are also supported in AssetsManager packages, so you add those to your application package without extra file handling.+Inventory-Files are also supported in AssetsManager packages. 
 + 
 +Next step: [[dialogues|Dialogues]]