Skip to content

Commit f945ba2

Browse files
committed
Change stereo panning popup to L 100/R 100 instead of 0-200%
Also made the hover text for the stereo icon a bit more centered
1 parent d269267 commit f945ba2

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

scripts/control_draw/control_draw.gml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -867,13 +867,17 @@ for (b = 0; b < totalrows; b += 1) {
867867
a = layerstereo[startb + b]
868868
}
869869
draw_sprite_ext(spr_stereo, a / 50, x1 + 110, y1 + 11 - c * 5, 1, 1, 0, iconcolor, 0.7)
870-
popup_set(x1 + 110, y1 + 5, 12, 17, "Stereo Pan: " + string(a) + "%\n(Click and drag to change)")
870+
var stereostr
871+
if (a > 100) { stereostr = "R " + string(a-100) }
872+
if (a = 100) { stereostr = "Center" }
873+
if (a < 100) { stereostr = "L " + string(-(a-100)) }
874+
popup_set(x1 + 110, y1 + 5, 12, 17, "Stereo pan: " + stereostr + "\n(Click and drag to change)")
871875
if (c) {
872876
draw_set_font(fnt_small)
873877
draw_set_halign(fa_center)
874-
if a > 100 {draw_text(x1 + 120, y1 + 18, "R " + string(a-100))}
875-
if a = 100 {draw_text(x1 + 120, y1 + 18, "MONO")}
876-
if a < 100 {draw_text(x1 + 120, y1 + 18, "L " + string((a-100)*-1)) }
878+
if a > 100 {draw_text(x1 + 116, y1 + 18, "R " + string(a-100))}
879+
if a = 100 {draw_text(x1 + 116, y1 + 18, "MONO")}
880+
if a < 100 {draw_text(x1 + 116, y1 + 18, "L " + string((a-100)*-1)) }
877881
draw_set_halign(fa_left)
878882
draw_set_font(fnt_main)
879883
curs = cr_size_ns

0 commit comments

Comments
 (0)