Home   Help Search Login Register  

Author Topic: Newline in dialogs?  (Read 672 times)

0 Members and 1 Guest are viewing this topic.

Offline Gadjuka

  • Members
  • *
  • Programmer
    • Operation Flashpoint: Commander
Newline in dialogs?
« on: 20 Jun 2005, 00:27:07 »
Hi!
Does anyone know if it's possible to have newlines in a text-field in a dialog? I have tried the usual "\n" but it is just written out as \n instead of making a line break.
Is there a way? I rather not split up the string in several text-fields... ???
« Last Edit: 20 Jun 2005, 00:28:24 by Gadjuka »
Currently working on Operation Flashpoint: Commander.
Website: http://www.nordserver.se/commander/

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Newline in dialogs?
« Reply #1 on: 20 Jun 2005, 01:04:39 »
It is \n is it......or is it /n.......I can never remember.


Planck
I know a little about a lot, and a lot about a little.

CopyrightPhilly

  • Guest
Re:Newline in dialogs?
« Reply #2 on: 20 Jun 2005, 03:34:20 »
\n

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Newline in dialogs?
« Reply #3 on: 20 Jun 2005, 04:26:18 »
Unfortunately, I don't think it's possible in a dialog.

I tended to use two dialog entries, one for each line. For instance, the text in the white box here:

[img removed]TBGshot4Circled.jpg[/img]

Is actually two separate resource entries. I couldn't work out how to make it use the nextline character.

Are you able to use a work around to get the desired effect you're after?
« Last Edit: 20 Jun 2005, 04:27:04 by Sui »

Offline Gadjuka

  • Members
  • *
  • Programmer
    • Operation Flashpoint: Commander
Re:Newline in dialogs?
« Reply #4 on: 20 Jun 2005, 13:04:30 »
Ok, thanks! It was as I suspected then...
I will have to use several resources even if it requires more work.  :(
Currently working on Operation Flashpoint: Commander.
Website: http://www.nordserver.se/commander/