Skip to content

Widget Component

Overview

UMIPClientWidgetsManagerComponent is the client-side manager for UI widgets: toggleable panels (inventory, equipment, storage, quest, abilities, etc.), NPC interaction/dialogue, death screen, tooltips, world info, and notifications. It handles show/hide by tag, ESC to close, and binding widgets to interaction/NPC state.

Key traits:

  • Attachment: PlayerController (client).
  • Toggleable widgets: Open/close by FGameplayTag; ESC handling; show on NPC interaction with optional auto-close binding.
  • References: Holds or creates refs to inventory container, equipment container, quick bar, storage, repair/enhance widgets, quest UI, ability UI, tooltips, death widget, main widget, etc.

All paths below are relative to Plugins/ModularInventoryPlus/Source/ModularInventoryPlus/.


Key Classes & Files

Class File
UMIPClientWidgetsManagerComponent Public/Widget/Component/MIPClientWidgetsManagerComponent.h

UMIPClientWidgetsManagerComponent

  • Base: UMIPClientPlayerControllerComponent.
  • API (examples): OnESCPressed(), TryToggleWidgetWithTag(InTag), ShowWidgetsOnInteractionWithNPC(InInteractionTag, bInAutoBindAsClosingWidget, InVisibility). Getters for specific widget types (inventory, equipment, storage, popup, tooltip, etc.) as needed by input or other systems.
  • Delegate: FOnWidgetVisiblityUpdated(Widget).
  • Integration: UMIPEnhancedInputComponent calls toggleable widget input with tag; UMIPInteractionComponent and NPC flow trigger show/hide; UMIPPopupWidgetManager for popups.

Integration

  • Input: UMIPEnhancedInputComponent uses this component to open/close panels by tag.
  • UMIPStoragesManagerComponent, UMIPBaseQuestComponent, UMIPNPCInteractionManager – UI panels for storage, quest, NPC dialogue.
  • UMIPItemTooltipContainerWidget and item slot widgets – tooltip display.