The open source repository for the action RPG game in development by Sig Productions titled 'Adventures in Lestoria'!
https://forums.lestoria.net
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
608 B
24 lines
608 B
#pragma once
|
|
#include "olcUTIL_Geometry2D.h"
|
|
#include "MenuType.h"
|
|
#include <functional>
|
|
|
|
class Menu;
|
|
class Crawler;
|
|
|
|
class MenuButton{
|
|
friend class Menu;
|
|
MenuType menuDest;
|
|
geom2d::rect<float>rect;
|
|
std::string label;
|
|
Decal*icon;
|
|
MenuFunc onClick;
|
|
bool hovered=false;
|
|
private:
|
|
float hoverEffect=0;
|
|
public:
|
|
MenuButton(geom2d::rect<float>rect,std::string label,Decal*icon,MenuFunc onClick);
|
|
MenuButton(geom2d::rect<float>rect,std::string label,MenuType menuDest,Decal* icon,MenuFunc onClick);
|
|
void Update(Crawler*game);
|
|
void Draw(Crawler*game,vf2d parentPos);
|
|
}; |