Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Variable for positioning
- screenCenterWidth = room_width div 2;
- // Set text alignment and color.
- draw_set_color(c_white);
- draw_set_halign(fa_center);
- draw_set_valign(fa_middle);
- // Loops through each of the buttons. The loop checks to see if it's within the amount of buttons we have defined.
- for (i = 0; i < startChoices; i++) {
- var subImage;
- if selectedChoice == i {
- if keyboard_check(global.buttonAccept)
- subImage = 2;
- else
- subImage = 1;
- }
- else subImage = 0;
- draw_sprite(spr_MenuButton, subImage, screenCenterWidth, 64 * (i +1));
- draw_text(screenCenterWidth, 64 * (i + 1), startChoiceArray[i]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement