23 #ifndef M4_BURGER_GUI_GIZMO_H 24 #define M4_BURGER_GUI_GIZMO_H 26 #include "common/rect.h" 27 #include "m4/m4_types.h" 28 #include "m4/gui/gui_vmng_core.h" 29 #include "m4/graphics/gr_buff.h" 30 #include "m4/burger/gui/gui_cheapo.h" 36 #define _GIZMO(X) g_vars->_gizmo._##X 42 bool _initialized =
false;
43 bool _interface_visible =
false;
44 Gizmo *_gui =
nullptr;
45 RGB8 *_palette =
nullptr;
46 bool _lowMemory1 =
false;
47 bool _lowMemory2 =
false;
49 MemHandle _seriesHandle =
nullptr;
50 int32 _celsOffset = 0;
52 char *_assetName =
nullptr;
57 bool _savedFlag =
false;
68 void (*_fnEnter)() =
nullptr;
69 void (*_fnEscape)() =
nullptr;
70 EventHandler _fnEvents =
nullptr;
74 ControlStatus _state = NOTHING;
81 typedef void (*GizmoItemFnSelect)();
82 typedef void (*GizmoItemFnDraw)(
GizmoItem *item,
Gizmo *gizmo,
int x,
int y);
83 typedef void (*GizmoItemFnFree)(
GizmoItem *item);
84 typedef bool (*GizmoItemFnEvents)(
GizmoItem *item,
int eventType,
int event,
int x,
int y,
90 Gizmo *_gizmo =
nullptr;
97 bool _hasBuffer =
false;
98 GizmoItemFnSelect _select =
nullptr;
99 GizmoItemFnDraw _fnDraw =
nullptr;
100 GizmoItemFnFree _fnFree =
nullptr;
101 GizmoItemFnEvents _fnEvents =
nullptr;
104 void gizmo_anim(
RGB8 *pal);
105 void gizmo_initialize(
RGB8 *pal);
106 void gizmo_shutdown(
void *v1 =
nullptr,
void *v2 =
nullptr);
107 void gizmo_digi_play(
const char *name,
int vol,
bool &done);
Definition: gui_gizmo.h:87
Definition: m4_types.h:88
Definition: database.h:28
Definition: gui_gizmo.h:65
Definition: gui_gizmo.h:41