 | Custom brightness options line? |  |
01-04-2009, 09:49 PM
|
#1 | | g//ay for k//eternal
Wan is offline
Join Date: Jun 2006 Location: Santiago, Chile Posts: 851
Marketplace Rating: 0
Tokens: 319.03
Bank: 33,319,524.69
Total Tokens: 33,319,843.72 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 07:33 PM.
| |
| |  |  | |  |
01-11-2009, 03:28 PM
|
#2 | | STANLEY FUBAR
dieKatze88 is offline
Join Date: Jan 2005 Location: New Jersey Posts: 2,423
Marketplace Rating: 3
Tokens: 323.05
Bank: 1,914,691,884.60
Total Tokens: 1,914,692,207.65 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, 09:26 PM
|
#3 | | g//ay for k//eternal
Wan is offline
Join Date: Jun 2006 Location: Santiago, Chile Posts: 851
Marketplace Rating: 0
Tokens: 319.03
Bank: 33,319,524.69
Total Tokens: 33,319,843.72 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, 07:42 AM
|
#4 | | STANLEY FUBAR
dieKatze88 is offline
Join Date: Jan 2005 Location: New Jersey Posts: 2,423
Marketplace Rating: 3
Tokens: 323.05
Bank: 1,914,691,884.60
Total Tokens: 1,914,692,207.65 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, 01:44 PM
|
#5 | | g//ay for k//eternal
Wan is offline
Join Date: Jun 2006 Location: Santiago, Chile Posts: 851
Marketplace Rating: 0
Tokens: 319.03
Bank: 33,319,524.69
Total Tokens: 33,319,843.72 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 02:57 AM. | | |