Author Topic: Display function & text resources  (Read 3621 times)

0 Members and 1 Guest are viewing this topic.

Offline gumby

Display function & text resources
« on: October 17, 2010, 10:28:25 PM »
I'm having a strange problem with the display function.  It seems that when I use it with text resources numbered over 99, things go wacko (font color wrong, position on screen wrong).

Is this some sort of limitation that I've hit?  Here's the code:
Code: [Select]
 Display( 000 100      // text resource 0, number 100
                 dsCOORD 0 100
                 dsCOLOUR clYELLOW
                 dsBACKGROUND -1
                 dsFONT 4
                 dsALIGN alCENTER
                 dsWIDTH 320
               )
« Last Edit: October 17, 2010, 10:30:34 PM by gumby »


In the Great Underground Empire (Zork port in development)
Winter Break 2012 Rope Prop Competition

Offline gumby

Re: Display function & text resources
« Reply #1 on: October 18, 2010, 08:48:23 AM »
Found a way around it.  Declared a string variable & stuffed the text into it before calling the Display function.
Code: [Select]
GetFarText(000 100 @tempStr)
Display(@tempStr
           dsCOORD 0 100
           dsCOLOUR clYELLOW
           dsBACKGROUND -1
           dsFONT 4
           dsALIGN alCENTER
           dsWIDTH 320
)
In the Great Underground Empire (Zork port in development)
Winter Break 2012 Rope Prop Competition

Offline Cloudee1

Re: Display function & text resources
« Reply #2 on: October 18, 2010, 11:17:00 AM »
Hmm, never had a texy resource with over a hundred lines so I dunno.
Halloween Competition Brass Lantern Prop Competition Groundhog Day Competition


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.04 seconds with 23 queries.