Buttons now children of BaseButton Buttons now render over and down modes Text buttons now exist Buttons render differently
35 lines
811 B
C++
35 lines
811 B
C++
#pragma once
|
|
#include "BaseButtonInstance.h"
|
|
#pragma once
|
|
#include "ButtonListener.h"
|
|
class ButtonListener;
|
|
class TextButtonInstance : public BaseButtonInstance
|
|
{
|
|
public:
|
|
TextButtonInstance(void);
|
|
~TextButtonInstance(void);
|
|
void setAllColorsSame(void);
|
|
Vector2 boxBegin;
|
|
Vector2 boxEnd;
|
|
Vector2 fontLocationRelativeTo;
|
|
Color4 textColor;
|
|
Color4 textOutlineColor;
|
|
Color4 boxColor;
|
|
Color4 boxOutlineColor;
|
|
Color4 textColorOvr;
|
|
Color4 textOutlineColorOvr;
|
|
Color4 boxColorOvr;
|
|
Color4 boxOutlineColorOvr;
|
|
Color4 textColorDn;
|
|
Color4 textOutlineColorDn;
|
|
Color4 boxColorDn;
|
|
Color4 boxOutlineColorDn;
|
|
bool centeredWithinBox;
|
|
std::string title;
|
|
G3D::GFontRef font;
|
|
bool visible;
|
|
int textSize;
|
|
void drawObj(RenderDevice*, Vector2, bool);
|
|
void setButtonListener(ButtonListener*);
|
|
void onClick();
|
|
}; |