forked from NaiJi/project-kyoku
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
340 B
C
19 lines
340 B
C
3 years ago
|
#pragma once
|
||
|
|
||
|
#include "button.h"
|
||
|
|
||
|
class MenuDrop;
|
||
|
|
||
|
class CascadeMenuButton : public Button
|
||
|
{
|
||
|
public:
|
||
|
explicit CascadeMenuButton(const std::string& text);
|
||
|
virtual void input(const sf::Event& event) override final;
|
||
|
|
||
|
void setSubmenu(const std::shared_ptr<MenuDrop>& submenu);
|
||
|
|
||
|
private:
|
||
|
std::shared_ptr<MenuDrop> _submenu;
|
||
|
};
|
||
|
|