GUI: highlight current macro position

not for op macros (yet)
This commit is contained in:
tildearrow 2022-08-20 01:10:30 -05:00
parent 24e3dec84f
commit f01be34b5e
5 changed files with 162 additions and 15 deletions

View file

@ -25,13 +25,13 @@
class DivEngine;
struct DivMacroStruct {
int pos;
int pos, lastPos;
int val;
bool has, had, actualHad, finished, will, linger;
unsigned int mode;
void doMacro(DivInstrumentMacro& source, bool released, bool tick);
void init() {
pos=mode=0;
pos=lastPos=mode=0;
has=had=actualHad=will=false;
linger=false;
// TODO: test whether this breaks anything?
@ -127,6 +127,13 @@ class DivMacroInt {
*/
void notifyInsDeletion(DivInstrument* which);
/**
* get DivMacroStruct by macro name.
* @param which the macro name.
* @return a DivMacroStruct, or NULL if none found.
*/
DivMacroStruct* structByName(const String& name);
DivMacroInt():
e(NULL),
ins(NULL),