You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #include "rack.hpp"
- #include "ui.hpp"
- #include "ParamFloatField.hpp"
-
- ParamFloatField::ParamFloatField(Module *_module)
- {
- module = _module;
- }
-
- void ParamFloatField::setValue(float value) {
- this->hovered_value = value;
- // this->module->param_value = value;
- EventChange e;
- onChange(e);
- }
-
- void ParamFloatField::onChange(EventChange &e) {
- std::string new_text = stringf("%#.4g", hovered_value);
- setText(new_text);
- }
|