Doom3world

The world is yours! Doom 3 - Quake 4 - ET:QW - Prey - Rage
It is currently Fri Sep 10, 2010 7:38 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: guis?
PostPosted: Wed Jun 29, 2005 1:02 pm 
Offline
is sad because his cool title went away

Joined: Tue Feb 01, 2005 1:45 am
Posts: 684
how do you make a gui change from one thing to another?
for instencice for it to say "Power faliure" then when you turn on the power it says "Teleporter ready"


Top
 Profile E-mail  
 
 Post subject: gui
PostPosted: Wed Jun 29, 2005 1:18 pm 
Offline
Captured the Flag

Joined: Mon Feb 21, 2005 6:07 pm
Posts: 1976
Location: usa/kansas
either use a target setkeyval to change the models gui or hid and unhide static meshes or the tried and true method script it though target setkeyval seems to be the easiest to me


Top
 Profile E-mail  
 
 Post subject:
PostPosted: Wed Jun 29, 2005 1:43 pm 
Offline
is sad because his cool title went away

Joined: Tue Feb 01, 2005 1:45 am
Posts: 684
could you explaine the last one better?


Top
 Profile E-mail  
 
 Post subject:
PostPosted: Wed Jun 29, 2005 2:59 pm 
Offline
did just hit his 750th monster

Joined: Sun Sep 12, 2004 6:45 am
Posts: 753
Location: Canada
This is also done with gui coding. If you can't make one from scratch, I would look for an existing gui that is in the game that is close to what you want, then just change the code and resave it using a new name. The text is easy to spot in the code, it will be labeled "text" or "#str", so you just edit those to your new text.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 29, 2005 3:57 pm 
Offline
is sad because his cool title went away

Joined: Tue Feb 01, 2005 1:45 am
Posts: 684
Thanks
:D


Top
 Profile E-mail  
 
 Post subject: target_setkeyval
PostPosted: Wed Jun 29, 2005 4:06 pm 
Offline
Captured the Flag

Joined: Mon Feb 21, 2005 6:07 pm
Posts: 1976
Location: usa/kansas
create a target set keyval
target the model or mesh with the gui

example keyval


keyval
gui;guis/screens/cpu_marsmap4.gui

you tell it what parameter with the first part
gui
the net ; tells it here comes the meat and potatoes
the value is told with
guis/screens/cpu_marsmap4.gui

if you needed it to change back and forth create another target_setkeyval with the second gui you want

for instance on my func_plat in my level i add a gui screen and use the marquee gui and simply change the text from level 1 to level two with two such target_setkeyval's

one says
gui_parm1;level1

the other
gui_parm1;level2

etc.... you can change just about any parameter on the fly this way without scripting but scripting may be faster depending on what you want and how good you are at scripting


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group