mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-25 15:37:49 +00:00
Added wav file viewer
Fileman open now allows going into subdirectories Updated binary
This commit is contained in:
@@ -1236,6 +1236,10 @@ void NumberField::set_range(const int32_t min, const int32_t max) {
|
||||
set_value(value(), false);
|
||||
}
|
||||
|
||||
void NumberField::set_step(const int32_t new_step) {
|
||||
step = new_step;
|
||||
}
|
||||
|
||||
void NumberField::paint(Painter& painter) {
|
||||
const auto text = to_string_dec_int(value_, length_, fill_char);
|
||||
|
||||
|
@@ -535,6 +535,7 @@ public:
|
||||
int32_t value() const;
|
||||
void set_value(int32_t new_value, bool trigger_change = true);
|
||||
void set_range(const int32_t min, const int32_t max);
|
||||
void set_step(const int32_t new_step);
|
||||
|
||||
void paint(Painter& painter) override;
|
||||
|
||||
@@ -544,7 +545,7 @@ public:
|
||||
|
||||
private:
|
||||
range_t range;
|
||||
const int32_t step;
|
||||
int32_t step;
|
||||
const int length_;
|
||||
const char fill_char;
|
||||
int32_t value_ { 0 };
|
||||
|
Reference in New Issue
Block a user