Home   Help Search Login Register  

Author Topic: How to display a dialog the way I need  (Read 2527 times)

0 Members and 2 Guests are viewing this topic.

Offline benreeper

  • Members
  • *
  • I'm a llama!
Re:How to display a dialog the way I need
« Reply #15 on: 03 Nov 2005, 02:26:49 »
You can put the text in a listbox.
--Ben

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:How to display a dialog the way I need
« Reply #16 on: 03 Nov 2005, 12:32:15 »
Do you mean that if i want to put in the dialog a text that looks somewhat like the following:

Today is a bad day
I hope that tomorrow will be better
But can't believe it will be so

I need to create three different text boxes to display it?
In this case I will switch to the hintc immediately.......

Klavan


Yup, I have never been able to get \n to work in a dialog either. Such a pity, since they are the best way of displaying lots of text. But anyway, in the past I've got around the problem by just using a bunch of spaces, to force the text down onto the next line. Takes some trial and error, but it works if you aren't changing what you are displaying.

Dialogs rock! I'm with Igor--I wish they were more widely used!
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

klavan

  • Guest
Re:How to display a dialog the way I need
« Reply #17 on: 03 Nov 2005, 12:45:46 »
It's quite a long job, but the result isn't so bad as you can see from the picture attached below.
Klavan

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:How to display a dialog the way I need
« Reply #18 on: 03 Nov 2005, 13:06:55 »
BTW, if you are going to be displaying lots of text (which it looks like you are), then you might find it easiest to put that text in an external .txt file, and then use the 'loadfile' command to put its contents into the dialog. Again, just speaking from experience.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

klavan

  • Guest
Re:How to display a dialog the way I need
« Reply #19 on: 03 Nov 2005, 13:31:31 »
Maybe, but since I'm making an english and italian version of the displayed text how can I avoid to use a .csv?
Klavan

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re:How to display a dialog the way I need
« Reply #20 on: 04 Nov 2005, 02:54:43 »
Yes, Dialogs and titleRscs are quite amazing. I've used several in my most recent missions. Also, why didn't anyone use them with v1.46 and lower, since they were still compatible?  ???
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08