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;
|
|
|
|
|
|
|
|
destroy_on_click_out = true;
|
|
|
|
|
|
|
|
meta = METADATA.clone();
|
|
|
|
meta_expand = false;
|
|
|
|
updating = noone;
|
|
|
|
|
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
|
|
|
|
|
|
|
t_desc.auto_update = true;
|
|
|
|
t_auth.auto_update = true;
|
|
|
|
t_cont.auto_update = true;
|
|
|
|
t_alias.auto_update = true;
|
|
|
|
|
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
|