- Created Save/Load & Death Loop asset sheet detailing checkpoint, death handling, and respawn systems. - Added UI widget creation sheets for pause menu, settings menu, inventory, journal viewer, objective display, notification toast, screen effect controller, accessibility UI, diegetic HUD frame, menu flow controller, and credits screen. - Implemented HUD controller and interaction prompt display assets with detailed wiring instructions. - Established narrative systems asset sheet including components for narrative state, objectives, dialogue playback, and branching consequences. - Developed weapons, AI, and adaptive systems asset creation sheet outlining weapon base, enemy AI components, and adaptive gameplay mechanics. - Compiled meta, settings, and polish asset creation sheet covering progress tracking, achievement systems, accessibility settings, and various polish components. - Defined input actions and mapping contexts for enhanced input system, including gameplay actions and context priorities. - Created state management assets including enums, structs, data asset, and state manager component for action gating and state transitions.
1.6 KiB
1.6 KiB
WBP_InteractionPromptDisplay — Asset Implementation
UE5 Asset:
/Game/Framework/UI/WBP_InteractionPromptDisplayParent Class:UserWidget
Create This Widget
- Content Browser →
Content/Framework/UI/ - Right-click → User Interface → Widget Blueprint
- Name:
WBP_InteractionPromptDisplay
Designer Canvas
Canvas Panel
└─ Border (background, semi-transparent black)
└─ Horizontal Box
├─ Image (key icon, e.g. "E" key)
└─ Vertical Box
├─ TextBlock "PromptText" (e.g. "Pick Up")
└─ TextBlock "SubText" (e.g. "MedKit")
What to Wire
Function: ShowPrompt
Inputs: PromptText(Text), SubText(Text), KeyIcon(Texture2D), bShowHoldProgress(Boolean)
├─ Set PromptText = PromptText
├─ Set SubText = SubText
├─ Set KeyIcon = KeyIcon
├─ Branch: bShowHoldProgress?
│ True → Show HoldProgressBar
├─ Set Visibility = Visible
└─ Play Animation (FadeIn)
Function: HidePrompt
├─ Set Visibility = Hidden
└─ Stop All Animations
Function: UpdateHoldProgress
Input: Progress(0.0-1.0)
└─ HoldProgressBar → Set Percent(Progress)
Events to Handle
| Event | Action |
|---|---|
BPC_InteractionDetector.OnFocusBegin |
ShowPrompt with object data |
BPC_InteractionDetector.OnFocusEnd |
HidePrompt |
BPC_InteractionDetector.OnHoldProgress |
UpdateHoldProgress |
Test It
- Look at an interactable object → prompt appears
- Hold interact key → progress bar fills
- Look away → prompt disappears