how to do line breaks in LocalMessage text?

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

chip

New Member
Nov 14, 2002
524
0
0
Visit site
OK, my graphic design career roots are showing -- i want to break a LocalMessage text line into two stacked lines, but haven't been able to figure the characters to use to force a line break. in some instances in UT2003 you could use || to do this, but in LocalMessage that just results in || on-screen.

i couldn't find any examples in other LocalMessage subclasses -- these may break due to length but i saw no forced line breaks that i recognized as such.

any suggestions?
 

chip

New Member
Nov 14, 2002
524
0
0
Visit site
thanks, RegularX, i've come to that conclusion myself. seems a bit kludgy, but your suggestion is likely the only way to go with a LocalMessage string.
 

chip

New Member
Nov 14, 2002
524
0
0
Visit site
actually it wasn't kludgy at all, i just needed to look closer at the LocalMessage properties.

declare two (or more, probably) localized string variables in a LocalMessage subclass, and reference them in a case/switch statement (see GameMessage for an example). then in defaultproperties set the StackMode of the LocalMessage subclass to either SM_Up or SM_Down.

to display the stacked message, sequentially call ReceiveLocalizedMessage() in your PlayerController, and specify the two(or more) messages in the switch parameter of the function. when displayed, the messages automatically stack. with StackMode = SM_None, the two strings overlay one another.

i set the booleans for my LocalMessage subclass to bIsConsoleMessage = false, bIsSpecial = true and bIsUnique = false. other settings may affect how this setup works.