Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 606 Bytes

ctrl_item_slot.md

File metadata and controls

17 lines (10 loc) · 606 Bytes

CtrlItemSlot

Inherits: Control

Description

A control node representing an inventory slot (ItemSlot).

Displays the currently equipped item with a configurable background.

Properties

  • item_slot: ItemSlot - Reference to the item slot that is being displayed.
  • icon_stretch_mode: int - Controls the item icon behavior when resizing the node's bounding rectangle. See the TextureRect.StretchMode constants for details.
  • slot_style: StyleBox - The slot background style.
  • slot_highlighted_style: StyleBox - The slot background style when the mouse cursor hovers over the slot.