StackView
Inherits: Button
Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
Settings | StackViewSettings | |
SelectedAmount | int |
Methods
Section titled “Methods”_Notification
Section titled “_Notification”void _Notification(int what)_Ready
Section titled “_Ready”void _Ready()_UnhandledInput
Section titled “_UnhandledInput”void _UnhandledInput(InputEvent @event)else if(@event.IsActionPressed(ActionSettings.Decrease)SetCountText
Section titled “SetCountText”void SetCountText(string text)SetItemDisplay
Section titled “SetItemDisplay”void SetItemDisplay(Texture2D? iconTexture, string tooltip)Set the IconTexture and the Tooltip on the StackView
Parameters:
iconTexture-tooltip-
_CanDropData
Section titled “_CanDropData”bool _CanDropData(Vector2 atPosition, Variant data)_GetDragData
Section titled “_GetDragData”Variant _GetDragData(Vector2 atPosition)CreateDragPreview
Section titled “CreateDragPreview”Control CreateDragPreview(DraggedStack dragData)SetItemDisplay
Section titled “SetItemDisplay”void SetItemDisplay(object? icon, string name)_DropData
Section titled “_DropData”void _DropData(Vector2 atPosition, Variant data)OnMouseEntered
Section titled “OnMouseEntered”void OnMouseEntered()OnMouseExited
Section titled “OnMouseExited”void OnMouseExited()Validate
Section titled “Validate”ValidationResult Validate()