Skip to content

SocketPanelUI ​

Inherits: PanelUI < Control

Socket Panel UI for managing sockets on equipment items Opens when shift+right-clicking equipment with sockets Refactored to remove ui_manager references

Properties ​

PackedScenesocket_slot_ui_scene

Variables ​

ItemInstancecurrent_equipmentnull
Array[SocketSlotUI]socket_slot_uis[]

Methods ​

voidinitialize_ui( p_system_hub: GameHost.SystemHub )
voidopen_for_equipment( equipment_item: ItemInstance )
voidclose_panel()
Stringstrip_bbcode( text: String )
ItemInstanceget_current_equipment()
boolis_panel_open()
boolis_showing_equipment( equipment_item: ItemInstance )

Property descriptions ​

PackedScene socket_slot_ui_scene ​

Custom Scenes

Variable descriptions ​

ItemInstance current_equipment = null ​

========== PROPERTIES ==========

Array[SocketSlotUI] socket_slot_uis = [] ​

The slots of the sockets shown.

Method descriptions ​

void initialize_ui( p_system_hub: GameHost.SystemHub ) ​

========== INITIALIZATION ==========

void open_for_equipment( equipment_item: ItemInstance ) ​

Open the socket panel for a specific equipment item

void close_panel() ​

Close the socket panel - overrides PanelUI's close_panel

String strip_bbcode( text: String ) ​

The text without its BBCode tags.

ItemInstance get_current_equipment() ​

========== PUBLIC GETTERS ==========

bool is_panel_open() ​

Is the panel open on an item?

bool is_showing_equipment( equipment_item: ItemInstance ) ​

Check if the panel is currently showing a specific equipment item