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

Function recompui_set_input_value_float

src/ui/ui_api.cpp:797–809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

795}
796
797void recompui_set_input_value_float(uint8_t* rdram, recomp_context* ctx) {
798 Style* resource = arg_style<0>(rdram, ctx);
799 float value = _arg_float_a1(rdram, ctx);
800
801 if (resource == nullptr || !resource->is_element()) {
802 recompui::message_box("Fatal error in mod - attempted to set value of non-element or element not found in context");
803 assert(false);
804 ultramodern::error_handling::quick_exit(__FILE__, __LINE__, __FUNCTION__);
805 }
806
807 Element* element = static_cast<Element*>(resource);
808 element->set_input_value_float(value);
809}
810
811void recompui_set_input_text(uint8_t* rdram, recomp_context* ctx) {
812 Style* resource = arg_style<0>(rdram, ctx);

Callers

nothing calls this directly

Calls 2

set_input_value_floatMethod · 0.80
is_elementMethod · 0.45

Tested by

no test coverage detected