Bemanistyle #1 In music game coverage - Dance Dance Revolution, Beatmania, IIDX, Popn Music Sponsored Banner Ad. Contact Keith or Djp to AdvertiseSponsored Advertisement

Go Back   Bemanistyle [dot] com Forums > Bemani Simulation > Theme Discussion
Reply
 
Thread Tools

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: 851
Marketplace Rating: 0
Tokens: 319.03
Bank: 33,319,524.69
Total Tokens: 33,319,843.72
Donate Tokens
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

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,423
Marketplace Rating: 3
Tokens: 323.05
Bank: 1,914,691,884.60
Total Tokens: 1,914,692,207.65
Donate Tokens
Send a message via PM  to 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

Old 01-12-2009, 09:26 PM   #3
Wan
g//ay for k//eternal
 
Wan's Avatar
 
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
Send a message via PM  to Wan
Default

That's what I don't want to do. I just want that only some specific brightness levels are selectable (i.e. 50 - 70% )
__________________




  Reply With Quote

Old 01-14-2009, 07:42 AM   #4
dieKatze88
STANLEY FUBAR
 
dieKatze88's Avatar
 
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
Send a message via PM  to dieKatze88
Default

Quote:
Originally Posted by Wan View Post
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.
  Reply With Quote

Old 01-14-2009, 01:44 PM   #5
Wan
g//ay for k//eternal
 
Wan's Avatar
 
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
Send a message via PM  to Wan
Default

Quote:
Originally Posted by dieKatze88 View Post
Well remove those options from the array
How so, since the array is hardcoded?
__________________




  Reply With Quote
Reply



Go Back   Bemanistyle [dot] com Forums > Bemani Simulation > Theme Discussion
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Sponsored Advertisement



All times are GMT -6. The time now is 02:57 AM.

vBulletin skin developed by: eXtremepixels
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
| Home | Register | FAQ | Members List | Calendar | Today's Posts | Search | New Posts |