 | Custom brightness options line? |  |
01-04-2009, 08:49 PM
|
#1 | | g//ay for k//eternal
Wan is offline
Join Date: Jun 2006 Location: Santiago, Chile Posts: 861
Marketplace Rating: 0
Tokens: 426.87
Bank: 87,803,390.14
Total Tokens: 87,803,817.01 Donate Tokens | 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 06:33 PM.
| |
| |  |  | |  |
01-11-2009, 02:28 PM
|
#2 | | STANLEY FUBAR
dieKatze88 is offline
Join Date: Jan 2005 Location: New Jersey Posts: 2,450
Marketplace Rating: 3
Tokens: 254.55
Bank: 6,155,055,928.15
Total Tokens: 6,155,056,182.70 Donate Tokens | Quote:
Originally Posted by Wan 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.
| |
| |  |
01-12-2009, 08:26 PM
|
#3 | | g//ay for k//eternal
Wan is offline
Join Date: Jun 2006 Location: Santiago, Chile Posts: 861
Marketplace Rating: 0
Tokens: 426.87
Bank: 87,803,390.14
Total Tokens: 87,803,817.01 Donate Tokens | That's what I don't want to do. I just want that only some specific brightness levels are selectable (i.e. 50 - 70% ) | |
| |
01-14-2009, 06:42 AM
|
#4 | | STANLEY FUBAR
dieKatze88 is offline
Join Date: Jan 2005 Location: New Jersey Posts: 2,450
Marketplace Rating: 3
Tokens: 254.55
Bank: 6,155,055,928.15
Total Tokens: 6,155,056,182.70 Donate Tokens | Quote:
Originally Posted by Wan That's what I don't want to do. I just want that only some specific brightness levels are selectable (i.e. 50 - 70% ) | Well remove those options from the array
__________________
Excel has no secret mod powers.
| |
| |
01-14-2009, 12:44 PM
|
#5 | | g//ay for k//eternal
Wan is offline
Join Date: Jun 2006 Location: Santiago, Chile Posts: 861
Marketplace Rating: 0
Tokens: 426.87
Bank: 87,803,390.14
Total Tokens: 87,803,817.01 Donate Tokens | Quote:
Originally Posted by dieKatze88 Well remove those options from the array | How so, since the array is hardcoded? | |
| |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | All times are GMT -6. The time now is 11:49 AM. | | |