I have a class UUDialogueHUD
that extend UUserWidget
, I also have another class SDialogueChoiceUI
that extends SCompoundWidget
. Whenever a Dialogue Choice is selected I fire off an OnClicked event. Is there any built in means of SCompoundWidget
notifying UUserWidget
an event has occurred?
Currently the event that fires off just changes the current displayed Dialogue:
FReply SDialogueChoiceUI::SelectChoice(FName id)
{
baseDialogue->NextFragment(id);
return FReply::Handled();
}
I get that I could always put all of the behaviour for selecting the next Dialogue displayed and the choices available in here, or a call to the ‘UUserWidget’ Dialogue update behaviour. That just seems like something the UUserWidget extension should be notified of when an event fires off.