Skip to content

Commit 678a144

Browse files
committed
feat: remove 'loop to bar end' option
There WILL be backlash. Reverting in 3, 2, 1...
1 parent 290fffc commit 678a144

5 files changed

Lines changed: 14 additions & 14 deletions

File tree

scripts/control_create/control_create.gml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ function control_create() {
393393
loop = 0
394394
loopmax = 0
395395
loopstart = 0
396-
looptobarend = 1
396+
//looptobarend = 1
397397
timestoloop = loopmax
398398
settempo = 0 // Tempo input box clicked
399399
taptempo = 0 // Tempo in measuring

scripts/control_draw/control_draw.gml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ function control_draw() {
10601060
}
10611061
}
10621062
//loop song
1063-
if (loop_session = 1 && marker_pos > enda + 1 && (!looptobarend || marker_pos mod (timesignature * 4) < 1)) {
1063+
if (loop_session = 1 && marker_pos > enda + 1) { // && (!looptobarend || marker_pos mod (timesignature * 4) < 1)
10641064
--timestoloop
10651065
starta = loopstart
10661066
marker_pos = starta

scripts/draw_window_preferences/draw_window_preferences.gml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -553,14 +553,14 @@ function draw_window_preferences() {
553553
if (draw_checkbox(x1 + 40, y1 + (theme = 3) * 22 + 170, marker_start, "Start playing in section", "Whether to always start playing\nat the start of the active section.")) marker_start=!marker_start
554554
if (draw_checkbox(x1 + 40, y1 + (theme = 3) * 22 + 190, marker_end, "Stop playing after section", "Whether to stop playing when the\nmarker passes the active section.")) marker_end=!marker_end
555555
if (theme = 3) draw_theme_font(font_info_med)
556-
draw_areaheader(x1 + 22, y1 + 244 + (theme = 3) * 22, 218, 140, "Playing")
556+
draw_areaheader(x1 + 22, y1 + 244 + (theme = 3) * 22, 218, 120, "Playing")
557557
if (theme = 3) draw_theme_font(font_main)
558558
if (draw_checkbox(x1 + 32, y1 + 244 + 16 + (theme = 3) * 22, realvolume, "Show layer volumes", "Whether to show the volume of layers.")) realvolume=!realvolume
559559
if (draw_checkbox(x1 + 32, y1 + 264 + 16 + (theme = 3) * 22, realstereo, "Disable stereo", "Disables stereo playback.")) realstereo = !realstereo
560-
if (draw_checkbox(x1 + 32, y1 + 284 + 16 + (theme = 3) * 22, looptobarend, "Loop to bar end", "Loops to the end of the bar/measure.")) looptobarend = !looptobarend
561-
if (draw_checkbox(x1 + 32, y1 + 304 + 16 + (theme = 3) * 22, show_soundcount, "Show number of active sounds", "Displays the number of sounds that are\ncurrently playing in the status bar.")) show_soundcount = !show_soundcount
562-
if (draw_checkbox(x1 + 32, y1 + 324 + 16 + (theme = 3) * 22, channelstoggle, "Use more audio channels", "Whether to increase the number\nof sounds that can play at once.")) channelstoggle = !channelstoggle
563-
if (draw_checkbox(x1 + 32, y1 + 344 + 16 + (theme = 3) * 22, taskbar, "Enable taskbar indicator", "Whether to display the song\nprogress on the taskbar.")) taskbar = !taskbar
560+
//if (draw_checkbox(x1 + 32, y1 + 284 + 16 + (theme = 3) * 22, looptobarend, "Loop to bar end", "Loops to the end of the bar/measure.")) looptobarend = !looptobarend
561+
if (draw_checkbox(x1 + 32, y1 + 284 + 16 + (theme = 3) * 22, show_soundcount, "Show number of active sounds", "Displays the number of sounds that are\ncurrently playing in the status bar.")) show_soundcount = !show_soundcount
562+
if (draw_checkbox(x1 + 32, y1 + 304 + 16 + (theme = 3) * 22, channelstoggle, "Use more audio channels", "Whether to increase the number\nof sounds that can play at once.")) channelstoggle = !channelstoggle
563+
if (draw_checkbox(x1 + 32, y1 + 324 + 16 + (theme = 3) * 22, taskbar, "Enable taskbar indicator", "Whether to display the song\nprogress on the taskbar.")) taskbar = !taskbar
564564
if (theme = 3) draw_theme_font(font_info_med)
565565
draw_areaheader(x1 + 233 + 22, y1 + 244 + (theme = 3) * 22, 223, 60, "Tempo unit")
566566
if (theme = 3) draw_theme_font(font_main)
@@ -577,14 +577,14 @@ function draw_window_preferences() {
577577
if (draw_checkbox(x1 + 40, y1 + (theme = 3) * 22 + 170, marker_start, "在区间时开始播放", "有区间存在时是否在区间起始处开始播放。")) marker_start=!marker_start
578578
if (draw_checkbox(x1 + 40, y1 + (theme = 3) * 22 + 190, marker_end, "在区间后停止播放", "有区间存在时是否在区间结束处停止播放。")) marker_end=!marker_end
579579
if (theme = 3) draw_theme_font(font_info_med)
580-
draw_areaheader(x1 + 22, y1 + 244 + (theme = 3) * 22, 218, 140, "播放")
580+
draw_areaheader(x1 + 22, y1 + 244 + (theme = 3) * 22, 218, 120, "播放")
581581
if (theme = 3) draw_theme_font(font_main)
582582
if (draw_checkbox(x1 + 32, y1 + 244 + 16 + (theme = 3) * 22, realvolume, "显示每层音量", "是否显示每层的音量。")) realvolume=!realvolume
583583
if (draw_checkbox(x1 + 32, y1 + 264 + 16 + (theme = 3) * 22, realstereo, "关闭立体声", "关闭立体声音效。")) realstereo = !realstereo
584-
if (draw_checkbox(x1 + 32, y1 + 284 + 16 + (theme = 3) * 22, looptobarend, "循环至小节尾", "到小节尾再循环。")) looptobarend = !looptobarend
585-
if (draw_checkbox(x1 + 32, y1 + 304 + 16 + (theme = 3) * 22, show_soundcount, "显示正在播放的声音数", "在状态栏里显示正在播放的声音数。")) show_soundcount = !show_soundcount
586-
if (draw_checkbox(x1 + 32, y1 + 324 + 16 + (theme = 3) * 22, channelstoggle, "提升声音限制", "提升可同时播放的声音数。")) channelstoggle = !channelstoggle
587-
if (draw_checkbox(x1 + 32, y1 + 344 + 16 + (theme = 3) * 22, taskbar, "启用任务栏进度", "是否在任务栏显示当前歌曲的进度。")) taskbar = !taskbar
584+
//if (draw_checkbox(x1 + 32, y1 + 284 + 16 + (theme = 3) * 22, looptobarend, "循环至小节尾", "到小节尾再循环。")) looptobarend = !looptobarend
585+
if (draw_checkbox(x1 + 32, y1 + 284 + 16 + (theme = 3) * 22, show_soundcount, "显示正在播放的声音数", "在状态栏里显示正在播放的声音数。")) show_soundcount = !show_soundcount
586+
if (draw_checkbox(x1 + 32, y1 + 304 + 16 + (theme = 3) * 22, channelstoggle, "提升声音限制", "提升可同时播放的声音数。")) channelstoggle = !channelstoggle
587+
if (draw_checkbox(x1 + 32, y1 + 324 + 16 + (theme = 3) * 22, taskbar, "启用任务栏进度", "是否在任务栏显示当前歌曲的进度。")) taskbar = !taskbar
588588
if (theme = 3) draw_theme_font(font_info_med)
589589
draw_areaheader(x1 + 233 + 22, y1 + 244 + (theme = 3) * 22, 223, 60, "速度单位")
590590
if (theme = 3) draw_theme_font(font_main)

scripts/load_settings/load_settings.gml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function load_settings() {
5353
marker_end = ini_read_real( "preferences", "marker_end", marker_end)
5454
realvolume = ini_read_real( "preferences", "show_layer_volumes", realvolume)
5555
realstereo = ini_read_real( "preferences", "use_stereo", realstereo)
56-
looptobarend = ini_read_real( "preferences", "loop_to_bar_end", looptobarend)
56+
//looptobarend = ini_read_real( "preferences", "loop_to_bar_end", looptobarend)
5757
show_soundcount = ini_read_real( "preferences", "show_soundcount", show_soundcount)
5858
use_bpm = ini_read_real( "preferences", "use_bpm", use_bpm)
5959
save_version = ini_read_real( "preferences", "save_version", save_version)

scripts/save_settings/save_settings.gml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function save_settings() {
5151
ini_write_real_clean("preferences", "marker_end", marker_end)
5252
ini_write_real_clean("preferences", "show_layer_volumes", realvolume)
5353
ini_write_real_clean("preferences", "use_stereo", realstereo)
54-
ini_write_real_clean("preferences", "loop_to_bar_end", looptobarend)
54+
//ini_write_real_clean("preferences", "loop_to_bar_end", looptobarend)
5555
ini_write_real_clean("preferences", "show_soundcount", show_soundcount)
5656
ini_write_real_clean("preferences", "use_bpm", use_bpm)
5757
ini_write_real_clean("preferences", "save_version", save_version)

0 commit comments

Comments
 (0)