Skip to content

Commit 653b2ce

Browse files
committed
Fix hardcoded rule preventing editing most instrument name boxes
There was a hardcoded rule in the text_edit code from when layer IDs were still >100. I have no clue why this is the case, but something may be implemented differently in the layer name boxes than the other text boxes. In any case, this is something else to keep in mind in case IDs have to be rearranged again. >_>
1 parent ee20570 commit 653b2ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/draw_text_edit/draw_text_edit.gml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ function draw_text_edit(argument0, argument1, argument2, argument3, argument4, a
506506
for (l = text_start[i]*!singleline; l < text_lines[i]; l += 1) {
507507
ly = l - text_start[i]*!singleline // Current line y value
508508
if ((ly + 1) * lh > h) break // Exit if beyond box
509-
if (window = 0 || i < 100) && ((mouseover && text_select = -1) || text_select = i) {
509+
if (window = 0 || i < 400) && ((mouseover && text_select = -1) || text_select = i) {
510510
if (l = text_lines[i] - 1) hh = h - ly * lh
511511
else hh = lh
512512
if ((mouse_x >= xx || text_select = i) &&

0 commit comments

Comments
 (0)