mirror of
https://github.com/PoshoDev/DexTool.git
synced 2026-08-20 09:34:12 -05:00
Reordering a bit.
This commit is contained in:
18
Project/scripts/scroll_check/scroll_check.gml
Normal file
18
Project/scripts/scroll_check/scroll_check.gml
Normal file
@@ -0,0 +1,18 @@
|
||||
if (mouse_wheel_up() || keyboard_check_pressed(vk_up))
|
||||
{
|
||||
global.current_box--;
|
||||
|
||||
if (global.current_box < 1)
|
||||
global.current_box = 1;
|
||||
else
|
||||
scroll_do();
|
||||
}
|
||||
else if (mouse_wheel_down() || keyboard_check_pressed(vk_down))
|
||||
{
|
||||
global.current_box++;
|
||||
|
||||
if (global.current_box > global.box_count-1)
|
||||
global.current_box = global.box_count-1;
|
||||
else
|
||||
scroll_do();
|
||||
}
|
||||
Reference in New Issue
Block a user