Commit Graph

134 Commits

Author SHA1 Message Date
Hugo Locurcio bc8236bd39
Add a tooltip to explain what marking a preset as "runnable" does 2019-11-14 15:11:31 +01:00
Tomasz Chabora 6f7ba78c53 Don't allow to export pck without preset 2019-10-16 11:58:49 +02:00
Hugo Locurcio 1739ef5fd7
Document the ability to include/exclude non-resource export folders
This closes #3646.
2019-10-05 16:54:13 +02:00
Rémi Verschelde ca652bbc47
Merge pull request #25353 from azagaya/master
Use also invisible tabs to calculate minimum size of tab container
2019-08-30 13:58:37 +02:00
azagaya fa6f86b886 Make tab containers in editor, project settings, and export dialog, to use hidden tabs for min size computation. 2019-08-30 08:33:32 -03:00
SonerSound 326f856006 Export path is the only path to be saved as a relative path
Also reverts 90b2415343
2019-08-22 22:20:15 +01:00
SonerSound 90b2415343 Export path may now be written as a relative path
If the target directory does not exist, it will be recursively created.

Export paths are now saved as a relative to the projects base directory

Renamed relative_to function to final_path_from_relative which takes a relative path and outputs the final path from a string that represents a directory.
Added relative_path_from_final which takes in a final path and outputs a relative path if possible. If not possible it outputs the relative path that represents the current directory.
If the target directory does not exist when exporting the project, then it is recursively created.

Removed final_path_from_relative function

Changed DirAccess into DirAccessRef for automatic object destruction
2019-06-30 19:13:49 +01:00
qarmin 4e5310cc60 Some code changed with Clang-Tidy 2019-06-26 15:08:25 +02:00
Rémi Verschelde 47f00925dc
Merge pull request #28454 from homer666/popup-centered-maxsize
Add `popup_centered_clamped()` method to Popup
2019-05-28 11:36:41 +02:00
AMS21 fe62b69419 Fixed naming issue when duplicating an export 2019-05-23 14:45:17 +02:00
George Marques c121d8871d
Allow project export to be canceled 2019-05-18 15:33:57 -03:00
homer666 80e9e93e27 Add Popup::popup_centered_clamped method
- Also replace redundant duplicate code in editor dialogs with calls to popup_centered_clamped()
2019-04-30 05:35:43 +10:00
Rémi Verschelde bfd2ad0059
Merge pull request #28338 from qarmin/disable_project_export_button
Disable Project Export button after deleting preset
2019-04-25 13:30:15 +02:00
Juan Linietsky faaecd6987 Fixes to make exporting more responsive.
-Process and drop input in step functions.
-Hide editor file dialog right after pressing ok
-Use actual editor file dialogs for project export.
2019-04-24 15:52:15 -03:00
qarmin 2fc2d82465 Disable Project Export button after deleting preset 2019-04-23 17:49:15 +02:00
Ricardo Lüders 3fdbdd8380 Fixes misleading error message when trying to export
This patch fixes the misleading error message when users
try to "export all" into an invalid destination path.

Closes #26539
2019-03-05 21:32:52 +01:00
Rémi Verschelde 793ffd942e Improve error message on project export failure
It's still not enough and we need better validation/error checking,
but it should help with people assume corrupted templates when it's
their config which is invalid.
2019-02-22 11:18:22 +01:00
Rémi Verschelde 26cf4fed6e
Merge pull request #25163 from ankitpriyarup/master
Disable autowrap for export dialog errors
2019-01-21 18:07:35 +01:00
Ankit Priyarup 7e6edee193 Disable autowrap for export dialog errors
Fixes #25065
2019-01-21 18:01:40 +05:30
Hugo Locurcio f9d0bc1858
Make "Export with Debug" more visible in the Export dialog
This swaps out the CheckButton with a CheckBox, which has two benefits:

- The checkbox icon appears to the left of the text, which moves it
  closer from the text. This makes it more easily noticeable, as
  it also appears below the "File:" text now.
- It follows the UI convention of using checkboxes for options that
  do not bear an immediate effect, unlike CheckButtons which are
  expected to have an immediate effect when toggled.

This closes #25170.
2019-01-20 23:53:42 +01:00
Juan Linietsky 541422a4a2 Clean up and fix issues after merging #21701 , closes #21104 2019-01-18 13:01:24 -03:00
volzhs 87305a0f54 Use HSplit to resize presets and options panel on Export window 2019-01-12 01:54:00 +09:00
Rémi Verschelde 5809be9641
Merge pull request #24582 from Xrayez/script-encrypt
Bring back script encryption in export preset
2019-01-04 16:34:38 +01:00
Rémi Verschelde b16c309f82 Update copyright statements to 2019
Happy new year to the wonderful Godot community!
2019-01-01 12:58:10 +01:00
Andrii Doroshenko (Xrayez) ba13a2bc05 Bring back script encryption in export preset
Retrieved working implementation from 2.1 branch and adapted to
existing export preset system.

Added Script tab in export preset to export script as raw text,
compiled, or encrypted (same as in 2.1). The script encryption key is
visually validated. The script export mode and the key is saved per
per preset in `export_presets.cfg`, so it makes sense to ignore this
file in version control system.

Each custom exporting procedure can retrieve an export preset set
during project exporting. Refactored project export dialog a bit to
allow easier code comprehension.
2018-12-24 17:16:14 +02:00
qichunren 99f9af868a Fix ExportDialog layout out of boundary when select a template. 2018-12-11 16:13:14 +08:00
Rémi Verschelde a0a9553cbe
Merge pull request #23673 from marcelofg55/export_path_3
Export Path now has a folder icon to select the path
2018-12-06 15:33:04 +01:00
Michael Alexsander Silva Dias 63dc20a827 Move "Dialog Bounds" from the Editor Settings to project's metadata 2018-12-04 13:55:24 -02:00
Marcelo Fernandez e49a090919 Export Path now has a folder icon to select the path 2018-11-12 16:04:58 -03:00
Marcelo Fernandez aaa650e14a Fix missing bind for _export_path_changed 2018-11-12 11:38:26 -03:00
Rémi Verschelde a16d9c6ab6
Merge pull request #23476 from marcelofg55/export_all
Add an Export All button to the Export dialog
2018-11-09 16:55:04 +01:00
Marcelo Fernandez 4755a3beed Preset saved export path is now shown on the Export window 2018-11-05 22:01:34 -03:00
Marcelo Fernandez c0766e9503 Add an Export All button to the Export dialog 2018-11-03 21:19:12 -03:00
Marcelo Fernandez d51999f11d Export for OS X on OS X now lets you select .dmg or .zip 2018-11-01 10:08:26 -03:00
Rémi Verschelde 69ccccaf71
Merge pull request #23322 from marcelofg55/export_path
Save last export path when exporting
2018-10-29 12:08:50 +01:00
Marcelo Fernandez 5bdb9cf208 Add a duplicate button to duplicate presets 2018-10-28 15:13:38 -03:00
Marcelo Fernandez 9814446ea0 Save last export path when exporting 2018-10-27 10:53:05 -03:00
Aaron Franke 4f7b33cdcf Remove redundant "== false" code
Some of this code has been re-organized.
f
2018-10-06 16:20:41 -04:00
willnationsdev 5436abefe4 Refactor editor icon retrieval 2018-09-14 09:27:56 -05:00
Rémi Verschelde 277b24dfb7 Make core/ includes absolute, remove subfolders from include path
This allows more consistency in the manner we include core headers,
where previously there would be a mix of absolute, relative and
include path-dependent includes.
2018-09-12 09:52:22 +02:00
Rémi Verschelde 51dfdf549e ExportDialog: Validate path before allowing export
Otherwise one could quite easily end up with the exported game
being hidden files named ".x86_64" and ".pck" for example.

Also improved the default filename logic a bit to also include
extension, and never fallback to an empty string.

Also fixed being able to click "Export project" without selecting
a preset.
2018-08-31 11:19:13 +02:00
Rémi Verschelde e7c5aca040 Port ImportDock and ProjectExport to new property editor (2nd try)
Thanks to @ibrahn for helping debug the crashes caused in ProjectExportDialog
by the stray `update_tree()` call, no longer needed in the new inspector.
2018-08-20 10:07:06 +02:00
Rémi Verschelde b3246f13d1
Revert "Port ImportDock and ProjectExport to new property editor" 2018-08-18 15:24:31 +02:00
Rémi Verschelde 0a3d874efd Port ImportDock and ProjectExport to new property editor 2018-08-18 15:07:23 +02:00
Rémi Verschelde 5542d4a830 Export dialog: Fix error color and link alignment
Also fix extraneous "- " line when there are more than 2 messages.
2018-08-17 11:35:05 +02:00
Rémi Verschelde 13239cd4cc Export: Properly reload preset when opening dialog
Fixes #20119 where newly installed templates were not detected.

Also fix a bug with preset deletion where it would attempt to
edit an already removed preset. For this I made it so that
ItemList::deselect_all() also resets `current` to -1, as a manual
ItemList::deselect(idx) already does.
2018-07-18 13:49:34 +02:00
homer666 7ff3b52dea Adjust default editor popup sizes 2018-05-05 12:09:56 +10:00
Ignacio Etcheverry 68b35de2b6 Make 'Export PCK/ZIP' work well with EditorExportPlugin
Add debug flag to the 'Export PCK/ZIP' option
Make 'Export PCK/ZIP' notify when the export process begins. This is necessary to receive the 'EditorExportPlugin::_export_begin' callback
2018-04-26 23:21:05 +02:00
Hugo Locurcio 1c419531a0 Change ".." punctuation for "..." in editor strings (#16507) 2018-04-22 19:36:01 +02:00
Peter Folkins bff73bdbf1 Set default file name for exported projects 2018-04-18 08:58:13 -05:00
Poommetee Ketson 2de1dfa42f Update icons when theme changed 2018-02-25 23:04:16 +07:00
Rémi Verschelde e4213e66b2 Add missing copyright headers and fix formatting
Using `misc/scripts/fix_headers.py` on all Godot files.
Some missing header guards were added, and the header inclusion order
was fixed in the Bullet module.
2018-01-05 01:22:23 +01:00
Rémi Verschelde b50a9114b1 Update copyright statements to 2018
Happy new year to the wonderful Godot community!
2018-01-01 14:40:47 +01:00
Nathan Warden f89d78a7a4 Updated Linux template extensions to match architecture. 2017-12-12 16:09:48 -05:00
Dmitry Koteroff ad351a29db Some improvements to file/dir open/save dialogs:
1. Removed "..", instead you now will see "Select Current Folder" and "Select this Folder" buttons.
2. Added "go to parent folder" (^) button to Save a File dialog.
3. Tree.cpp: "nothing_selected" signal has been re-made (previous implementation, merged in #13308, wasn't optimal in context of performance)
4. Fixed issue in Project Export dialog: MODE_SAVE_FILE wasn't set when you click "Export".
5. Now you can deselect items by clicking on empty space in Open a Directory dialog.
2017-11-27 22:39:36 +01:00
Robbie Cooper 24fe3bd605 Fix file extensions persisting in file dialog after export
This caused issues if one decided to export many formats in a row.
The new file extension would be appended to the previous one.

Now, the filename is retained without its extension for successive exports.

Fixes #7291
2017-11-20 23:20:56 +01:00
volzhs 2e7345c00f Better TTR format 2017-11-13 20:37:28 +09:00
Rémi Verschelde 35683b9f32 Merge pull request #12031 from NathanWarden/export_cancel_to_done
Changed the export and fix dependencies dialog cancel button names to "Close"

[ci skip]
2017-10-21 00:15:48 +02:00
Jakob Sinclair a5cabaeb8d Added error dialog when failing to export project
Fixes #11836

Signed-off-by: Jakob Sinclair <sinclair.jakob@mailbox.org>
2017-10-13 00:40:19 +02:00
Nathan Warden cedd95ba85 Changed the export/dependencies dialog button names from "Cancel" to "Close" 2017-10-11 13:21:05 -05:00
Juan Linietsky 3d87b70f7a Added the set/get_setting function in Editor/Project settings. Renamed has() to has_setting. Fixes #11844 2017-10-05 15:34:34 -03:00
Daniel J. Ramirez b622c92fad Removed most of the custom colors from the interface. 2017-09-25 21:43:20 -05:00
Gilles Roudiere 05bb8e0c10 Remove set_area_as_parent_rect and replace it by set_anchors_and_margins_preset(PRESET_WIDE) 2017-09-22 11:39:44 +02:00
letheed 5ad9be4c24 Rename pos to position in user facing methods and variables
Rename user facing methods and variables as well as the corresponding
C++ methods according to the folloming changes:

* pos -> position
* rot -> rotation
* loc -> location

C++ variables are left as is.
2017-09-20 13:11:10 +02:00
Daniel J. Ramirez 1e8048dd45 Improved theme generation, and other fixes 2017-09-12 13:16:38 -05:00
Rémi Verschelde 98a36c67f4 Merge pull request #11000 from Kibouo/iss10842
Fixes the deletion of an export preset's name when deleting the preset above it.
2017-09-12 13:10:00 +02:00
Mihaly Csonka 1a7c43e1a1 Fixed clearing of an export preset's name when deleting the one above it.
Deleting an export preset cleared the name of the item below it. This was
caused by ProjectExportDialog::_edit_preset(-1) which sets the deleted preset's
data to empty values. This on its turn called
ProjectExportDialog::_name_changed() which operates on the new current preset
(the one under the deleted item).

Fixes issue #10842
2017-09-12 04:30:47 +02:00
Hein-Pieter van Braam b2a38854fd Fix unused variable warnings
The forth in my quest to make Godot 3.x compile with -Werror on GCC7
2017-09-08 15:03:53 +02:00
Rémi Verschelde 7ad14e7a3e Dead code tells no tales 2017-08-27 22:13:45 +02:00
Rémi Verschelde bd282ff43f Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
Andreas Haas 6134d8741d Editor: Add some more translatable strings. 2017-08-25 18:49:45 +02:00
Rémi Verschelde 76005a8e75 Style: Apply clang-format on all files
Thus fixing some invalid changes that had still made it to the master branch.
2017-07-30 22:53:40 +02:00
Juan Linietsky 25678b1876 -Renamed GlobalConfig to ProjectSettings, makes more sense.
-Added system for feature overrides, it's pretty cool :)
2017-07-19 17:06:03 -03:00
Juan Linietsky bbada82f80 -Reorganized all properties of project settings (Sorry, Again).
(Lot's of bloat accumulated, so it was time for clean up.)
-Made EditorSettings and ProjectSettings search more useful (search in sections too)
2017-07-17 22:18:58 -03:00
BastiaanOlij 5b44f092f9 Reimplement export module for OSX 2017-06-23 00:01:55 +10:00
Rémi Verschelde 231511b2a6 Merge pull request #8631 from volzhs/editor-theme-custom
New customizable editor theme
2017-05-20 07:16:11 +02:00
volzhs bb81293047 New customizable editor theme 2017-05-09 17:46:54 +09:00
J08nY 243f059200 Fix template loading 2017-05-05 22:39:04 +02:00
Rémi Verschelde df61dc4b2b Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
eska 7df7e9cc8b WebGL 2 export per WebAssembly or asm.js 2017-03-29 13:27:43 +02:00
Juan Linietsky c37fad650f Export working (for linux at least) 2017-03-21 19:34:26 -03:00
Juan Linietsky b5a06cecff Export template management dialog.
Missing download (need to discuss this!)
2017-03-21 08:42:06 -03:00
Rémi Verschelde 5dbf1809c6 A Whole New World (clang-format edition)
I can show you the code
Pretty, with proper whitespace
Tell me, coder, now when did
You last write readable code?

I can open your eyes
Make you see your bad indent
Force you to respect the style
The core devs agreed upon

A whole new world
A new fantastic code format
A de facto standard
With some sugar
Enforced with clang-format

A whole new world
A dazzling style we all dreamed of
And when we read it through
It's crystal clear
That now we're in a whole new world of code
2017-03-05 16:44:50 +01:00
Rémi Verschelde 49c065d29c Refactoring: rename tools/editor/ to editor/
The other subfolders of tools/ had already been moved to either
editor/, misc/ or thirdparty/, so the hiding the editor code that
deep was no longer meaningful.
2017-03-05 14:21:25 +01:00