mirror of
https://github.com/tribes2/engine.git
synced 2026-01-20 03:34:48 +00:00
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
//-----------------------------------------------------------------------------
|
|
// V12 Engine
|
|
//
|
|
// Copyright (c) 2001 GarageGames.Com
|
|
// Portions Copyright (c) 2001 by Sierra Online, Inc.
|
|
//-----------------------------------------------------------------------------
|
|
|
|
#ifndef _EDITORBUTTONCTRL_H_
|
|
#define _EDITORBUTTONCTRL_H_
|
|
|
|
#ifndef _GUIBUTTONCTRL_H_
|
|
#include "GUI/guiButtonCtrl.h"
|
|
#endif
|
|
|
|
// JFF - move into gui once finished
|
|
|
|
class EditorButtonCtrl : public GuiButtonCtrl
|
|
{
|
|
private:
|
|
typedef GuiButtonCtrl Parent;
|
|
|
|
protected:
|
|
TextureHandle mTextureHandle;
|
|
StringTableEntry mBitmapName;
|
|
ColorI mMouseOverColor;
|
|
F32 mDepressedAlpha;
|
|
|
|
public:
|
|
DECLARE_CONOBJECT(EditorButtonCtrl);
|
|
|
|
EditorButtonCtrl();
|
|
|
|
// SimObject
|
|
static void initPersistFields();
|
|
static void consoleInit();
|
|
|
|
// GuiControl
|
|
bool onWake();
|
|
void onSleep();
|
|
|
|
void setBitmap(const char *name);
|
|
void onRender(Point2I offset, const RectI &updateRect, GuiControl *firstResponder);
|
|
};
|
|
|
|
#endif
|