summaryrefslogtreecommitdiffstats
path: root/editor/export_template_manager.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* Rename AcceptDialog get_ok() to get_ok_button()Marcel Admiraal2020-12-141-3/+3
| | | | | | Also renames: - AcceptDialog add_cancel() to add_cancel_button() - ConfirmationDiaglog get_cancel() to get_cancel_button()
* Resize dialogs (FileDialog, EditorFileDialog, Reparent, SceneTreeDialog and ↵Stijn Hinlopen2020-07-141-1/+1
| | | | resource depency dialogs).
* Style: Enforce separation line between function definitionsRémi Verschelde2020-05-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | I couldn't find a tool that enforces it, so I went the manual route: ``` find -name "thirdparty" -prune \ -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \ -o -name "*.glsl" > files perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files) misc/scripts/fix_style.sh -c ``` This adds a newline after all `}` on the first column, unless they are followed by `#` (typically `#endif`). This leads to having lots of places with two lines between function/class definitions, but clang-format then fixes it as we enforce max one line of separation. This doesn't fix potential occurrences of function definitions which are indented (e.g. for a helper class defined in a .cpp), but it's better than nothing. Also can't be made to run easily on CI/hooks so we'll have to be careful with new code. Part of #33027.
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-23/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* Style: clang-format: Disable AllowShortCaseLabelsOnASingleLineRémi Verschelde2020-05-101-4/+12
| | | | Part of #33027.
* Rename InputFilter back to InputRémi Verschelde2020-04-281-2/+2
| | | | | | | | | | | | | | | | It changed name as part of the DisplayServer and input refactoring in #37317, with the rationale that input no longer goes through the main loop, so the previous Input singleton now only does filtering. But the gains in consistency are quite limited in the renaming, and it breaks compatibility for all scripts and tutorials that access the Input singleton via the scripting language. A temporary option was suggested to keep the scripting singleton named `Input` even if its type is `InputFilter`, but that adds inconsistency and breaks C#. Fixes godotengine/godot-proposals#639. Fixes #37319. Fixes #37690.
* Replace NULL with nullptrlupoDharkael2020-04-021-6/+6
|
* Popups are now windows also (broken!)Juan Linietsky2020-03-261-3/+3
|
* Working multiple window support, including editorJuan Linietsky2020-03-261-17/+16
|
* Refactored input, goes all via windows now.Juan Linietsky2020-03-261-2/+2
| | | | Also renamed Input to InputFilter because all it does is filter events.
* Refactored Input, create DisplayServer and DisplayServerX11Juan Linietsky2020-03-261-1/+1
|
* Re-architecture of the Godot Android plugin.fhuya2020-03-051-8/+12
|
* Fix android template install validation.fhuya2020-03-021-3/+1
|
* Signals: Port connect calls to use callable_mpRémi Verschelde2020-02-281-19/+10
| | | | | | | | | Remove now unnecessary bindings of signal callbacks in the public API. There might be some false positives that need rebinding if they were meant to be public. No regular expressions were harmed in the making of this commit. (Nah, just kidding.)
* Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky2020-02-201-10/+10
| | | | objects and made them default.
* PoolVector is gone, replaced by VectorJuan Linietsky2020-02-181-4/+4
| | | | | Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
* Remove duplicate ERR_PRINT macro.Marcel Admiraal2020-02-051-1/+1
|
* Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
| | | | | | | | | | | Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
* Merge pull request #34625 from timothyqiu/i18nRémi Verschelde2019-12-301-2/+2
|\ | | | | Makes more editor strings translatable
| * Makes more editor strings translatableHaoyu Qiu2019-12-301-2/+2
| | | | | | | | | | | | | | | | | | * Title of Sprite Editor convert preview dialogs * Title of UV Channel Debug dialog * Various editor warnings * GridMap popup menu item "Paste Selects" * Tileset editor shape button texts * MeshLibrary update confirmation text
* | Cleans up headers included in editor_node.hHaoyu Qiu2019-12-241-0/+2
|/
* Make more editor strings translatableHaoyu Qiu2019-12-131-1/+1
|
* Removed unused variables, add some constants numbersRafał Mikrut2019-12-101-1/+1
|
* Merge pull request #32812 from Calinou/template-manager-fix-devel-conditionRémi Verschelde2019-10-251-2/+8
|\ | | | | Fix the download availability check in the export templates manager
| * Fix the download availability check in the export templates managerHugo Locurcio2019-10-131-2/+8
| | | | | | | | This closes #17746.
* | Fix uninstallation of mono templates directoryRémi Verschelde2019-10-241-31/+15
|/ | | | | | The previous code didn't take into account that templates directories can have subdirectories like the mono templates have. Also fix an unclosed dir handle.
* Merge pull request #32051 from qarmin/some_error_explanationRémi Verschelde2019-09-251-1/+1
|\ | | | | Added some obvious errors explanations
| * Added some obvious errors explanationsqarmin2019-09-251-1/+1
| |
* | Split the Android platform java logic into an Android library module (`lib`) ↵fhuya2019-09-041-87/+2
|/ | | | | | and an application module (`app`). The application module `app` serves double duties of providing the prebuilt Godot binaries ('android_debug.apk', 'android_release.apk') and the Godot custom build template ('android_source.zip').
* Android: Extract libs from pre-built APKs when installing build templateRémi Verschelde2019-08-291-23/+112
| | | | | | | | | Otherwise we would need to include all of them in android_source.zip, which means building the zip after all libs have been built by SCons (so it would have to be done via gradle or a manual script). By extracting it from the pre-built APKs, we save some disk space in templates archives too.
* Tweak a few strings displayed in the editor for consistencyHugo Locurcio2019-08-211-1/+1
|
* Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in 'core/' and 'editor/'Braden Bodily2019-08-171-4/+2
| | | | | | | | | Condensed some if and ERR statements. Added dots to end of error messages Couldn't figure out EXPLAINC. These files gave me trouble: core/error_macros.h, core/io/file_access_buffered_fa.h (where is it?), core/os/memory.cpp, drivers/png/png_driver_common.cpp, drivers/xaudio2/audio_driver_xaudio2.cpp (where is it?)
* Merge pull request #31326 from Calinou/template-manager-disable-download-devRémi Verschelde2019-08-131-4/+17
|\ | | | | Only display download buttons in the template manager when available
| * Only display download buttons in the template manager when availableHugo Locurcio2019-08-131-4/+17
| | | | | | | | | | | | | | | | Development builds don't have official export templates available. Clicking the "Download" or "Re-Download" button resulted in an error while fetching the list of mirrors. This hides the download-related features when using a development build.
* | Export: Remove temp files from cache after exportRémi Verschelde2019-08-121-5/+7
|/ | | | | | | | | So far we left most temporary files lying around, so this attempts to fix that. I added a helper method to DirAccess to factor out the boilerplate of creating a DirAccess, checking if the file exists, remove it or print an error on failure.
* DirAccess: Drop compat get_next(bool *is_dir) which was hiddenRémi Verschelde2019-07-251-13/+7
| | | | | | | | | Fixes this warning: ``` ./core/os/dir_access.h:74:17: warning: 'virtual String DirAccess::get_next(bool*)' was hidden [-Woverloaded-virtual] ``` Part of #30790.
* Some code changed with Clang-Tidyqarmin2019-06-261-4/+3
|
* Fix typos with codespellRémi Verschelde2019-05-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using codespell 1.15.0. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang curvelinear doubleclick leapyear lod merchantibility nd numer ois ony que seeked synching te uint unselect webp EOF $ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po" $ git diff // undo unwanted changes ```
* Merge pull request #27707 from Calinou/tweak-message-wordingRémi Verschelde2019-04-301-1/+1
|\ | | | | Improve wording of various messages and make casing more consistent
| * Improve wording of various messages and make casing more consistentHugo Locurcio2019-04-211-1/+1
| | | | | | | | | | This also adds the number of selected projects to the confirmation dialog that appears before removing projects.
* | Android now (optionally) builds the template when exportingJuan Linietsky2019-04-071-1/+112
|/ | | | | Added new way to create add-ons Removed old way to create add-ons
* Sanitize file paths before extracting export templatesIgnacio Etcheverry2019-02-281-3/+3
|
* Make export templates extraction handle subdirectoriesIgnacio Etcheverry2019-02-251-1/+22
| | | | Fixes #25330
* Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-121-4/+4
| | | | | | 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.
* Remove cached .tpz archive after templates download and installRémi Verschelde2018-08-131-6/+16
| | | | Closes #20640.
* Export: Properly reload preset when opening dialogRémi Verschelde2018-07-181-3/+0
| | | | | | | | | 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.
* Fix export templates installation error...Yar-Mukhamedov2018-07-171-1/+9
|
* Merge pull request #16265 from nanoframe/export_issue_fixMax Hilbrunner2018-07-031-1/+7
|\ | | | | Fix error when downloading export templates