mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-12 00:56:40 -04:00
Take two at rewriting menu options
This commit is contained in:
parent
a94570e593
commit
2bf6c3b78c
1331
src/MenuOptions.c
Normal file
1331
src/MenuOptions.c
Normal file
File diff suppressed because it is too large
Load Diff
1176
src/Menus.c
1176
src/Menus.c
File diff suppressed because it is too large
Load Diff
@ -28,9 +28,6 @@ CC_NOINLINE void TextWidget_Set(struct TextWidget* w, const cc_string* text, str
|
|||||||
/* Shorthand for TextWidget_Set using String_FromReadonly */
|
/* Shorthand for TextWidget_Set using String_FromReadonly */
|
||||||
CC_NOINLINE void TextWidget_SetConst(struct TextWidget* w, const char* text, struct FontDesc* font);
|
CC_NOINLINE void TextWidget_SetConst(struct TextWidget* w, const char* text, struct FontDesc* font);
|
||||||
|
|
||||||
|
|
||||||
typedef void (*Button_Get)(cc_string* raw);
|
|
||||||
typedef void (*Button_Set)(const cc_string* raw);
|
|
||||||
/* A labelled button that can be clicked on. */
|
/* A labelled button that can be clicked on. */
|
||||||
struct ButtonWidget {
|
struct ButtonWidget {
|
||||||
Widget_Body
|
Widget_Body
|
||||||
@ -38,8 +35,6 @@ struct ButtonWidget {
|
|||||||
PackedCol color;
|
PackedCol color;
|
||||||
int minWidth, minHeight;
|
int minWidth, minHeight;
|
||||||
const char* optName;
|
const char* optName;
|
||||||
Button_Get GetValue;
|
|
||||||
Button_Set SetValue;
|
|
||||||
};
|
};
|
||||||
#define BUTTONWIDGET_MAX 12
|
#define BUTTONWIDGET_MAX 12
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user