Tweak script export text in the export dialog to be more explicit

This commit is contained in:
Hugo Locurcio 2021-06-24 09:58:08 +02:00
parent c045219869
commit 065972a631
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C

View file

@ -1073,17 +1073,17 @@ ProjectExportDialog::ProjectExportDialog() {
VBoxContainer *script_vb = memnew(VBoxContainer); VBoxContainer *script_vb = memnew(VBoxContainer);
script_vb->set_name(TTR("Script")); script_vb->set_name(TTR("Script"));
script_mode = memnew(OptionButton); script_mode = memnew(OptionButton);
script_vb->add_margin_child(TTR("Script Export Mode:"), script_mode); script_vb->add_margin_child(TTR("GDScript Export Mode:"), script_mode);
script_mode->add_item(TTR("Text"), (int)EditorExportPreset::MODE_SCRIPT_TEXT); script_mode->add_item(TTR("Text"), (int)EditorExportPreset::MODE_SCRIPT_TEXT);
script_mode->add_item(TTR("Compiled"), (int)EditorExportPreset::MODE_SCRIPT_COMPILED); script_mode->add_item(TTR("Compiled Bytecode (Faster Loading)"), (int)EditorExportPreset::MODE_SCRIPT_COMPILED);
script_mode->add_item(TTR("Encrypted (Provide Key Below)"), (int)EditorExportPreset::MODE_SCRIPT_ENCRYPTED); script_mode->add_item(TTR("Encrypted (Provide Key Below)"), (int)EditorExportPreset::MODE_SCRIPT_ENCRYPTED);
script_mode->connect("item_selected", this, "_script_export_mode_changed"); script_mode->connect("item_selected", this, "_script_export_mode_changed");
script_key = memnew(LineEdit); script_key = memnew(LineEdit);
script_key->connect("text_changed", this, "_script_encryption_key_changed"); script_key->connect("text_changed", this, "_script_encryption_key_changed");
script_key_error = memnew(Label); script_key_error = memnew(Label);
script_key_error->set_text("- " + TTR("Invalid Encryption Key (must be 64 characters long)")); script_key_error->set_text("- " + TTR("Invalid Encryption Key (must be 64 hexadecimal characters long)"));
script_key_error->add_color_override("font_color", EditorNode::get_singleton()->get_gui_base()->get_color("error_color", "Editor")); script_key_error->add_color_override("font_color", EditorNode::get_singleton()->get_gui_base()->get_color("error_color", "Editor"));
script_vb->add_margin_child(TTR("Script Encryption Key (256-bits as hex):"), script_key); script_vb->add_margin_child(TTR("GDScript Encryption Key (256-bits as hexadecimal):"), script_key);
script_vb->add_child(script_key_error); script_vb->add_child(script_key_error);
sections->add_child(script_vb); sections->add_child(script_vb);