Skip to content

Commit ee20570

Browse files
committed
Fix instrument text boxes clashing with layer names
I reserved text boxes for 240 instruments, not 256. Oops!
1 parent 3fedc24 commit ee20570

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

scripts/add_layer/add_layer.gml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function add_layer() {
5959
layerlock[l] = layerlock[l - 1]
6060
layervol[l] = layervol[l - 1]
6161
layerstereo[l] = layerstereo[l - 1]
62-
swap_text_edit(300 + l, 300 + l - 1)
62+
swap_text_edit(400 + l, 400 + l - 1)
6363
}
6464

6565
// Place layer back

scripts/control_draw/control_draw.gml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ function control_draw() {
907907
popup_set(x1 + 10, y1 + 10, 75, 13, "The name for this layer")
908908
draw_set_font(fnt_small)
909909
prev = layername[startb + b]
910-
layername[startb + b] = draw_text_edit(300 + startb + b, layername[startb + b], x1 + 11, y1 + 10, 72, 14, 1, 0)
910+
layername[startb + b] = draw_text_edit(400 + startb + b, layername[startb + b], x1 + 11, y1 + 10, 72, 14, 1, 0)
911911
if (layername[startb + b] = "") {
912912
draw_set_color(c_gray)
913913
if(theme = 2) draw_set_color(make_color_rgb(160, 160, 160))

scripts/remove_layer/remove_layer.gml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function remove_layer(argument0, argument1) {
5252
layerlock[l] = layerlock[l + 1]
5353
layervol[l] = layervol[l + 1]
5454
layerstereo[l] = layerstereo[l + 1]
55-
swap_text_edit(300 + l, 300 + l + 1)
55+
swap_text_edit(400 + l, 400 + l + 1)
5656
}
5757

5858
endb2 -= 1

scripts/shift_layers/shift_layers.gml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function shift_layers(argument0, argument1, argument2) {
5050
layerstereo[l2] = templayerstereo
5151

5252
// Swap name boxes
53-
swap_text_edit(300 + l1, 300 + l2)
53+
swap_text_edit(400 + l1, 400 + l2)
5454

5555
changed = 1
5656
if (!argument2) history_set(h_swaplayer, l1, l2)

0 commit comments

Comments
 (0)