Skip to content

Frontend Popup Manager (API)

Overview

UMIPFrontendPopupManager is a small API component for managing frontend/loading popups: it tracks show/hide count per widget class so multiple systems can request "show" and the widget only hides when the count returns to zero. ToggleNowLoadingScreenWidget(PC, InAddCount) is the main entry: use 1 to add count and show, -1 to decrement and try hide, 0 to force hide. Internal map WidgetClassShownCalledMap stores TSubclassOfFMIPWidgetCountInfo (Widget instance, Count).

Key traits:

  • Attachment: Any actor (often PlayerController or a frontend manager actor).
  • Static API: ToggleNowLoadingScreenWidget(PC, InAddCount). Generic internal: ToggleWidgetShownCountInternal(PC, InWidgetClass, InAddCount).

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


Key Classes & Files

Class File
UMIPFrontendPopupManager Public/API/MIPFrontendPopupManager.h

UMIPFrontendPopupManager

  • Base: UActorComponent.
  • Struct: FMIPWidgetCountInfo – Widget (UUserWidget*), Count (int32).
  • API: ToggleNowLoadingScreenWidget(PC, InAddCount) – static; InAddCount: 1 = show/add, -1 = hide/decrement, 0 = force hide.
  • Use case: Loading screen: multiple subsystems call with 1 when starting async work, -1 when done; widget stays visible until all have decremented (or force 0 for cleanup).