okyeron / OMX-27

157 stars 38 forks source link

generic message display system #34

Closed ftsf closed 2 years ago

ftsf commented 2 years ago

replaces info dialog.

can use format strings, times out after MESSAGE_DISPLAY_TIME (currently 1 second)

MESSAGE("something");
MESSAGE("something %d", someint);
okyeron commented 2 years ago

a programmer friend suggested vsnprintf would be better than snprintf so the above commit is a rework to do that - removing the MESSAGE macro and just using a function instead.

Same result with displayMessagef("COPIED P%d", sequencer.playingPattern + 1); etc.

Also added messages for mute/unmute and entering stepRecord.

ftsf commented 2 years ago

nice! changes look good to me!