Class GGInventoryUIConfiguration extends Resource

Stores configuration for the inventory UI.

To use, create a resource and set its properties. then call the apply() method, and pass the UI control you want to configure. For example: [codeblock] # Instantiate a new inventory UI. var inventory_ui := GGInventoryUI.new() # Create the configuration resource and define its properties. # Typically, you'd load it from a resource. var ui_config := GGInventoryUIConfiguration.new() # Apply the configuration. ui_config.apply(inventory_ui) [/codeblock] It ensures that each property exists before attempting to configure it. This is done so that it can work with different UI scenes, as long as they follow the same naming conventions for their properties. This means it's compatible with: [GGInventoryUI], [GGInventoryBrowseUI], [GGInventoryTransferUI], [GGInventoryBrowseModal], [GGInventoryTransferModal].

# Members

var slot_scene: PackedScene = <Object>
var slot_size: Vector2 = Vector2(64, 64)
var list_item_scene: PackedScene = <Object>
var action_strategy: GGInventoryActionStrategy
var transfer_action_strategy: GGInventoryActionStrategy
var dnd_strategy: GGInventoryDndStrategy
var split_strategy: GGInventorySplitStrategy
var search_strategy: GGInventorySearchStrategy
var popover_settings: GGInventoryPopoverSettings
var view: int = 0
var grid_columns: int = 1
var scroll_container_horizontal_mode: int = 0
var scroll_container_vertical_mode: int = 1
var toolbar_visible: bool = false
var sort_button_visible: bool = false
var stack_button_visible: bool = false
var drop_all_button_visible: bool = false
var search_box_visible: bool = false
var grid_view_button_visible: bool = false
var flow_view_button_visible: bool = false
var list_view_button_visible: bool = false
var theme: Theme
var audio_theme: GGInventoryAudioTheme
var audio_theme_bindings: GGAudioThemeBindings

# Methods

## Applies the configuration to the [param control].
func apply(control: Controlmode: String) -> void