engine/gui/guiHelpCtrl.h
2024-01-07 04:36:33 +00:00

41 lines
920 B
C++

//-----------------------------------------------------------------------------
// V12 Engine
//
// Copyright (c) 2001 GarageGames.Com
// Portions Copyright (c) 2001 by Sierra Online, Inc.
//-----------------------------------------------------------------------------
#ifndef _GUIHELPCTRL_H_
#define _GUIHELPCTRL_H_
#ifndef _GUITEXTCTRL_H_
#include "GUI/guiTextCtrl.h"
#endif
class guiCanvas;
class GuiHelpCtrl : public guiTextCtrl
{
private:
typedef guiTextCtrl Parent;
protected:
S32 mHelpTag;
const char *mHelpText;
public:
GuiHelpCtrl();
~GuiHelpCtrl();
bool onAdd(void);
virtual void setHelpText(guiCanvas *root, const char *text, F32 timeElapsed, bool mouseClicked = FALSE);
virtual void setHelpTag(guiCanvas *root, S32 helpTag, F32 timeElapsed, bool mouseClicked = FALSE);
virtual void render(GFXSurface *sfc);
DECLARE_PERSISTENT(GuiHelpCtrl);
};
#endif //_GUI_HELP_CTRL_H