mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 06:53:01 +00:00
the final macro changes. this is real 0.5.5
This commit is contained in:
parent
ae44cabba8
commit
e115d9e23b
2 changed files with 10 additions and 6 deletions
|
@ -10,10 +10,14 @@
|
|||
if (has) { \
|
||||
val=source[pos++]; \
|
||||
if (sourceRel>=0 && pos>sourceRel && !released) { \
|
||||
pos--; \
|
||||
if (sourceLoop<sourceLen && sourceLoop>=0 && sourceLoop<sourceRel) { \
|
||||
pos=sourceLoop; \
|
||||
} else { \
|
||||
pos--; \
|
||||
} \
|
||||
} \
|
||||
if (pos>=sourceLen) { \
|
||||
if (sourceLoop<sourceLen && sourceLoop>=0) { \
|
||||
if (sourceLoop<sourceLen && sourceLoop>=0 && (sourceLoop>=sourceRel || sourceRel>=sourceLen)) { \
|
||||
pos=sourceLoop; \
|
||||
} else { \
|
||||
has=false; \
|
||||
|
|
|
@ -1441,10 +1441,10 @@ String macroHoverLoop(int id, float val) {
|
|||
asFloat[j]=macro[j+macroDragScroll]+macroDispMin; \
|
||||
asInt[j]=macro[j+macroDragScroll]+macroDispMin+bitOff; \
|
||||
} \
|
||||
if (j+macroDragScroll>=macroLen) { \
|
||||
if (j+macroDragScroll>=macroLen || (j+macroDragScroll>macroRel && macroLoop<macroRel)) { \
|
||||
loopIndicator[j]=0; \
|
||||
} else { \
|
||||
loopIndicator[j]=(macroLoop!=-1 && (j+macroDragScroll)>=macroLoop)|((macroRel!=-1 && (j+macroDragScroll)==macroRel)<<1); \
|
||||
loopIndicator[j]=((macroLoop!=-1 && (j+macroDragScroll)>=macroLoop))|((macroRel!=-1 && (j+macroDragScroll)==macroRel)<<1); \
|
||||
} \
|
||||
} \
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding,ImVec2(0.0f,0.0f)); \
|
||||
|
@ -1527,10 +1527,10 @@ String macroHoverLoop(int id, float val) {
|
|||
asFloat[j]=macro[j+macroDragScroll]; \
|
||||
asInt[j]=macro[j+macroDragScroll]; \
|
||||
} \
|
||||
if (j+macroDragScroll>=macroLen) { \
|
||||
if (j+macroDragScroll>=macroLen || (j+macroDragScroll>macroRel && macroLoop<macroRel)) { \
|
||||
loopIndicator[j]=0; \
|
||||
} else { \
|
||||
loopIndicator[j]=(macroLoop!=-1 && (j+macroDragScroll)>=macroLoop)|((macroRel!=-1 && (j+macroDragScroll)==macroRel)<<1); \
|
||||
loopIndicator[j]=((macroLoop!=-1 && (j+macroDragScroll)>=macroLoop))|((macroRel!=-1 && (j+macroDragScroll)==macroRel)<<1); \
|
||||
} \
|
||||
} \
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding,ImVec2(0.0f,0.0f)); \
|
||||
|
|
Loading…
Reference in a new issue