eastern-flames/eastern flames/scripts/textbox_create/textbox_create.gml

15 lines
503 B
Plaintext
Raw Normal View History

2022-08-19 17:19:08 +00:00
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;
}