Skip to content

Commit a97ef15

Browse files
committed
2 parents 20c5eb4 + f4919e6 commit a97ef15

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

scripts/control_draw/control_draw.gml

+4-4
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ function control_draw() {
630630
if ((editmode != m_key) && (keyboard_check_pressed(ord("G"))) && !isplayer) mode_action(6)
631631
if (keyboard_check_pressed(ord("P"))) window = w_preferences
632632
if (language != 1) {
633-
if (keyboard_check_pressed(187) || mouse_wheel_up()) {
633+
if (keyboard_check_pressed(187) || (mouse_wheel_up() && mouse_check_button(mb_middle))) {
634634
if (window_scale >= 0.5 && window_scale < 0.67) {window_scale = 0.67 set_msg("Window Scale => 67%")}
635635
else if (window_scale < 0.75) {window_scale = 0.75 set_msg("Window Scale => 75%")}
636636
else if (window_scale < 0.8) {window_scale = 0.8 set_msg("Window Scale => 80%")}
@@ -645,7 +645,7 @@ function control_draw() {
645645
else if (window_scale < 3.5) {window_scale = 3.5 set_msg("Window Scale => 350%")}
646646
else if (window_scale < 4) {window_scale = 4 set_msg("Window Scale => 400%")}
647647
}
648-
if (keyboard_check_pressed(189) || mouse_wheel_down()) {
648+
if (keyboard_check_pressed(189) || (mouse_wheel_down() && mouse_check_button(mb_middle))) {
649649
if (window_scale <= 4 && window_scale > 3.5) {window_scale = 3.5 set_msg("Window Scale => 350%")}
650650
else if (window_scale > 3) {window_scale = 3 set_msg("Window Scale => 300%")}
651651
else if (window_scale > 2.5) {window_scale = 2.5 set_msg("Window Scale => 250%")}
@@ -661,7 +661,7 @@ function control_draw() {
661661
else if (window_scale > 0.5) {window_scale = 0.5 set_msg("Window Scale => 50%")}
662662
}
663663
} else {
664-
if (keyboard_check_pressed(187) || mouse_wheel_up()) {
664+
if (keyboard_check_pressed(187) || (mouse_wheel_up() && mouse_check_button(mb_middle))) {
665665
if (window_scale >= 0.5 && window_scale < 0.67) {window_scale = 0.67 set_msg("窗口缩放 => 67%")}
666666
else if (window_scale < 0.75) {window_scale = 0.75 set_msg("窗口缩放 => 75%")}
667667
else if (window_scale < 0.8) {window_scale = 0.8 set_msg("窗口缩放 => 80%")}
@@ -676,7 +676,7 @@ function control_draw() {
676676
else if (window_scale < 3.5) {window_scale = 3.5 set_msg("窗口缩放 => 350%")}
677677
else if (window_scale < 4) {window_scale = 4 set_msg("窗口缩放 => 400%")}
678678
}
679-
if (keyboard_check_pressed(189) || mouse_wheel_down()) {
679+
if (keyboard_check_pressed(189) || (mouse_wheel_down() && mouse_check_button(mb_middle))) {
680680
if (window_scale <= 4 && window_scale > 3.5) {window_scale = 3.5 set_msg("窗口缩放 => 350%")}
681681
else if (window_scale > 3) {window_scale = 3 set_msg("窗口缩放 => 300%")}
682682
else if (window_scale > 2.5) {window_scale = 2.5 set_msg("窗口缩放 => 250%")}

scripts/macros/macros.gml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function macros() {
22
#macro gm_runtime_version "2.3.3.437"
3-
#macro version_date "2021.09.12"
3+
#macro version_date "2021.09.13"
44
#macro version "3.9.0"
55
#macro snapshot 1 // remember to change to 0 in the release!
66
#macro nbs_version 5

0 commit comments

Comments
 (0)