spr_textinput
0
-1
0
0
<undefined>
<undefined>
1
603
7
0
0
-1
2
self
0
0
1
allowed_chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ";
inputid = "name";
text = "Universal GameMaker Patcher";
image_speed = 0;
image_index = 0;
global.active = "";
1
603
7
0
0
-1
2
self
0
0
1
var changed;
var i;
var c1;
changed = false;
if(global.active == inputid)
{
if(string_width(keyboard_string) > 800-20){
keyboard_string = text;
}
if(keyboard_string != text)
changed = true;
if(changed){
for(i = 1; i <= string_length(keyboard_string); i+=1){
c1 = string_char_at(keyboard_string, i);
if(string_pos(c1, allowed_chars) == 0){
keyboard_string = text;
changed = false;
break;
}
}
}
text = keyboard_string;
if(changed)
obj_textinput_key_keygen.text = generate_gm5(obj_textinput_name_keygen.text, real(obj_textinput_version_keygen.text));
}
1
603
7
0
0
-1
2
self
0
0
1
image_index = 0;
1
603
7
0
0
-1
2
self
0
0
1
image_index = 1;
1
603
7
0
0
-1
2
self
0
0
1
global.active = "";
clipboard_set_text(text);
obj_draw.draw_flashing_text = true;
global.flashing_msg = '"'+inputid+'"'+" Copied to clipboard!";
1
603
7
0
0
-1
2
self
0
0
1
global.active = inputid;
keyboard_string = text;
1
603
7
0
0
-1
2
self
0
0
1
draw_self();
draw_set_font(fn_text);
draw_set_color(c_white);
if(global.active == inputid)
draw_text(x+10,y-20, text+"_");
else
draw_text(x+10,y-20, text);
0
0
0
0.5
0.100000001490116
0
0.100000001490116
0.100000001490116