Skip to content

Commit d060f08

Browse files
committed
Fix wrong compatibility indicator.
1 parent 71224df commit d060f08

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

scripts/control_draw/control_draw.gml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ if (delay < 0) delay = 0
1717
work_mins += 1 / (room_speed * 60)
1818

1919
if (selected = 0) {
20-
if(tempo = 10 || tempo = 5 ||tempo = 2.5 && (block_outside = 0 && block_custom = 0))compatible = 1
21-
else if (tempo = 20 || tempo = 6.66 || tempo = 4|| tempo = 3.33 || tempo = 2.86 && (block_outside = 0 && block_custom = 0))compatible = 2
20+
if((tempo = 10 || tempo = 5 ||tempo = 2.5) && (block_outside = 0 && block_custom = 0))compatible = 1
21+
else if ((tempo = 20 || tempo = 6.66 || tempo = 4|| tempo = 3.33 || tempo = 2.86) && (block_outside = 0 && block_custom = 0))compatible = 2
2222
else compatible = 0
2323
}
2424

@@ -805,18 +805,18 @@ break
805805
// Compatible
806806
draw_set_font(fnt_mainbold)
807807
if(compatible = 0){
808-
draw_sprite(spr_minecraft, 1, rw - 120, 24)
808+
draw_sprite(spr_minecraft, 1, rw - 130, 24)
809809
draw_set_color(c_red)
810-
draw_text(rw - 95, 28, "Not compatible")
810+
draw_text(rw - 105, 28, "Not compatible")
811811
draw_set_color(0)
812812
draw_set_font(fnt_main)
813813
popup_set(rw - compx, 24, compx, 25, "This song is not compatible with Minecraft.\n(Click for more info.)")
814814

815815
}else if (compatible = 2){
816816
compx = 155
817-
draw_sprite(spr_minecraft, 2, rw - 155, 24)
817+
draw_sprite(spr_minecraft, 2, rw - 165, 24)
818818
draw_set_color(c_orange)
819-
draw_text(rw - 130, 28, "Datapack compatible")
819+
draw_text(rw - 140, 28, "Datapack compatible")
820820
draw_set_color(0)
821821
draw_set_font(fnt_main)
822822
popup_set(rw - compx, 24, compx, 25, "This song is compatible with Minecraft Datapacks.\n(Click for more info.)")

scripts/draw_window_minecraft/draw_window_minecraft.gml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if (tempo = 10 || tempo = 5 || tempo = 2.5) {
3232
} else if(tempo = 20 || tempo = 6.66 || tempo = 4 || tempo = 3.33 || tempo = 2.86){
3333
draw_set_color(c_orange)
3434
draw_text(x1 + 40, yy + 45, "The tempo is datapack compatible")
35-
if (draw_button2(x1 + 40, yy + 65, 120, "Fix tempo for schematic")) {
35+
if (draw_button2(x1 + 40, yy + 65, 145, "Fix tempo for schematic")) {
3636
var otempo;
3737
otempo = tempo
3838
if (otempo > 10) tempo = 10
@@ -43,7 +43,7 @@ if (tempo = 10 || tempo = 5 || tempo = 2.5) {
4343
}else{
4444
draw_set_color(c_red)
4545
draw_text(x1 + 40, yy + 45, "The tempo is " + string(tempo) + " ticks per second.")
46-
if (draw_button2(x1 + 40, yy + 65, 120, "Fix tempo for datapack")) {
46+
if (draw_button2(x1 + 40, yy + 65, 140, "Fix tempo for datapack")) {
4747
var otempo;
4848
otempo = tempo
4949
if (otempo > 20) tempo = 20

0 commit comments

Comments
 (0)