View Single Post

Custom brightness options line?
Old 01-04-2009, 09:49 PM   #1
Wan
g//ay for k//eternal
 
Wan's Avatar
 
Wan is offline
Join Date: Jun 2006
Location: Santiago, Chile
Posts: 886
Marketplace Rating: 0
Send a message via PM  to Wan
Default Custom brightness options line?

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?
__________________





Last edited by Wan : 01-06-2009 at 07:33 PM.
  Reply With Quote