MCPcopy Create free account
hub / github.com/RevoSucks/BM64Recomp / recompui_get_input_value_float

Function recompui_get_input_value_float

src/ui/ui_api.cpp:756–767  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

754}
755
756void recompui_get_input_value_float(uint8_t* rdram, recomp_context* ctx) {
757 Style* resource = arg_style<0>(rdram, ctx);
758
759 if (resource == nullptr || !resource->is_element()) {
760 recompui::message_box("Fatal error in mod - attempted to get value of non-element or element not found in context");
761 assert(false);
762 ultramodern::error_handling::quick_exit(__FILE__, __LINE__, __FUNCTION__);
763 }
764
765 Element* element = static_cast<Element*>(resource);
766 _return<float>(ctx, element->get_input_value_float());
767}
768
769void recompui_get_input_text(uint8_t* rdram, recomp_context* ctx) {
770 Style* resource = arg_style<0>(rdram, ctx);

Callers

nothing calls this directly

Calls 2

get_input_value_floatMethod · 0.80
is_elementMethod · 0.45

Tested by

no test coverage detected