Component:InventoryBrowser

From Resonite Wiki
Component image 
Inventory Browser component as seen in the Scene Inspector

The InventoryBrowser Component is the component that handles the Inventory screen.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't.
SelectedItem BrowserItem The currently selected item being highlighted.
_previousSelectedItem BrowserItem The item previously highlighted.
AllowSelect Bool Whether this file browser allows selecting item elements.
ItemSize Float How big the items are on the view.
_selectedText Text The text to fill with the name of the selected item.
_pathRoot Slot The root of the area being used to display the current path.
_buttonsRoot Slot The root of the area being used to show the different button actions.
_folderGrid GridLayout The grid layout Component being used to align the folders in the directory.
_itemGrid GridLayout The grid layout Component being used to align the files in the directory.
_tabSprite SpriteProvider The sprite being used to show the tab sprite.
_loadingIndicator Slot The slot that stores the loading indicator for a newly opened directory.
_swapper SlideSwapRegion The component to handle the slide animation when opening a different directory.
CustomItemSpawn delegate of identity Action`1<Record> The function to use when spawning items instead of the default one.
_user direct UserRef The user this belongs to.
_autoReinitialize Bool Whether to fix issues by auto reinitializing.
_initFunction delegate of identity Func`1<RecordDirectory> The function to run when initalizing.
_currentPath String The current inventory path this is navigated to.
_currentOwnerId String The owner of this inventory screen.
_addNewButton Button The button for adding new directories.
_deleteButton Button The button for deleting items and directories.
_inventoriesButton Button The button to go to the main inventories screen in order to go to the personal inventory or group shared inventories.
_shareButton Button The button to share folders to the public.
_unshareButton Button The button to unshare folders to the public.
_copyLink Button The button to copy the link for an item or folder.
_addCurrentAvatar Button The button to favorite the currently selected avatar
_lastSpecialItemType InventoryBrowser.SpecialItemType 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.

Values
Name Value Description
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.

Usage

Not used directly by the user.

Examples

Is used to create and manage the inventory menu and items.

See Also