Doom3world

The world is yours! Doom 3 - Quake 4 - ET:QW - Prey - Rage
It is currently Thu Jun 20, 2013 5:54 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Pass more info through the GUI?
PostPosted: Tue Feb 12, 2008 7:10 pm 
Offline
Addict.
User avatar

Joined: Tue Nov 22, 2005 1:42 am
Posts: 2165
Location: France, 59
Plop.

I'd like to know where i can found the code part that allow guis to "read" CVARs.
ultimatly, i want to be able to make "if/else" CVARs checks (if "gui::ui_name" == "casimir" for exemple)...

I don't got the source yet, compiler either, so it's really to know where to start to look at, and how to handle it.

Thanks.

_________________
idTech 4 still amaze me.

Doom III High Quality Mainmenu Pack.
Doom III Boss Contest: Alpha Lab Zero.
idTech4 Extended [Alpha].


Top
 Profile E-mail  
 
 Post subject: Re: Pass more info through the GUI?
PostPosted: Tue Feb 12, 2008 7:43 pm 
Offline
Last man standing
User avatar

Joined: Fri Apr 22, 2005 11:55 pm
Posts: 1180
I could be wrong, but I don't think it's possible to do that with the SDK.
You probably should do those checks in the code and not in the gui itself...I think you cannot even compare strings in a gui.
You can set a float value in the gui (from the code) to let it know what to do, like the "nightmare" check in the mainmenu.

_________________
Fragging Free - a frantic Doom3:ROE single-player modification.


Top
 Profile  
 
 Post subject: Re: Pass more info through the GUI?
PostPosted: Thu Feb 14, 2008 5:02 am 
Offline
... is on cooldown

Joined: Wed Sep 08, 2004 3:43 pm
Posts: 381
use

Code:
cvarSystem->


to get/set cvar. and icmp() to compare probaly code way, any cvar thats ui_ is userinfo :

Code:
player->GetUserInfo()->

_________________
removed


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 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