increase MusicWheel item max
This commit is contained in:
@@ -691,7 +691,7 @@ void MusicWheel::GetItemPosition( float fPosOffsetsFromMiddle, float& fX_out, fl
|
|||||||
{
|
{
|
||||||
if( USE_3D )
|
if( USE_3D )
|
||||||
{
|
{
|
||||||
fRotationX_out = SCALE(fPosOffsetsFromMiddle,-7,+7,-PI/2.f,+PI/2.f);
|
fRotationX_out = SCALE(fPosOffsetsFromMiddle,-NUM_WHEEL_ITEMS/2,+NUM_WHEEL_ITEMS/2,-PI/2.f,+PI/2.f);
|
||||||
|
|
||||||
// printf( "fRotationX_out = %f\n", fRotationX_out );
|
// printf( "fRotationX_out = %f\n", fRotationX_out );
|
||||||
|
|
||||||
@@ -703,9 +703,7 @@ void MusicWheel::GetItemPosition( float fPosOffsetsFromMiddle, float& fX_out, fl
|
|||||||
|
|
||||||
fRotationX_out *= 180.f/PI; // to degrees
|
fRotationX_out *= 180.f/PI; // to degrees
|
||||||
}
|
}
|
||||||
else
|
else if(!USE_LINEAR_WHEEL)
|
||||||
{
|
|
||||||
if(!USE_LINEAR_WHEEL)
|
|
||||||
{
|
{
|
||||||
fX_out = (1-cosf(fPosOffsetsFromMiddle/PI))*ITEM_CURVE_X;
|
fX_out = (1-cosf(fPosOffsetsFromMiddle/PI))*ITEM_CURVE_X;
|
||||||
fY_out = fPosOffsetsFromMiddle*ITEM_SPACING_Y;
|
fY_out = fPosOffsetsFromMiddle*ITEM_SPACING_Y;
|
||||||
@@ -728,7 +726,6 @@ void MusicWheel::GetItemPosition( float fPosOffsetsFromMiddle, float& fX_out, fl
|
|||||||
fZ_out = roundf( fZ_out );
|
fZ_out = roundf( fZ_out );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void MusicWheel::RebuildMusicWheelItems()
|
void MusicWheel::RebuildMusicWheelItems()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ class Course;
|
|||||||
class Song;
|
class Song;
|
||||||
|
|
||||||
|
|
||||||
const int MAX_WHEEL_ITEMS = 15;
|
const int MAX_WHEEL_ITEMS = 25;
|
||||||
|
|
||||||
const ScreenMessage SM_SongChanged = ScreenMessage(SM_User+47); // this should be unique!
|
const ScreenMessage SM_SongChanged = ScreenMessage(SM_User+47); // this should be unique!
|
||||||
const ScreenMessage SM_SortOrderChanging= ScreenMessage(SM_User+48);
|
const ScreenMessage SM_SortOrderChanging= ScreenMessage(SM_User+48);
|
||||||
|
|||||||
Reference in New Issue
Block a user