forked from sashavol/Frozlunky
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gui.h
46 lines (36 loc) · 1.15 KB
/
gui.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// generated by Fast Light User Interface Designer (fluid) version 1.0302
#ifndef gui_h
#define gui_h
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Input.H>
#include <FL/Fl_Button.H>
#include <map>
#include <functional>
#include <memory>
#include <iostream>
#include "spelunky.h"
#include "remote_call_patch.h"
#define BUTTON_CLASS(NAME) \
class NAME : public Fl_Button { \
public: \
NAME(int x, int y, int w, int h, char* L) : Fl_Button(x,y,w,h,L) {} \
virtual int handle(int evt) override; \
}
BUTTON_CLASS(ToggleButton);
BUTTON_CLASS(SeedChangeButton);
BUTTON_CLASS(InfoButton);
BUTTON_CLASS(DailyButton);
BUTTON_CLASS(FrozboardsButton);
BUTTON_CLASS(DisplayModsButton);
BUTTON_CLASS(NetplayButton);
BUTTON_CLASS(ChunkEditorButton);
#undef BUTTON_CLASS
Fl_Window* make_window();
int gui_operate(std::shared_ptr<Spelunky> spelunk, char* icon);
void set_toggle_callback(std::function<void(bool)> callback);
void set_seed_change_callback(std::function<bool(const std::string&)> callback);
void undo_patches();
void request_soft_seed_lock();
std::shared_ptr<RemoteCallPatch> CurrentRCP();
#endif