Files
itgmania212121/stepmania/src/HelpDisplay.h
T

62 lines
2.2 KiB
C++
Raw Normal View History

2004-06-07 21:14:03 +00:00
/* HelpDisplay - A BitmapText that cycles through messages. */
2003-03-30 20:21:20 +00:00
2004-06-07 21:14:03 +00:00
#ifndef HELP_DISPLAY_H
#define HELP_DISPLAY_H
2003-03-30 20:21:20 +00:00
#include "BitmapText.h"
2005-04-25 07:01:07 +00:00
struct lua_State;
2003-03-30 20:21:20 +00:00
2005-02-09 05:33:29 +00:00
class HelpDisplay : public BitmapText
2003-03-30 20:21:20 +00:00
{
public:
HelpDisplay();
2006-01-22 01:00:06 +00:00
void Load( const RString &sType );
2005-02-09 05:33:29 +00:00
2006-10-20 00:17:51 +00:00
virtual HelpDisplay *Copy() const;
2005-02-09 05:33:29 +00:00
2006-01-22 01:00:06 +00:00
void SetTips( const vector<RString> &arrayTips ) { SetTips( arrayTips, arrayTips ); }
void SetTips( const vector<RString> &arrayTips, const vector<RString> &arrayTipsAlt );
void GetTips( vector<RString> &arrayTipsOut, vector<RString> &arrayTipsAltOut ) const { arrayTipsOut = m_arrayTips; arrayTipsAltOut = m_arrayTipsAlt; }
2006-08-16 05:52:24 +00:00
void SetSecsBetweenSwitches( float fSeconds ) { m_fSecsBetweenSwitches = m_fSecsUntilSwitch = fSeconds; }
2003-03-30 20:21:20 +00:00
virtual void Update( float fDeltaTime );
2005-04-25 07:01:07 +00:00
// Lua
virtual void PushSelf( lua_State *L );
2003-03-30 20:21:20 +00:00
protected:
2006-01-22 01:00:06 +00:00
vector<RString> m_arrayTips, m_arrayTipsAlt;
2003-03-30 20:21:20 +00:00
int m_iCurTipIndex;
2006-08-16 05:52:24 +00:00
float m_fSecsBetweenSwitches;
2003-03-30 20:21:20 +00:00
float m_fSecsUntilSwitch;
};
#endif
2004-06-07 21:14:03 +00:00
/*
* (c) 2001-2003 Chris Danford, Glenn Maynard
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, and/or sell copies of the Software, and to permit persons to
* whom the Software is furnished to do so, provided that the above
* copyright notice(s) and this permission notice appear in all copies of
* the Software and that both the above copyright notice(s) and this
* permission notice appear in supporting documentation.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
* THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
* INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT
* OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/