MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / MenuOptionsScreen_InputClick

Function MenuOptionsScreen_InputClick

src/MenuOptions.c:330–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330static void MenuOptionsScreen_InputClick(void* screen, void* widget) {
331 cc_string value; char valueBuffer[STRING_SIZE];
332 struct MenuOptionsScreen* s = (struct MenuOptionsScreen*)screen;
333 struct ButtonWidget* btn = (struct ButtonWidget*)widget;
334 struct MenuOptionMetaInt* meta = (struct MenuOptionMetaInt*)btn->meta.ptr;
335
336 MenuOptionsScreen_FreeExtHelp(s);
337 s->activeBtn = btn;
338
339 String_InitArray(value, valueBuffer);
340 meta->GetText(btn, &value);
341 MenuInputOverlay_Show(&meta->desc, &value, MenuOptionsScreen_OnDone, Gui_TouchUI);
342}
343
344
345static void MenuOptionsScreen_HexGet(struct ButtonWidget* btn, cc_string* v) {

Callers

nothing calls this directly

Calls 2

MenuInputOverlay_ShowFunction · 0.85

Tested by

no test coverage detected