25 #include "kyra/gui/gui.h" 39 uint8 textColor, highlightColor;
50 const char *labelString;
64 const char *menuNameString;
70 uint8 highlightedItem;
74 int16 scrollUpButtonX, scrollUpButtonY;
75 int16 scrollDownButtonX, scrollDownButtonY;
90 void processButton(
Button *button)
override = 0;
91 int processButtonList(
Button *buttonList, uint16 inputFlags, int8 mouseWheel)
override = 0;
93 virtual int redrawShadedButtonCallback(
Button *button);
94 virtual int redrawButtonCallback(
Button *button);
97 virtual void initMenuLayout(
Menu &menu);
98 void initMenu(
Menu &menu);
100 void processHighlights(
Menu &menu);
110 bool _displaySubMenu;
113 virtual void printMenuText(
const Common::String &str,
int x,
int y, uint8 c0, uint8 c1, uint8 c2);
114 virtual int getMenuCenterStringX(
const Common::String &str,
int x1,
int x2);
119 virtual Button *getButtonListData() = 0;
120 virtual Button *getScrollUpButton() = 0;
121 virtual Button *getScrollDownButton() = 0;
126 virtual uint8 defaultColor1()
const = 0;
127 virtual uint8 defaultColor2()
const = 0;
128 virtual uint8 menuItemLabelColor()
const = 0;
134 void updateAllMenuButtons();
135 void updateMenuButton(
Button *button);
136 virtual void updateButton(
Button *button);
138 void redrawText(
const Menu &menu);
139 void redrawHighlight(
const Menu &menu);
141 uint32 _lastScreenUpdate;
142 void checkTextfieldInput();
144 int _menuLabelYOffset;
155 Animation() : anim(0), startFrame(0), endFrame(0), delay(0) {}
164 const char *strings[5];
168 const uint8 *boxCoords;
171 int8 lineSpacingAdjust;
189 AnimIntern _animIntern;
193 void updateAnimation();
194 void draw(
int select);
195 void drawBox(
int x,
int y,
int w,
int h,
int fill);
198 void printString(
const char *
string,
int x,
int y,
int col1,
int col2,
int flags, ...)
GCC_PRINTF(2, 8);
Definition: kyra_v1.h:126
int FORCEINLINE GCC_PRINTF(2, 0) int vsprintf_s(T(&dst)[N]
Definition: wsamovie.h:31
Definition: detection.h:27
signed char * fill(signed char *first, signed char *last, Value val)
Definition: algorithm.h:168