Use autoActor.

Do GainFocus and LoseFocus for previews.
Always run On and then either GainFocus or LoseFocus for all previews
and icons.
This commit is contained in:
Glenn Maynard
2003-11-05 04:09:10 +00:00
parent 0a8096b293
commit 2c6df65bd0
2 changed files with 52 additions and 25 deletions
+3 -2
View File
@@ -17,6 +17,7 @@
#include "BitmapText.h"
#include "RageSound.h"
#include "RandomSample.h"
#include "ActorUtil.h"
class ScreenSelectMaster : public ScreenSelect
{
@@ -53,9 +54,9 @@ protected:
Sprite m_sprExplanation[NUM_PAGES];
Sprite m_sprMore[NUM_PAGES];
#define MAX_ICON_PARTS 3
Sprite m_sprIcon[MAX_ICON_PARTS][MAX_CHOICES];
AutoActor m_sprIcon[MAX_ICON_PARTS][MAX_CHOICES];
#define MAX_PREVIEW_PARTS 3
Sprite m_sprPreview[MAX_PREVIEW_PARTS][MAX_CHOICES][NUM_PLAYERS];
AutoActor m_sprPreview[MAX_PREVIEW_PARTS][MAX_CHOICES][NUM_PLAYERS];
#define MAX_CURSOR_PARTS 3
Sprite m_sprCursor[MAX_CURSOR_PARTS][NUM_PLAYERS];