15 lines
503 B
Plaintext
15 lines
503 B
Plaintext
|
function textbox_create(textscript=txt_test, style=global.textdefault, advancable=true) {
|
||
|
instance_destroy(o_textbox);
|
||
|
var chump = instance_create(style.x, style.y, o_textbox);
|
||
|
chump.width = style.width;
|
||
|
chump.height = style.height;
|
||
|
chump.spriteposx = style.spriteposx;
|
||
|
chump.spriteposy = style.spriteposy;
|
||
|
chump.advance = advancable;
|
||
|
chump.msgscript = textscript;
|
||
|
chump.sprite_index = style.sprite;
|
||
|
chump.texttype = style.type;
|
||
|
chump.font = style.font;
|
||
|
chump.style = style;
|
||
|
return chump;
|
||
|
}
|