Take two at rewriting menu options

This commit is contained in:
UnknownShadow200 2024-07-11 20:58:21 +10:00
parent a94570e593
commit 2bf6c3b78c
3 changed files with 1331 additions and 1181 deletions

1331
src/MenuOptions.c Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -28,9 +28,6 @@ CC_NOINLINE void TextWidget_Set(struct TextWidget* w, const cc_string* text, str
/* Shorthand for TextWidget_Set using String_FromReadonly */
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. */
struct ButtonWidget {
Widget_Body
@ -38,8 +35,6 @@ struct ButtonWidget {
PackedCol color;
int minWidth, minHeight;
const char* optName;
Button_Get GetValue;
Button_Set SetValue;
};
#define BUTTONWIDGET_MAX 12