Skip to content

Popup Widget Manager

Overview

UMIPPopupWidgetManager provides static helpers to push and manage popup widgets on a player controller: numeric input, message, confirmation, and item-list popups. It keeps a stack/management of active popups and can remove all or by class. FOnPopupWidgetShown notifies when a popup is shown.

Key traits:

  • Attachment: PlayerController.
  • Static API: All push/update/remove methods take APlayerController* and operate on that PC's popup manager (or create popup widgets in viewport).
  • Popup types: UMIPBasePopupWidget, UMIPNumericPopupWidget, UMIPMessagePopupWidget, UMIPConfirmationPopupWidget (with/without tag), UMIPItemListPopupWidget.

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


Key Classes & Files

Class File
UMIPPopupWidgetManager Public/PopupWidget/MIPPopupWidgetManager.h

UMIPPopupWidgetManager

  • Base: UMIPBasePlayerControllerComponent.
  • Static push: PushPopupWidget(PC, PopupWidgetClass, InMaxValue), PushNumericPopupWidget(PC, InMaxValue, AdditionalData), PushMessagePopupWidget(PC, InText), PushConfirmationPopupWidget(PC, InText, AdditionalData), PushConfirmationPopupWidgetWithTag(PC, InText, InTag), PushItemListPopupWidget(PC, InText, AdditionalData).
  • Static update/remove: UpdateItemListPopupWidget(PC, InText, AdditionalData), HandlePopupWidgetShown(PC, PopupWidget), RemoveAllPopupWidgetStatic(PC), RemoveExistingPopupWidgets(PC, InWidgetClass).
  • Delegate: OnPopupWidgetShownDelegate(UMIPBasePopupWidget*).

Integration

  • UMIPItemPickupComponent uses item list popup and confirmation for pickup flow.
  • UMIPGateManager uses confirmation popup for travel gate.
  • UMIPBasePlayerLevelBasedFeatureComponent and action progress use confirmation/popup as needed.