View Issue Details

IDProjectCategoryView StatusLast Update
0003067NoesisGUIUnrealpublic2024-02-05 21:53
Reportermaherne Assigned Tomaherne  
PrioritynormalSeverityminor 
Status resolvedResolutionfixed 
Product Version3.2.3 
Target Version3.2.3Fixed in Version3.2.3 
Summary0003067: Allow extending Unreal RichText tags using a callback
Description

Add the ability to extend Unreal RichText tags using a callback which is invoked whenever an unknown tag is found. This method can create an Inline, which will be added to the TextBlock, or return nullptr if there is no match.

Here is an example of the callback in action:

RichText::SetTryCreateInlineCallback([](const char tagName, Noesis::ArrayRef<RichText::Parameter> parameters, const Noesis::TextBlock parent) -> Noesis::Ptr<Noesis::Inline>
{
if (Noesis::StrEquals(tagName, "run"))
{
return Noesis::MakePtr<Noesis::Run>("A run with some text");
}
return nullptr;
});

PlatformAny

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2024-02-05 21:50 maherne New Issue
2024-02-05 21:50 maherne Assigned To => maherne
2024-02-05 21:50 maherne Status new => assigned
2024-02-05 21:51 maherne Status assigned => resolved
2024-02-05 21:51 maherne Resolution open => fixed
2024-02-05 21:53 sfernandez Fixed in Version => 3.2.3
2024-02-05 21:53 sfernandez Target Version => 3.2.3