Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// Test menu control and variables (create event 1)
- /* testmenu values (selection values)
- 0 - main
- 0 - info display
- 1 - account create test
- 1 - info display
- 2 - account create test
- */
- randomize();
- testmenu = 0;
- selection = 0;
- /* account create values
- 0 - input login name (up to 8 characters)
- 1 - input display name
- 2 - input password
- 3 - re-input password
- 4 - password success
- errors
- 5 - blank login name
- 6 - existing login name
- 7 - blacklisted login name
- 8 - blank display name
- 9 - existing display name
- 10 - blacklisted display name
- 11 - non-matching password re-enter
- */
- acctcreate = 0;
- attempt = 0; // Recycle on acctlogin
- selectx = 0; // Recycle on acctlogin
- selecty = 0; // Recycle on acctlogin
- xwidth = 7; // Recycle on acctlogin
- yheight = 4; // Recycle on acctlogin
- newlogin = "";
- newdisp = "";
- newpass = "";
- passver = "";
- actives = "";
- retrytimer = 0; // For account creation
- /* account login values
- 0 - input login name (up to 8 characters)
- 1 - input password
- 2 - password success
- errors
- 3 - blank login name
- 4 - login does not exist
- 5 - password failure
- */
- acctlogin = 0; // Recycle variables above from registration
- loginname = "";
- logindisp = "";
- loginpass = "";
- retrytimer2 = 0;
- retrytime = 180; // Change this value to raise or lower period before retrying.
- loginchar = "ABCDEFGHIJKLMNOPQRSTUVWXYZ."; // Login name only accepts capitals and a period
- dispcap = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; // Display name can accept capitals, lowercase, numbers, and select symbols
- displow = "abcdefghijklmnopqrstuvwxyz"; // Shop name also uses the same character range as display name
- dispsym = "0123456789 !?+-*/%&@$.,:~^_()";
- dispchar = dispcap + displow + dispsym;
- testcats[3] = "ACCOUNT LOGIN TEST";
- testcats[2] = "ACCOUNT NAME DISPLAY TEST";
- testcats[1] = "ACCOUNT CREATION TEST";
- testcats[0] = "INFORMATION DISPLAY TEST";
- p1_up = vk_up;
- p1_down = vk_down;
- p1_left = vk_left;
- p1_right = vk_right;
- p1_but1 = ord('Z');
- p1_but2 = ord('X');
- p1_but3 = ord('C');
- p1_start = ord('1');
- /// Information parsing and display variables (create event 2)
- globalvar sectsep, subsectsep, normalsep;
- letterheight = string_height("F");
- spacing = 24;
- //testfile = file_text_open_write("acct.txt");
- teststring = "acctid;signin`display`password`playcount;time_solobs`time_solobp:time_coopbst`time_coopbs1`time_coopbs2`time_coopbpn;rival1id`rival2id`rival3id";
- mainstring = "0000-0000;JOHTOKEN`Aru Azumaya`SJSU Game Dev Club`0120210`123;12345678900`8`1:12345678900`8`6172839450`6172839450`1`DDRKirbyISQ;1111-1111`2222-2222`3333-3333";
- // file_text_write_string(testfile, mainstring);
- //file_text_close(testfile);
- sectsep = ";";
- subsectsep = ":";
- normalsep = "`";
- sectioncount = string_count(sectsep, mainstring);
- show_debug_message("debug section count: " + string(sectioncount));
- section[3] = token_parse_string(mainstring, sectsep, 3); // Rival IDs
- section[2] = token_parse_string(mainstring, sectsep, 2); // Best scores and placement on machine leaderboard
- subsect[1] = token_parse_string(section[2], subsectsep, 1); // Co-op bests
- subsect[0] = token_parse_string(section[2], subsectsep, 0); // Solo bests
- section[1] = token_parse_string(mainstring, sectsep, 1); // Login name, display name, home machine, password, and play count
- section[0] = token_parse_string(mainstring, sectsep, 0); // Account ID
- // Information will be stored in a 2D array; first digit is order of information while second digit is for player
- info[0,0] = string(section[0]); // Account ID (####-####)
- info[1,0] = token_parse_string(section[1], normalsep, 0); // Login name (up to 8 characters, ALL CAPS and a period accepted)
- info[2,0] = token_parse_string(section[1], normalsep, 1); // Display name (up to 12 characters, capitals and lowercase accepted as well as select symbols)
- info[3,0] = token_parse_string(section[1], normalsep, 2); // Home cabinet (up to 20 characters, set by the machine owner)
- info[4,0] = token_parse_string(section[1], normalsep, 3); // Password (7 inputs out of 3 buttons)
- info[5,0] = token_parse_string(section[1], normalsep, 4); // Play count
- info[6,0] = token_parse_string(subsect[0], normalsep, 0); // Solo best score
- info[7,0] = token_parse_string(subsect[0], normalsep, 1); // Solo highest shift
- info[8,0] = token_parse_string(subsect[0], normalsep, 2); // Solo highest placement in local leaderboards
- info[9,0] = token_parse_string(subsect[1], normalsep, 0); // Co-op best overall score
- info[10,0] = token_parse_string(subsect[1], normalsep, 1); // Co-op highest shift
- info[11,0] = token_parse_string(subsect[1], normalsep, 2); // Co-op account holder score
- info[12,0] = token_parse_string(subsect[1], normalsep, 3); // Co-op partner score
- info[13,0] = token_parse_string(subsect[1], normalsep, 4); // Co-op highest placement in local leaderboards
- info[14,0] = token_parse_string(subsect[1], normalsep, 5); // Co-op partner name
- info[15,0] = token_parse_string(section[3], normalsep, 0); // Rival 1 ID
- info[16,0] = token_parse_string(section[3], normalsep, 1); // Rival 2 ID
- info[17,0] = token_parse_string(section[3], normalsep, 2); // Rival 3 ID
- /// Adding used names to a variable list on boot (create event 3)
- acctfile = file_text_open_read("acct.txt");
- loginlist = "";
- displist = "";
- blacklist = "shit`shyt`shyte`fuck`fack`dick`penis`cunt`bitch`cock`piss`pussy`asshole`arse`fag`bastard`slut`douche`cum`nakadashi`nakadasi`manko`manco`chinchin`tintin`chintin`tinchin`chinko`tinko`paizuri`futanari`oppai`unko`tits`titties`anal";
- while (!file_text_eof(acctfile)) {
- var oneacct = token_parse_string(file_text_read_string(acctfile), sectsep, 1);
- loginlist += token_parse_string(oneacct, normalsep, 0) + normalsep;
- displist += token_parse_string(oneacct, normalsep, 1) + normalsep;
- file_text_readln(acctfile);
- }
- loginlist = string_delete(loginlist, string_length(loginlist), 1);
- displist = string_delete(displist, string_length(displist), 1);
- file_text_close(acctfile);
- show_debug_message("Player count: " + string(string_count(normalsep, loginlist)));
- /// Menu control (step event)
- switch(testmenu) {
- case 0:
- if keyboard_check_pressed(p1_up) {if (selection == 0) {selection = array_length_1d(testcats) - 1;} else {selection--;}}
- if keyboard_check_pressed(p1_down) {if (selection == array_length_1d(testcats) - 1) {selection = 0;} else {selection++;}}
- if keyboard_check_pressed(p1_but1) {
- switch(selection) {
- case 0:
- selection = 0;
- testmenu = 1;
- break;
- case 1:
- selection = 0;
- testmenu = 2;
- acctcreate = 0;
- attempt = 0;
- selectx = 0;
- selecty = 0;
- xwidth = 7;
- yheight = 4;
- newlogin = "";
- newdisp = "";
- newpass = "";
- passver = "";
- actives = loginchar;
- break;
- case 2:
- selection = 0;
- testmenu = 3;
- break;
- case 3:
- selection = 0;
- testmenu = 4;
- acctlogin = 0;
- attempt = 0
- selectx = 0;
- selecty = 0;
- xwidth = 7;
- yheight = 4;
- loginname = "";
- logindisp = "";
- loginpass = "";
- actives = loginchar;
- break;
- }
- }
- break;
- case 1: case 3:
- if keyboard_check_pressed(p1_start) {selection = 0; testmenu = 0;}
- break;
- case 2:
- if keyboard_check_pressed(p1_left) {if (selectx == 0) {selectx = xwidth - 1;} else {selectx--;}}
- if keyboard_check_pressed(p1_right) {if (selectx == xwidth - 1) {selectx = 0} else {selectx++;}}
- if keyboard_check_pressed(p1_up) {if (selecty == 0) {selecty = yheight - 1;} else {selecty--;}}
- if keyboard_check_pressed(p1_down) {if (selecty == yheight - 1) {selecty = 0} else {selecty++;}}
- switch(acctcreate) {
- /* acctcreate steps
- 0 - login name
- 1 - display name
- 2 - password
- 3 - re-enter password
- 4 - password success
- errors
- 5 - blank login name
- 6 - existing login name
- 7 - blacklisted login name
- 8 - blank display name
- 9 - existing display name
- 10 - blacklisted display name
- 11 - non-matching password re-enter
- */
- case 0:
- if keyboard_check_pressed(p1_but1) {
- if (string_length(newlogin) < MAXLOGIN) {
- newlogin += string_char_at(actives, ((xwidth * selecty) + selectx) + 1);
- }
- if (selectx == xwidth - 1) && (selecty == yheight - 1) {
- if (string_length(newlogin) == 0) {acctcreate = 5;}
- else {
- var count;
- var compare;
- count = 0;
- compare = "";
- while(count < string_count(normalsep, loginlist) + 1) {
- compare = string_replace(newlogin, token_parse_string(loginlist, normalsep, count), "NG");
- if (compare == "NG") {acctcreate = 6; break;} else {count++;}
- }
- count = 0;
- compare = "";
- while(count < string_count(normalsep, blacklist) + 1) {
- compare = string(string_count(token_parse_string(blacklist, normalsep, count), string_lower(newlogin)));
- if (compare != "0") {acctcreate = 7; break;} else {count++;}
- }
- if (compare = "0") {
- acctcreate = 1;
- attempt = 0;
- xwidth = 13;
- yheight = 7;
- selectx = 0;
- selecty = 0;
- actives = dispchar;
- }
- }
- }
- }
- if keyboard_check_pressed(p1_but2) {
- if (string_length(newlogin) > 0) {newlogin = string_delete(newlogin, string_length(newlogin), 1);}
- }
- break;
- case 1:
- if keyboard_check_pressed(p1_but1) {
- if (string_length(newdisp) < MAXDISP) {
- newdisp += string_char_at(actives, ((xwidth * selecty) + selectx) + 1);
- }
- if (selectx == xwidth - 1) && (selecty == yheight - 1) {
- if (string_length(newdisp) == 0) {acctcreate = 8;}
- else {
- var count;
- var compare;
- count = 0;
- compare = "";
- while(count < string_count(normalsep, displist) + 1) {
- compare = string_replace(newdisp, token_parse_string(displist, normalsep, count), "NG");
- if (compare == "NG") {acctcreate = 9; break;} else {count++;}
- }
- count = 0;
- compare = "";
- while(count < string_count(normalsep, blacklist) + 1) {
- compare = string(string_count(token_parse_string(blacklist, normalsep, count), string_lower(newdisp)));
- if (compare != "0") {acctcreate = 10; break;} else {count++;}
- }
- if (compare == "0") {
- acctcreate = 2;
- attempt = 0;
- xwidth = 0;
- yheight = 0;
- selectx = 0;
- selecty = 0;
- actives = "";
- }
- }
- }
- }
- if keyboard_check_pressed(p1_but2) {
- if (string_length(newdisp) > 0) {newdisp = string_delete(newdisp, string_length(newdisp), 1);}
- }
- break;
- case 2:
- if (string_length(newpass) < PASSLENGTH) {
- if keyboard_check_pressed(p1_but1) {newpass += "0";}
- if keyboard_check_pressed(p1_but2) {newpass += "1";}
- if keyboard_check_pressed(p1_but3) {newpass += "2";}
- }
- if (string_length(newpass) = PASSLENGTH) {acctcreate = 3;}
- break;
- case 3:
- if (string_length(passver) < PASSLENGTH) {
- if keyboard_check_pressed(p1_but1) {passver += "0";}
- if keyboard_check_pressed(p1_but2) {passver += "1";}
- if keyboard_check_pressed(p1_but3) {passver += "2";}
- }
- if (string_length(passver) = PASSLENGTH) {
- passver = string_replace(newpass, passver, "OK");
- if (passver == "OK") {
- var access;
- access = file_text_open_append("acct.txt");
- file_text_writeln(access);
- file_text_write_string(access, "0000-0000" + sectsep);
- file_text_write_string(access, newlogin + normalsep);
- file_text_write_string(access, newdisp + normalsep);
- file_text_write_string(access, "A-zu-ra Games" + normalsep);
- file_text_write_string(access, newpass + normalsep);
- file_text_write_string(access, "0" + sectsep);
- file_text_write_string(access, string(irandom(100000000) * 10) + normalsep);
- file_text_write_string(access, string(irandom(7) + 1) + normalsep);
- file_text_write_string(access, "0" + subsectsep);
- file_text_write_string(access, string(irandom(100000000) * 10) + normalsep);
- file_text_write_string(access, string(irandom(7) + 1) + normalsep);
- file_text_write_string(access, "0" + normalsep);
- file_text_write_string(access, "0" + normalsep);
- file_text_write_string(access, "0" + normalsep);
- file_text_write_string(access, "azuraroom" + sectsep);
- file_text_write_string(access, "0000-0000" + normalsep);
- file_text_write_string(access, "0000-0000" + normalsep);
- file_text_write_string(access, "0000-0000");
- file_text_close(access);
- loginlist += normalsep + newlogin;
- displist += normalsep + newdisp;
- acctcreate = 4;
- }
- else {acctcreate = 11;}
- }
- break;
- case 4:
- if keyboard_check_pressed(p1_start) {testmenu = 0;}
- break;
- }
- break;
- case 4:
- if keyboard_check_pressed(p1_left) {if (selectx == 0) {selectx = xwidth - 1;} else {selectx--;}}
- if keyboard_check_pressed(p1_right) {if (selectx == xwidth - 1) {selectx = 0} else {selectx++;}}
- if keyboard_check_pressed(p1_up) {if (selecty == 0) {selecty = yheight - 1;} else {selecty--;}}
- if keyboard_check_pressed(p1_down) {if (selecty == yheight - 1) {selecty = 0} else {selecty++;}}
- break;
- }
- if (acctcreate > 4) {
- retrytimer++
- if (retrytimer > retrytime) {
- attempt++;
- retrytimer = 0;
- if (attempt < 3) {
- switch(acctcreate) {
- case 5: case 6: case 7:
- newlogin = "";
- selectx = 0;
- selecty = 0;
- acctcreate = 0;
- break;
- case 8: case 9: case 10:
- newdisp = "";
- selectx = 0;
- selecty = 0;
- acctcreate = 1;
- break;
- case 11:
- newpass = "";
- passver = "";
- acctcreate = 2;
- break;
- }
- }
- else {
- acctcreate = 0;
- testmenu = 0;
- }
- }
- }
- /// Plain drawing thing (draw event)
- draw_set_quick(f_system, c_white, fa_left);
- draw_text(TESTBORDER, room_height - letterheight - TESTBORDER, "FPS: " + string_format(1000000 / delta_time, 2, 4));
- switch(testmenu) {
- case 0:
- draw_set_halign(fa_left);
- draw_text((room_width / 3) - TESTBORDER, TESTBORDER + (spacing * (2 + selection)), ">");
- for(i = 0; i < array_length_1d(testcats); i++) {
- draw_text((room_width / 3), TESTBORDER + (spacing * (2 + i)), testcats[i]);
- }
- break;
- case 1:
- draw_set_halign(fa_left);
- draw_text(SCREENCENTERX + TESTBORDER, TESTBORDER + (spacing * 2), info[0,0]);
- draw_text(SCREENCENTERX + TESTBORDER, TESTBORDER + (spacing * 4), info[1,0]);
- draw_text(SCREENCENTERX + TESTBORDER, TESTBORDER + (spacing * 5), info[2,0]);
- draw_text(SCREENCENTERX + TESTBORDER, TESTBORDER + (spacing * 6), info[3,0]);
- draw_text(SCREENCENTERX + TESTBORDER, TESTBORDER + (spacing * 7), info[4,0]);
- draw_text(SCREENCENTERX + TESTBORDER, TESTBORDER + (spacing * 8), info[5,0]);
- draw_text(SCREENCENTERX + TESTBORDER, TESTBORDER + (spacing * 10), info[6,0]);
- draw_text(SCREENCENTERX + TESTBORDER, TESTBORDER + (spacing * 11), info[7,0]);
- draw_text(SCREENCENTERX + TESTBORDER, TESTBORDER + (spacing * 12), info[8,0]);
- draw_text(SCREENCENTERX + TESTBORDER, TESTBORDER + (spacing * 14), info[9,0]);
- draw_text(SCREENCENTERX + TESTBORDER, TESTBORDER + (spacing * 15), info[10,0]);
- draw_text(SCREENCENTERX + TESTBORDER, TESTBORDER + (spacing * 16), info[11,0]);
- draw_text(SCREENCENTERX + TESTBORDER, TESTBORDER + (spacing * 17), info[12,0]);
- draw_text(SCREENCENTERX + TESTBORDER, TESTBORDER + (spacing * 18), info[13,0]);
- draw_text(SCREENCENTERX + TESTBORDER, TESTBORDER + (spacing * 19), info[14,0]);
- draw_text(SCREENCENTERX + TESTBORDER, TESTBORDER + (spacing * 21), info[15,0]);
- draw_text(SCREENCENTERX + TESTBORDER, TESTBORDER + (spacing * 22), info[16,0]);
- draw_text(SCREENCENTERX + TESTBORDER, TESTBORDER + (spacing * 23), info[17,0]);
- draw_set_halign(fa_right);
- draw_text(SCREENCENTERX - TESTBORDER, TESTBORDER + (spacing * 2), "Account ID");
- draw_text(SCREENCENTERX - TESTBORDER, TESTBORDER + (spacing * 4), "Login Name");
- draw_text(SCREENCENTERX - TESTBORDER, TESTBORDER + (spacing * 5), "Display Name");
- draw_text(SCREENCENTERX - TESTBORDER, TESTBORDER + (spacing * 6), "Registered Location");
- draw_text(SCREENCENTERX - TESTBORDER, TESTBORDER + (spacing * 7), "Password");
- draw_text(SCREENCENTERX - TESTBORDER, TESTBORDER + (spacing * 8), "Play Count");
- draw_text(SCREENCENTERX - TESTBORDER, TESTBORDER + (spacing * 10), "Best Score [Solo]");
- draw_text(SCREENCENTERX - TESTBORDER, TESTBORDER + (spacing * 11), "Highest Shift [Solo]");
- draw_text(SCREENCENTERX - TESTBORDER, TESTBORDER + (spacing * 12), "Local Ranking [Solo]");
- draw_text(SCREENCENTERX - TESTBORDER, TESTBORDER + (spacing * 14), "Best Total Score [Co-op]");
- draw_text(SCREENCENTERX - TESTBORDER, TESTBORDER + (spacing * 15), "Highest Shift [Co-op]");
- draw_text(SCREENCENTERX - TESTBORDER, TESTBORDER + (spacing * 16), "Account Score [Co-op]");
- draw_text(SCREENCENTERX - TESTBORDER, TESTBORDER + (spacing * 17), "Partner Score [Co-op]");
- draw_text(SCREENCENTERX - TESTBORDER, TESTBORDER + (spacing * 18), "Local Ranking [Co-op]");
- draw_text(SCREENCENTERX - TESTBORDER, TESTBORDER + (spacing * 19), "Partner's Display Name [Co-op]");
- draw_text(SCREENCENTERX - TESTBORDER, TESTBORDER + (spacing * 21), "Rival 1 ID");
- draw_text(SCREENCENTERX - TESTBORDER, TESTBORDER + (spacing * 22), "Rival 2 ID");
- draw_text(SCREENCENTERX - TESTBORDER, TESTBORDER + (spacing * 23), "Rival 3 ID");
- break;
- case 2:
- draw_text((room_width * (3/5)) + TESTBORDER, TESTBORDER + (spacing * 4), "Login Name");
- draw_text((room_width * (3/5)) + TESTBORDER, TESTBORDER + (spacing * 5), newlogin);
- draw_text((room_width * (3/5)) + TESTBORDER, TESTBORDER + (spacing * 7), "Display Name");
- draw_text((room_width * (3/5)) + TESTBORDER, TESTBORDER + (spacing * 8), newdisp);
- draw_text((room_width * (3/5)) + TESTBORDER, TESTBORDER + (spacing * 10), "Password");
- draw_text((room_width * (3/5)) + TESTBORDER, TESTBORDER + (spacing * 11), newpass);
- draw_text((room_width * (3/5)) + TESTBORDER, TESTBORDER + (spacing * 12), passver);
- draw_set_halign(fa_center);
- switch(acctcreate) {
- case 0: draw_text(SCREENCENTERX, TESTBORDER + (spacing * 2), "Please enter your login name."); break;
- case 1: draw_text(SCREENCENTERX, TESTBORDER + (spacing * 2), "Please enter your display name."); break;
- case 2: draw_text(SCREENCENTERX, TESTBORDER + (spacing * 2), "Please enter your password."); break;
- case 3: draw_text(SCREENCENTERX, TESTBORDER + (spacing * 2), "Please re-enter your password."); break;
- case 4: draw_text(SCREENCENTERX, TESTBORDER + (spacing * 2), "Passwords match. New account created."); break;
- case 5: draw_text(SCREENCENTERX, TESTBORDER + (spacing * 2), "Login name cannot be blank."); break;
- case 6: draw_text(SCREENCENTERX, TESTBORDER + (spacing * 2), "Login name already exists with that name."); break;
- case 7: draw_text(SCREENCENTERX, TESTBORDER + (spacing * 2), "Inappropriate content cannot be used in the login name."); break;
- case 8: draw_text(SCREENCENTERX, TESTBORDER + (spacing * 2), "Display name cannot be blank."); break;
- case 9: draw_text(SCREENCENTERX, TESTBORDER + (spacing * 2), "Display name already exists with that name."); break;
- case 10: draw_text(SCREENCENTERX, TESTBORDER + (spacing * 2), "Inappropriate content cannot be used in the display name."); break;
- case 11: draw_text(SCREENCENTERX, TESTBORDER + (spacing * 2), "Passwords do not match."); break;
- }
- for(i = 0; i < yheight; i++) {
- for(j = 0; j < xwidth; j++) {
- draw_text((room_width / 3) - (spacing * (floor(xwidth / 2) - j)), TESTBORDER + (spacing * (4 + i)), string_char_at(actives, ((xwidth * i) + j) + 1));
- }
- }
- draw_set_color(c_yellow);
- draw_text((room_width / 3) - (spacing * (floor(xwidth / 2) - selectx)), TESTBORDER + (spacing * (4 + selecty)), string_char_at(actives, ((xwidth * selecty) + selectx) + 1));
- break;
- case 3:
- draw_set_halign(fa_left);
- draw_text(SCREENCENTERX + TESTBORDER, TESTBORDER + (spacing * 2), "Display Name");
- draw_set_halign(fa_right);
- draw_text(SCREENCENTERX - TESTBORDER, TESTBORDER + (spacing * 2), "Login Name");
- var count;
- count = 0;
- while(count < string_count(normalsep, loginlist) + 1) {
- draw_set_halign(fa_left);
- draw_text(SCREENCENTERX + TESTBORDER, TESTBORDER + (spacing * (3 + count)), token_parse_string(displist, normalsep, count));
- draw_set_halign(fa_right);
- draw_text(SCREENCENTERX - TESTBORDER, TESTBORDER + (spacing * (3 + count)), token_parse_string(loginlist, normalsep, count));
- count++;
- }
- /* draw_set_halign(fa_left);
- draw_text(TESTBORDER, TESTBORDER + (spacing * 2), "Login name string");
- draw_text(TESTBORDER, TESTBORDER + (spacing * 3), loginlist);
- draw_text(TESTBORDER, TESTBORDER + (spacing * 5), "Display name string");
- draw_text(TESTBORDER, TESTBORDER + (spacing * 6), displist); */
- break;
- case 4:
- draw_text((room_width * (3/5)) + TESTBORDER, TESTBORDER + (spacing * 4), "Login Name");
- draw_text((room_width * (3/5)) + TESTBORDER, TESTBORDER + (spacing * 5), newlogin);
- draw_text((room_width * (3/5)) + TESTBORDER, TESTBORDER + (spacing * 7), "Display Name");
- draw_text((room_width * (3/5)) + TESTBORDER, TESTBORDER + (spacing * 8), newdisp);
- draw_text((room_width * (3/5)) + TESTBORDER, TESTBORDER + (spacing * 10), "Password");
- draw_text((room_width * (3/5)) + TESTBORDER, TESTBORDER + (spacing * 11), newpass);
- draw_text((room_width * (3/5)) + TESTBORDER, TESTBORDER + (spacing * 12), passver);
- draw_set_halign(fa_center);
- switch(acctlogin) {
- case 0: draw_text(SCREENCENTERX, TESTBORDER + (spacing * 2), "Please enter your login name."); break;
- case 1: draw_text(SCREENCENTERX, TESTBORDER + (spacing * 2), "Please enter your password."); break;
- case 2: draw_text(SCREENCENTERX, TESTBORDER + (spacing * 2), "Passwords match. Account details in " + testcats[0]); break;
- case 3: draw_text(SCREENCENTERX, TESTBORDER + (spacing * 2), "Login name cannot be blank."); break;
- case 4: draw_text(SCREENCENTERX, TESTBORDER + (spacing * 2), "Login name does not exist."); break;
- case 5: draw_text(SCREENCENTERX, TESTBORDER + (spacing * 2), "Passwords is incorrect."); break;
- }
- for(i = 0; i < yheight; i++) {
- for(j = 0; j < xwidth; j++) {
- draw_text((room_width / 3) - (spacing * (floor(xwidth / 2) - j)), TESTBORDER + (spacing * (4 + i)), string_char_at(actives, ((xwidth * i) + j) + 1));
- }
- }
- draw_set_color(c_yellow);
- draw_text((room_width / 3) - (spacing * (floor(xwidth / 2) - selectx)), TESTBORDER + (spacing * (4 + selecty)), string_char_at(actives, ((xwidth * selecty) + selectx) + 1));
- break;
- }
- draw_set_halign(fa_center);
- draw_set_color(c_white);
- var testbottom = room_height - TESTBORDER - letterheight;
- switch(testmenu) {
- case 0:
- draw_text(SCREENCENTERX, TESTBORDER, "TEST MODE");
- draw_text(SCREENCENTERX, testbottom - spacing, "1P JOYSTICK = SELECT");
- draw_text(SCREENCENTERX, testbottom, "1P BUTTON 1 = DECIDE");
- break;
- case 1:
- draw_text(SCREENCENTERX, TESTBORDER, testcats[0]);
- draw_text(SCREENCENTERX, testbottom, "1P START = BACK TO MAIN MENU");
- break;
- case 2:
- draw_text(SCREENCENTERX, TESTBORDER, testcats[1]);
- switch(acctcreate) {
- case 0: case 1: case 5: case 6: case 7: case 8: case 9: case 10:
- draw_text(SCREENCENTERX, testbottom - spacing, "1P JOYSTICK = SELECT");
- draw_text(SCREENCENTERX, testbottom, "1P BUTTON 1 = DECIDE");
- break;
- case 2: case 3: case 11:
- draw_text(SCREENCENTERX, testbottom, "1P BUTTON 1, 2, 3 = PASSWORD INPUT");
- break;
- case 4:
- draw_text(SCREENCENTERX, testbottom, "1P START = BACK TO MAIN MENU");
- break
- }
- break;
- case 3:
- draw_text(SCREENCENTERX, TESTBORDER, testcats[2]);
- draw_text(SCREENCENTERX, testbottom, "1P START = BACK TO MAIN MENU");
- break;
- case 4:
- draw_text(SCREENCENTERX, TESTBORDER, testcats[3]);
- switch(acctcreate) {
- case 0: case 1: case 5: case 6: case 7: case 8: case 9: case 10:
- draw_text(SCREENCENTERX, testbottom - spacing, "1P JOYSTICK = SELECT");
- draw_text(SCREENCENTERX, testbottom, "1P BUTTON 1 = DECIDE");
- break;
- case 2: case 3: case 11:
- draw_text(SCREENCENTERX, testbottom, "1P BUTTON 1, 2, 3 = PASSWORD INPUT");
- break;
- case 4:
- draw_text(SCREENCENTERX, testbottom, "1P START = BACK TO MAIN MENU");
- break
- }
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement