(One intermediate revision by the same user not shown)
Line 3:
Line 3:
|Name=Inventory Browser
|Name=Inventory Browser
}}
}}
{{stub}}
The '''InventoryBrowser''' Component is the component that handles the [[Inventory]] screen.
== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|SelectedItem|BrowserItem| The currently selected item being highlighted.
|SelectedItem|BrowserItem| The currently selected item being highlighted.
Line 19:
Line 19:
|_loadingIndicator|Slot| The slot that stores the loading indicator for a newly opened directory.
|_loadingIndicator|Slot| The slot that stores the loading indicator for a newly opened directory.
|_swapper|'''[[Component:SlideSwapRegion|SlideSwapRegion]]'''|TypeAdv11=true| The component to handle the slide animation when opening a different directory.
|_swapper|'''[[Component:SlideSwapRegion|SlideSwapRegion]]'''|TypeAdv11=true| The component to handle the slide animation when opening a different directory.
|CustomItemSpawn|{{RootFieldType|SyncDelegate`1|[[Type:Action`1|Action`1]]<[[Type:Record|Record]]>}}|TypeAdv12=true| The function to use when spawning items instead of the default one.
|_user|{{RootFieldType|UserRef}}|TypeAdv13=true|
|_user|{{RootFieldType|UserRef}}|TypeAdv13=true| The user this belongs to.
|_autoReinitialize|Bool|
|_autoReinitialize|Bool| Whether to fix issues by auto reinitializing.
|_initFunction|{{RootFieldType|SyncDelegate`1|[[Type:Func`1|Func`1]]<[[Type:RecordDirectory|RecordDirectory]]>}}|TypeAdv15=true| The function to run when initalizing.
|_currentPath|String|
|_currentPath|String| The current inventory path this is navigated to.
|_currentOwnerId|String|
|_currentOwnerId|String| The owner of this inventory screen.
|_inventoriesButton|'''[[Component:Button|Button]]'''|TypeAdv20=true| The button to go to the main inventories screen in order to go to the personal inventory or group shared inventories.
|_lastSpecialItemType|'''[[#SpecialItemType|InventoryBrowser.SpecialItemType]]'''|TypeAdv25=true| The last special item type that was selected in this inventory.
}}
== SpecialItemType ==
Every one of these map to their corrosponding [[favorite]] item. To see what components map to these enums when saved to inventory, refer to the [[favorites]] page.
{{Table EnumValues
|None|0| There is no special item.
|Avatar|1| The item is tagged as being an [[Avatar]].
|World|2| The item is tagged as being a [[World Orb]].
|VirtualKeyboard|3| The item is tagged as being a vr keyboard.
|InteractiveCamera|4| The item is tagged as being an interactive camera object like the [[Camera]].
|Facet|5| The item is tagged as being a [[Facet]] the user can put on their dash.
|AudioPlayer|6| The item is tagged as being an [[Audio Player]].
|VideoPlayer|7| The item is tagged as being a [[Video Player]].
|TextDisplay|8| The item is tagged as being a text display for pasted text.
|UrlDisplay|9| The item is tagged as being a URL display for pasted links.
|DocumentDisplay|10| The item is tagged as being a document display for PDFs and other files.
|AudioStreamController|11| The item is tagged as being an audio stream.
|ProgressBar|12| The item is tagged as being a progress bar for importing items
|WorldLoadingIndicator|13| The item is tagged as being a loading bar for loading into worlds.
|ColorDialog|14| The item is tagged as being a color dialog.
}}
}}
== Behavior ==
== Usage ==
Not used directly by the user.
== Examples ==
== Examples ==
Is used to create and manage the inventory menu and items.
The last special item type that was selected in this inventory.
SpecialItemType
Every one of these map to their corrosponding favorite item. To see what components map to these enums when saved to inventory, refer to the favorites page.