View Single Post

Old 01-11-2009, 03:28 PM   #2
dieKatze88
STANLEY FUBAR
 
dieKatze88's Avatar
 
dieKatze88 is offline
Join Date: Jan 2005
Location: New Jersey
Posts: 2,597
Marketplace Rating: 4
Send a message via PM  to dieKatze88
dieKatze88 dieKatze88
Default

Quote:
Originally Posted by Wan View Post
Well, with a friend we're in charge of "maintaining" an ITG2 machine (yanno, adding themes/songs/etc), and I added a Theme selector.

Now, what I want to do is to add a proper BG Brightness selector to that screen, BUT I don't want to have the whole range (by using "conf,Brightness"), since some players abused it setting to 0%, thus avoiding the disqualification from using the "Hide Background" mod.


I checked the 3.95 source and I found this in ScreenOptionsMasterPrefs.cpp:

Code:
static void BGBrightness( int &sel, bool ToSel, const ConfOption *pConfOption )
{
	const float mapping[] = { 0.0f,0.1f,0.2f,0.3f,0.4f,0.5f,0.6f,0.7f,0.8f,0.9f,1.0f };
	MoveMap( sel, PREFSMAN->m_fBGBrightness, ToSel, mapping, ARRAYSIZE(mapping) );
}
(I assume this hasn't changed from 3.9...)

Is there any way I can make a "list" (not "conf") options line with BGBrightness? If not, is there any other way?
You could add that line you had before, and use the Disqualify modifier on it.
__________________
Excel has no secret mod powers.
  Reply With Quote