Created NoteColumnRenderer to handle column rendering. Added m_FakeParent to Actor to solve part of the problem.
This commit is contained in:
+8
-2
@@ -29,6 +29,8 @@ public:
|
||||
int iDrawDistanceBeforeTargetsPixels );
|
||||
virtual void Unload();
|
||||
|
||||
void InitColumnRenderers();
|
||||
|
||||
virtual void HandleMessage( const Message &msg );
|
||||
|
||||
// This is done automatically by Init(), but can be re-called explicitly if the
|
||||
@@ -55,6 +57,10 @@ public:
|
||||
|
||||
int m_iBeginMarker, m_iEndMarker; // only used with MODE_EDIT
|
||||
|
||||
// m_ColumnRenderers belongs in the protected section, but it's here in
|
||||
// public so that the Lua API can access it. -Kyz
|
||||
vector<NoteColumnRenderer> m_ColumnRenderers;
|
||||
|
||||
protected:
|
||||
void CacheNoteSkin( const RString &sNoteSkin );
|
||||
void UncacheNoteSkin( const RString &sNoteSkin );
|
||||
@@ -84,8 +90,6 @@ protected:
|
||||
|
||||
const NoteData *m_pNoteData;
|
||||
|
||||
float m_fPercentFadeToFail; // -1 if not fading to fail
|
||||
|
||||
const PlayerState* m_pPlayerState;
|
||||
int m_iDrawDistanceAfterTargetsPixels; // this should be a negative number
|
||||
int m_iDrawDistanceBeforeTargetsPixels; // this should be a positive number
|
||||
@@ -101,6 +105,8 @@ protected:
|
||||
~NoteDisplayCols() { delete [] display; }
|
||||
};
|
||||
|
||||
CommonColumnRenderArgs m_ColumnRenderArgs;
|
||||
|
||||
/* All loaded note displays, mapped by their name. */
|
||||
map<RString, NoteDisplayCols *> m_NoteDisplays;
|
||||
NoteDisplayCols *m_pCurDisplay;
|
||||
|
||||
Reference in New Issue
Block a user