@@ -797,13 +797,12 @@ for (b = 0; b < totalrows; b += 1) {
797797 rowamount[startb + b] = 0
798798 endb2 = startb + b + 1
799799 }
800+ x1 = 4
801+ y1 = 54 + 32 + b * 32 - 1
800802 if (show_layers) {
801- x1 = 4
802- y1 = 54 + 32 + b * 32 - 1
803803 // Name
804+ m = mouse_rectangle (x1 + 10 , y1 + 10 , 75 , 13 )
804805 draw_sprite (spr_layerbox, 0 + (theme = 2 ), x1, y1)
805-
806- m = mouse_rectangle (x1 + 10 , y1 + 10 , 75 , 13 )
807806 popup_set (x1 + 10 , y1 + 10 , 75 , 13 , " The name for this layer" )
808807 draw_set_font (fnt_small)
809808 layername[startb + b] = draw_text_edit (100 + startb + b, layername[startb + b], x1 + 11 , y1 + 10 , 72 , 14 , 1 , 0 )
@@ -926,28 +925,28 @@ for (b = 0; b < totalrows; b += 1) {
926925 window2 = 0
927926 }
928927 }
929- // Macro Bar
930- if selected != 0 {
931- draw_sprite_ext (spr_iconbar, 0 , x1, y1+ 32 , 1 , 1.3 , 0 , - 1 , 1 )
932- draw_sprite_ext (spr_iconbar, 1 , x1, y1+32 , 258 , 1.3 , 0 , -1 , 1 )
933- draw_sprite_ext (spr_iconbar, 2 , 258 , y1+32 , 1 , 1.3 , 0 , -1 , 1 )
934- xx = x1 + 6
935- var yy = y1+ 37
936- if ( draw_macroicon ( 0 , xx, yy, " Tremolo " , 0 , 0 )) {playing = 0 window = w_tremolo} xx += 25
937- if (draw_macroicon (1 , xx, yy, " Stereo " , 0 , 0 )) {playing = 0 window = w_stereo } xx += 25
938- if (draw_macroicon (2 , xx, yy, " Arpeggio " , 0 , 0 )) {playing = 0 window = w_arpeggio } xx += 25
939- if (draw_macroicon (3 , xx, yy, " Portamento " , 0 , 0 )) {playing = 0 window = w_portamento } xx += 25
940- if (draw_macroicon (4 , xx, yy, " Vibrato " , 0 , 0 )) {playing = 0 macro_vibrato () } xx += 25
941- if (draw_macroicon (5 , xx, yy, " Stagger " , 0 , 0 )) {playing = 0 window = w_stagger } xx += 25
942- if (draw_macroicon (6 , xx, yy, " Chorus " , 0 , 0 )) {playing = 0 macro_chorus () } xx += 25
943- if (draw_macroicon (7 , xx, yy, " Volume LFO " , 0 , 0 )) {playing = 0 macro_velocitylfo ()} xx += 25
944- if (draw_macroicon (8 , xx, yy, " Fade In " , 0 , 0 )) {playing = 0 macro_fadein ()} xx += 25
945- if (draw_macroicon (9 , xx, yy, " Fade Out " , 0 , 0 )) {playing = 0 macro_fadeout ()} xx = x1 + 6
946- if (draw_macroicon (10 , xx, yy + 16 , " Replace Key " , 0 , 0 )) {playing = 0 macro_replacekey ()} xx += 25
947- if (draw_macroicon (11 , xx, yy + 16 , " Set Velocity " , 0 , 0 )) {playing = 0 window = w_setvelocity } xx += 25
948- if (draw_macroicon (12 , xx, yy + 16 , " Set Panning " , 0 , 0 )) {playing = 0 window = w_setpanning } xx += 25
949- if (draw_macroicon (13 , xx, yy + 16 , " Reset " , 0 , 0 )) {playing = 0 macro_reset () } xx += 25
950- }
928+ }
929+ // Macro Bar
930+ if selected != 0 {
931+ draw_sprite_ext (spr_iconbar, 0 , x1, y1+32 ,1 , 1.3 , 0 , -1 , 1 )
932+ draw_sprite_ext (spr_iconbar, 1 , x1 , y1+32 , 258 , 1.3 , 0 , -1 , 1 )
933+ draw_sprite_ext (spr_iconbar, 2 , 258 , y1+ 32 , 1 , 1.3 , 0 , - 1 , 1 )
934+ xx = x1 + 6
935+ var yy = y1+ 37
936+ if (draw_macroicon (0 , xx, yy, " Tremolo " , 0 , 0 )) {playing = 0 window = w_tremolo } xx += 25
937+ if (draw_macroicon (1 , xx, yy, " Stereo " , 0 , 0 )) {playing = 0 window = w_stereo } xx += 25
938+ if (draw_macroicon (2 , xx, yy, " Arpeggio " , 0 , 0 )) {playing = 0 window = w_arpeggio } xx += 25
939+ if (draw_macroicon (3 , xx, yy, " Portamento " , 0 , 0 )) {playing = 0 window = w_portamento } xx += 25
940+ if (draw_macroicon (4 , xx, yy, " Vibrato " , 0 , 0 )) {playing = 0 macro_vibrato () } xx += 25
941+ if (draw_macroicon (5 , xx, yy, " Stagger " , 0 , 0 )) {playing = 0 window = w_stagger } xx += 25
942+ if (draw_macroicon (6 , xx, yy, " Chorus " , 0 , 0 )) {playing = 0 macro_chorus ()} xx += 25
943+ if (draw_macroicon (7 , xx, yy, " Volume LFO " , 0 , 0 )) {playing = 0 macro_velocitylfo ()} xx += 25
944+ if (draw_macroicon (8 , xx, yy, " Fade In " , 0 , 0 )) {playing = 0 macro_fadein ()} xx += 25
945+ if (draw_macroicon (9 , xx, yy, " Fade Out " , 0 , 0 )) {playing = 0 macro_fadeout ()} xx = x1 + 6
946+ if (draw_macroicon (10 , xx, yy + 16 , " Replace Key " , 0 , 0 )) {playing = 0 macro_replacekey () } xx += 25
947+ if (draw_macroicon (11 , xx, yy + 16 , " Set Velocity " , 0 , 0 )) {playing = 0 window = w_setvelocity } xx += 25
948+ if (draw_macroicon (12 , xx, yy + 16 , " Set Panning " , 0 , 0 )) {playing = 0 window = w_setpanning } xx += 25
949+ if ( draw_macroicon ( 13 , xx, yy + 16 , " Reset " , 0 , 0 )) {playing = 0 macro_reset ()} xx += 25
951950}
952951
953952// Tabs
0 commit comments