Summary A simple scrolling window. It can show as many choices as you want using the mouse, and has an up/down button to scroll or you can use the mouse wheel!
Setup Copy/Pasted from the code:
//Scrolling Windows Example By Ventwig
//Here, we set up the list //I recommend keeping the name because you'll need to change alot, but you can. //You can add as many choices as you'd like scroll = ds_list_create(); ds_list_add(scroll,"Red"); ds_list_add(scroll,"Blue"); ds_list_add(scroll,"Yellow"); ds_list_add(scroll,"Green"); ds_list_add(scroll,"Orange"); ds_list_add(scroll,"Purple"); ds_list_add(scroll,"Aqua"); ds_list_add(scroll,"Gray");
//These are all of the variables for the window. scr = 0; //Which choice you start on scr_size = 5; //How many choices to show colour = ds_list_find_value(scroll,scr); //This assigns the colour to whichever it starts as (see scr)
drawx = 100; //The x position to start drawing the list drawy = 50; //The y " "
//These make the up/down buttons. The down is always directly under up, and these //x and y - position to start //w and h - how thick button_x = 50; button_w = 25; button_y = 50; button_h = 25;
//These are just like the draw_rectangle() function. window_x = 25; window_y = 25; window_x2 = 500; window_y2 = 300;
Well, that's pretty much all I can say here. Version Update
Version 1 -Started up
Version 1.1 - Doubled the colours to show effects better, and added mouse wheel!
Up/Down 5 buttons
Mouse wheel control
Animating choices (Highlighting your current choice)