mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-27 07:26:33 +01:00
54 lines
No EOL
1.3 KiB
Text
54 lines
No EOL
1.3 KiB
Text
/// @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 = false;
|
|
|
|
meta = METADATA.clone();
|
|
meta_expand = false;
|
|
updating = noone;
|
|
update_note = "Updated";
|
|
|
|
node = noone;
|
|
data_path = "";
|
|
|
|
ugc = 0;
|
|
ugc_loading = false;
|
|
//name = __txtx("new_collection_placeholder", "New collection");
|
|
|
|
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; });
|
|
t_tags = new textArrayBox(function() { return meta.tags; }, META_TAGS);
|
|
|
|
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;
|
|
|
|
function doExpand() {
|
|
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 |