Skip to content

Commit c1e9c04

Browse files
committed
fix column and grid menu scroll alpha
(cherry picked from commit 5b37a1f)
1 parent 8004d5a commit c1e9c04

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

current-scripts/Demos/useful-scripts/objects/obj_column_menu/Draw_0.gml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ for (var i=view_area.x; i<=view_area.y; i++) {
1919
} else if (view_scroll_progress_y.v > 0 && i == view_area.x) {
2020
// Scroll down first element
2121
draw_set_alpha(1-abs(view_scroll_progress_y.v));
22+
} else {
23+
draw_set_alpha(1);
2224
}
2325
}
2426

current-scripts/Demos/useful-scripts/objects/obj_grid_menu/Draw_0.gml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ for (var i=view_area.left; i<=view_area.right; i++) {
2525
} else if (view_scroll_progress_x.v > 0 && i == view_area.left) {
2626
// Scroll right first element
2727
draw_set_alpha(1-abs(view_scroll_progress_x.v));
28+
} else {
29+
draw_set_alpha(1);
2830
}
2931
}
3032

@@ -35,6 +37,8 @@ for (var i=view_area.left; i<=view_area.right; i++) {
3537
} else if (view_scroll_progress_y.v > 0 && j == view_area.top) {
3638
// Scroll down first element
3739
draw_set_alpha(1-abs(view_scroll_progress_y.v));
40+
} else {
41+
draw_set_alpha(1);
3842
}
3943
}
4044

0 commit comments

Comments
 (0)