aboutsummaryrefslogtreecommitdiff
path: root/game/menus/mainmenu/CreditsSubScript.h
blob: e411202e2b8e6badcceab3a0ae5f1eceb779f845 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include "../IFloatingWindowScript.h"
#include "../IButtonScript.h"

#include <crepe/api/Event.h>
#include <crepe/api/Script.h>

struct ShowCreditsEvent : public crepe::Event {};

class CreditsSubScript : public IFloatingWindowScript, public IButtonScript {
public:
	CreditsSubScript(const std::string & tag);
	void init() override;
	bool disable_all();
	bool enable_all();
	bool on_button_press(const crepe::ButtonPressEvent & e);
};