Add Var "Player" and Var "Controller" for NoteSkin. [hanubeki]
Sourced from http://code.google.com/r/hanubeki-modified-sm-ssc/source/detail?r=824cff29912d1c29a667046ba463d195e81c524a
This commit is contained in:
@@ -16,12 +16,17 @@ void GhostArrowRow::Load( const PlayerState* pPlayerState, float fYReverseOffset
|
||||
m_fYReverseOffsetPixels = fYReverseOffset;
|
||||
|
||||
const Style* pStyle = GAMESTATE->GetCurrentStyle();
|
||||
const PlayerNumber pn = m_pPlayerState->m_PlayerNumber;
|
||||
NOTESKIN->SetPlayerNumber( pn );
|
||||
|
||||
// init arrows
|
||||
for( int c=0; c<pStyle->m_iColsPerPlayer; c++ )
|
||||
{
|
||||
const RString &sButton = GAMESTATE->GetCurrentStyle()->ColToButtonName( c );
|
||||
|
||||
const GameInput GameI = GAMESTATE->GetCurrentStyle()->StyleInputToGameInput( c, pn );
|
||||
NOTESKIN->SetGameController( GameI.controller );
|
||||
|
||||
m_bHoldShowing.push_back( TapNote::SubType_Invalid );
|
||||
m_bLastHoldShowing.push_back( TapNote::SubType_Invalid );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user