Pixel-Composer/objects/o_dialog_file_name_collection/Create_0.gml

54 lines
1.3 KiB
Plaintext
Raw Normal View History

2023-02-14 02:48:33 +01:00
/// @description init
event_inherited();
#region data
dialog_w = ui(360);
dialog_h = ui(64);
dialog_w_expand = ui(480);
dialog_h_expand = ui(570);
draggable = false;
2023-08-10 11:51:16 +02:00
destroy_on_click_out = false;
2023-02-14 02:48:33 +01:00
2023-10-18 14:58:55 +02:00
meta = METADATA.clone();
2023-02-14 02:48:33 +01:00
meta_expand = false;
2023-10-18 14:58:55 +02:00
updating = noone;
update_note = "Updated";
2023-02-14 02:48:33 +01:00
2023-04-21 19:08:10 +02:00
node = noone;
data_path = "";
2023-02-14 02:48:33 +01:00
ugc = 0;
ugc_loading = false;
2023-06-04 18:28:29 +02:00
//name = __txtx("new_collection_placeholder", "New collection");
2023-02-14 02:48:33 +01:00
t_desc = new textArea(TEXTBOX_INPUT.text, function(str) { meta.description = str; });
t_auth = new textArea(TEXTBOX_INPUT.text, function(str) { meta.author = str; });
t_cont = new textArea(TEXTBOX_INPUT.text, function(str) { meta.contact = str; });
t_alias = new textArea(TEXTBOX_INPUT.text, function(str) { meta.alias = str; });
2023-02-15 10:43:24 +01:00
t_tags = new textArrayBox(function() { return meta.tags; }, META_TAGS);
2023-02-14 02:48:33 +01:00
2023-10-18 14:58:55 +02:00
t_update = new textArea(TEXTBOX_INPUT.text, function(str) { update_note = str; });
t_desc.auto_update = true;
t_auth.auto_update = true;
t_cont.auto_update = true;
t_alias.auto_update = true;
t_update.auto_update = true;
2023-02-14 02:48:33 +01:00
2023-02-28 09:43:01 +01:00
function doExpand() {
2023-02-14 02:48:33 +01:00
meta_expand = true;
dialog_w = dialog_w_expand;
dialog_h = dialog_h_expand;
}
#endregion
#region text
onModify = -1;
tb_name = new textBox(TEXTBOX_INPUT.text, function(str) { meta.name = str; });
KEYBOARD_STRING = "";
#endregion