Skip to content

Commit 9d17e36

Browse files
committed
Remove auto-save from the song properties window
No longer per-song, it's now a global setting.
1 parent 0029b27 commit 9d17e36

File tree

1 file changed

+14
-34
lines changed

1 file changed

+14
-34
lines changed

scripts/draw_window_properties/draw_window_properties.gml

Lines changed: 14 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ var x1, y1, a;
33
curs = cr_default
44
text_exists[0] = 0
55
x1 = floor(window_width / 2 - 220)
6-
y1 = floor(window_height / 2 - 215)
7-
draw_window(x1, y1, x1 + 440, y1 + 430)
6+
y1 = floor(window_height / 2 - 180)
7+
draw_window(x1, y1, x1 + 440, y1 + 360)
88
draw_set_font(fnt_mainbold)
99
draw_text(x1 + 8, y1 + 8, "Song Properties")
1010
draw_set_font(fnt_main)
1111
if (theme = 0) {
1212
draw_set_color(c_white)
13-
draw_rectangle(x1 + 6, y1 + 26, x1 + 434, y1 + 392, 0)
13+
draw_rectangle(x1 + 6, y1 + 26, x1 + 434, y1 + 322, 0)
1414
draw_set_color(make_color_rgb(137, 140, 149))
15-
draw_rectangle(x1 + 6, y1 + 26, x1 + 434, y1 + 392, 1)
15+
draw_rectangle(x1 + 6, y1 + 26, x1 + 434, y1 + 322, 1)
1616
}
1717
draw_areaheader(x1 + 22, y1 + 48, 396, 200, "Information")
1818

@@ -41,38 +41,18 @@ a = song_desc
4141
song_desc = draw_textarea(4, x1 + 158, y1 + 64 + 23 * 3, 240, 100, song_desc, "Enter a description for your song.")
4242
if (a != song_desc) changed = 1
4343

44-
draw_areaheader(x1 + 22, y1 + 270, 396, 70, "Auto-saving")
45-
a = autosave
46-
if (draw_checkbox(x1 + 40, y1 + 290, autosave, "Enable auto-saving", "Whether the song should automatically\nbe saved every now and then.")) autosave=!autosave
47-
if (a != autosave) {
48-
changed = 1
49-
if (autosave = 0) tonextsave = 0
50-
if (autosave = 1) tonextsave = autosavemins
51-
}
52-
draw_theme_color()
53-
if (autosave = 0) {
54-
draw_set_color(c_white)
55-
draw_text(x1 + 71, y1 + 311, "Minutes between savings:")
56-
draw_set_color(8421504)
57-
}
58-
draw_text(x1 + 70, y1 + 310, "Minutes between savings:")
59-
a = autosavemins
60-
autosavemins = median(1, draw_dragvalue(2, x1 + 220, y1 + 310, autosavemins, 1, !autosave), 60)
61-
if (autosavemins != a) {changed = 1 tonextsave = autosavemins}
62-
popup_set_window(x1 + 70, y1 + 310, 180, 16, "The amount of minutes between each auto-save.")
63-
6444
draw_theme_color()
65-
draw_text(x1 + 32, y1 + 348, "Time signature:")
66-
timesignature = median(2, draw_dragvalue(3, x1 + 120, y1 + 348, timesignature, 1), 8)
67-
draw_text(x1 + 120 + string_width(string(timesignature)), y1 + 348, " / 4")
68-
popup_set_window(x1 + 32, y1 + 346, 110, 18, "The time signature of the song.")
45+
draw_text(x1 + 32, y1 + 270, "Time signature:")
46+
timesignature = median(2, draw_dragvalue(3, x1 + 120, y1 + 270, timesignature, 1), 8)
47+
draw_text(x1 + 120 + string_width(string(timesignature)), y1 + 270, " / 4")
48+
popup_set_window(x1 + 32, y1 + 268, 110, 18, "The time signature of the song.")
6949

70-
draw_text(x1 + 232, y1 + 348, "Loop start tick:")
71-
loopstart = median(0, draw_dragvalue(7, x1 + 320, y1 + 348, loopstart, 0.5), obj_controller.enda)
50+
draw_text(x1 + 232, y1 + 270, "Loop start tick:")
51+
loopstart = median(0, draw_dragvalue(7, x1 + 320, y1 + 270, loopstart, 0.5), obj_controller.enda)
7252

73-
draw_text(x1 + 232, y1 + 368, "Times to loop:")
74-
loopmax = median(0, draw_dragvalue(13, x1 + 320, y1 + 368, loopmax, 0.5), 10)
75-
if loopmax = 0 draw_text(x1 + 340, y1 + 368, "(infinite)")
53+
draw_text(x1 + 232, y1 + 290, "Times to loop:")
54+
loopmax = median(0, draw_dragvalue(13, x1 + 320, y1 + 290, loopmax, 0.5), 10)
55+
if loopmax = 0 draw_text(x1 + 340, y1 + 290, "(infinite)")
7656
timestoloop = loopmax
77-
if (draw_button2(x1 + 320, y1 + 398, 72, "OK")) {window = 0}
57+
if (draw_button2(x1 + 320, y1 + 328, 72, "OK")) {window = 0}
7858
window_set_cursor(curs)

0 commit comments

Comments
 (0)