Code: Select all
#pragma once
#include <string>
class IGUIImage;
class ITexture;
class CustomButton
{
public:
CustomButton(IGUIImage*);
~CustomButton();
//zum laden der Grafik und bestimmen der anweisung
int graphicsAndActionID = 0;
IGUIImage *image;
ITexture *basicTexture;
ITexture *disabledTexture;
ITexture *hoverTexture;
std::string tooltiptitle;
std::string tooltipbody;
bool disabled;
void update(); //check if action changed from ready to not-ready
void hover(); //return tooltip, switch to hover
void unfocus(); //basic texture
int clicked(); //returns id
};