mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-14 06:23:55 +01:00
27 lines
478 B
Plaintext
27 lines
478 B
Plaintext
/// @description init
|
|
event_inherited();
|
|
|
|
#region data
|
|
dialog_w = ui(240);
|
|
dialog_h = ui(48);
|
|
|
|
destroy_on_click_out = true;
|
|
|
|
path = "";
|
|
name = "New file";
|
|
#endregion
|
|
|
|
#region text
|
|
onModify = -1;
|
|
tb_name = new textBox(TEXTBOX_INPUT.text, function(txt) {
|
|
while(string_char_at(txt, 1) == " ") {
|
|
txt = string_copy(txt, 2, string_length(txt) - 1);
|
|
}
|
|
|
|
onModify(path + txt);
|
|
instance_destroy();
|
|
});
|
|
|
|
WIDGET_CURRENT = tb_name;
|
|
KEYBOARD_STRING = "";
|
|
#endregion |