Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if mouse_check_button_pressed(mb_left){
- if mouse_in_region(450,254+crystal_pos,802,294+crystal_pos){
- button_selected = 0
- keyboard_string = username
- audio_bpress(snd_mouse_click_menu)
- }
- else if mouse_in_region(450,334+crystal_pos,802,374+crystal_pos){
- button_selected = 1
- keyboard_string = password
- audio_bpress(snd_mouse_click_menu)
- }
- else if mouse_in_region(640,404+crystal_pos,840,464+crystal_pos){ //Edit
- previous_screen = screen;
- screen = Screen.register
- button_selected = -1;
- keyboard_string = ""
- audio_bpress(snd_mouse_click_menu)
- }
- else if mouse_in_region(462,494+crystal_pos,662,554+crystal_pos){ //Edit
- button_selected = -1;
- gms_login_set_username(username)
- if gms_login_player_has_account(username) != -1 and logclick = false{
- if gms_login_player_has_account(username)
- gms_login_set_password(password)
- gms_login_execute(login_callback)
- logclick = true
- }
- audio_bpress(snd_mouse_click_menu)
- }
- else if transition_grad > 0.01
- button_selected = -1
- }
- if button_selected = 0 and keyboard_check(vk_anykey){
- gms_login_set_username(username)
- gms_login_player_has_account(username)
- }
- draw_set_font(global.font_gredGrystal)
- if screen != Screen.register
- switch(button_selected){
- case 0:
- username = keyboard_string
- break;
- case 1:
- password = keyboard_string
- break;
- }
- break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement