Lyra Dialog System - barsandcat/HMS-Sunflower GitHub Wiki

Idea is to recrate ui functionality of lyra in separate project. Settings, menu, popups.

We already have popup code pass started.

New warning!

Well now it silently fails because there is no Modal layout to push window to. Witch is a shame - it should fail with particular warning!

New warning! Ensure condition failed: ActivatableWidgetClass && LayerPrimaryGameLayout.h

Architecture: https://dev.epicgames.com/documentation/en-us/unreal-engine/common-ui-quickstart-guide-for-unreal-engine Input: There is "action" defenitions for common game There is mapping of common "actions" to ... some kind of default actions for input handling by button? This part I do not understand.

Actual feature: provides interface to show dialog and get response from it UAsyncAction_ShowConfirmation UMyCommonMessagingSubsystem ConfirmationDialogClass ErrorDialogClass

UI Policy UMyGameUIManagerSubsystem - system to change ui policy. What is ui policy? Well it does knows about players. It is a support for split screen!! More inmportantly, it is where ui widgets live! CurrentPolicy RootViewportLayouts ~ UPrimaryGameLayout -- UI Widgets: actually work to show dialog, handle input UPrimaryGameLayout - just container DefaultGameplayTags.ini +GameplayTagList=(Tag="UI.Layer.Game",DevComment="") +GameplayTagList=(Tag="UI.Layer.GameMenu",DevComment="") +GameplayTagList=(Tag="UI.Layer.Menu",DevComment="") +GameplayTagList=(Tag="UI.Layer.Modal",DevComment="") UPrimaryGameLayout::RegisterLayer(Layer, Tag) UMyCommonGameDialog Initializes dialog, creates buttons corresponding to default actions UPROPERTY(Meta = (BindWidget)) Text_Title RichText_Description EntryBox_Buttons Border_TapToCloseZone UMyCommonButtonBase UpdateButtonText UMyCommonActionWidget

Result: pop up dialog working.

⚠️ **GitHub.com Fallback** ⚠️