Re: Getting started with Unreal - lots of confusion
Posted: 27 Mar 2024, 11:22
Hi,
If you have a way to convert the char id number into some text, then you can specify a converter in the style like this:
And the log string should specify the number as the content of the style tag: "Day 1, 4h: <char>552</> has spawned"
Could something like this work for you?
If you have a way to convert the char id number into some text, then you can specify a converter in the style like this:
Code: Select all
<Style x:Key="char" TargetType="ContentControl">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ContentControl">
<TextBlock Text="{Binding Path=., Converter={StaticResource CharIdConverter}}" Foreground="DodgerBlue" FontWeight="Bold"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
Could something like this work for you?