mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-11 08:00:31 -04:00
Added wav file viewer
Fileman open now allows going into subdirectories Updated binary
This commit is contained in:
parent
40a71d32a2
commit
6e7b2c751f
11 changed files with 397 additions and 11 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue