Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Question concerning Multiple hud-elements and fpgcrawtext

Author
Message
assaam
18
Years of Service
User Offline
Joined: 13th Oct 2006
Location: probably some pub in vienna
Posted: 25th Jul 2010 21:44
Well as you probably can assume, i got stuck while trying to make a new script for my game.
I've already done some research on this topic and did not find anything so i hope someone knowledgeable will find this thread, but now the questions:

1):
Is it possible to display more then one hud element at the same time(like two different bars which are not one picture with alpha channel in between), and how can it be done in a single script(not resetting the hud won't change a thing)

2):
I've been working with fpgcrawtext for some time now, but i did not find a way to display more then on line at the same time, what i can do is this:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
and not:
xxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxx

If there is anyone who knows how to solve at least one of these problems i would be very thankful.

And as a little "thank you" for everyone who reads this, there is a little weapon script for you because i can't stand the standard weapon script(this is the script i want to extend a little further as soon as these problems are resolved)

Daniel



I'm not paranoid!
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 26th Jul 2010 02:53
1) Yes, that is perfectl doable. Just make both of your HUDs the same ways (And yes, use "hudreset" when making both of them)

2) Hmmm... did you do the two lines in two different calls to the fpgcrawtext command? I can only imagine that you should be able to specify screen coordinates to place the text, and so calling it twice should let you place text in the top line and some text in the bottom line.


The one and only,


Login to post a reply

Server time is: 2024-11-24 21:24:44
Your offset time is: 2024-11-24 21:24:44