00001 #ifndef ScreenSelectStyle_H 00002 #define ScreenSelectStyle_H 00003 00004 #include "ScreenSelect.h" 00005 #include "Sprite.h" 00006 #include "BitmapText.h" 00007 #include "RageSound.h" 00008 00009 #define MAX_MODE_CHOICES 30 00010 00011 class ScreenSelectStyle : public ScreenSelect 00012 { 00013 public: 00014 ScreenSelectStyle( CString sName ); 00015 00016 virtual void MenuLeft( PlayerNumber pn ); 00017 virtual void MenuRight( PlayerNumber pn ); 00018 virtual void MenuStart( PlayerNumber pn ); 00019 00020 protected: 00021 virtual int GetSelectionIndex( PlayerNumber pn ); 00022 virtual void UpdateSelectableChoices(); 00023 00024 void BeforeChange(); 00025 void AfterChange(); 00026 00027 Sprite m_sprIcon[MAX_MODE_CHOICES]; 00028 // Artists don't make graphics for every single Game, so 00029 // have a text representation if textures are missing. 00030 BitmapText m_textIcon[MAX_MODE_CHOICES]; 00031 Sprite m_sprPicture[MAX_MODE_CHOICES]; 00032 Sprite m_sprInfo[MAX_MODE_CHOICES]; 00033 Sprite m_sprExplanation; 00034 Sprite m_sprWarning; 00035 Sprite m_sprPremium; 00036 00037 RageSound m_soundChange; 00038 00039 int m_iSelection; 00040 }; 00041 00042 #endif 00043 00044 /* 00045 * (c) 2001-2004 Chris Danford 00046 * All rights reserved. 00047 * 00048 * Permission is hereby granted, free of charge, to any person obtaining a 00049 * copy of this software and associated documentation files (the 00050 * "Software"), to deal in the Software without restriction, including 00051 * without limitation the rights to use, copy, modify, merge, publish, 00052 * distribute, and/or sell copies of the Software, and to permit persons to 00053 * whom the Software is furnished to do so, provided that the above 00054 * copyright notice(s) and this permission notice appear in all copies of 00055 * the Software and that both the above copyright notice(s) and this 00056 * permission notice appear in supporting documentation. 00057 * 00058 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00059 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00060 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00061 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00062 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00063 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00064 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00065 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00066 * PERFORMANCE OF THIS SOFTWARE. 00067 */