summaryrefslogtreecommitdiffstats
path: root/editor/import_dock.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use check_changed_settings_in_group() everywherekobewi2024-02-191-1/+4
|
* Reorganize code related to editor themingYuri Sizov2024-01-161-1/+1
| | | | | | | | | | | | | This change introduces a new EditorThemeManager class to abstract theme generatio and its subroutines. Logic related to EditorTheme, EditorColorMap, and editor icons has been extracted into their respective files with includes cleaned up. All related files have been moved to a separate folder to better scope them in the project. This includes relevant generated files as well.
* avoid cleanup for non-loadable assetsNolan Carroll2023-09-281-3/+6
|
* Fix accessing editor theme items throughout the UIYuri Sizov2023-09-151-1/+1
| | | | This also exposes `EditorInterface::get_editor_theme`.
* Merge pull request #80573 from KoBeWi/2k_lines_of_changes_created_at_2AMYuri Sizov2023-09-061-2/+3
|\ | | | | | | Add EditorStringNames singleton
| * Add EditorStringNames singletonkobewi2023-09-031-2/+3
| |
* | Fix error message when reimporting resources with an empty scene openAaron Franke2023-09-031-2/+5
|/
* Merge pull request #75137 from nongvantinh/implement-6320Rémi Verschelde2023-08-071-0/+15
|\ | | | | | | Expose 'Reimport' on right-click context menu in the FileSystem panel
| * Expose 'Reimport' on right-click context menu in the FileSystem panelNong Van Tinh2023-05-011-0/+15
| |
* | Merge pull request #78890 from KoBeWi/who_needs_restart_anywayYuri Sizov2023-07-121-11/+74
|\ \ | | | | | | | | | Allow change import type without restarting editor
| * | Allow change import type without restarting editorkobewi2023-07-031-11/+74
| | |
* | | Document editor import options in the class referenceHugo Locurcio2023-06-151-0/+10
|/ / | | | | | | | | | | | | Tooltips are displayed when hovering import options, both in the Import dock and in the import defaults editor (which is in the Project Settings). Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* / Allow EditorInspector to change its property name style when necessaryHaoyu Qiu2023-04-291-2/+0
|/ | | | | | | | | | Previously, an EditorInspector's property name can only be set from outside. Inspectors used for settings needs to respond to changes in editor settings. So a few boilerplate code is almost always needed, including watching for a certain editor setting in `_notification()`. This commit adds a `set_use_settings_style()` function to tell the inspector to watch for editor settings changes on its own.
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Unify usage of GLOBAL/EDITOR_GETkobewi2022-10-181-1/+1
|
* Fix Import dock being too widekobewi2022-08-291-0/+3
|
* Rename `hint_tooltip` to `tooltip_text` & setgetMicky2022-08-271-2/+2
| | | | | | | | `hint_tooltip` -> `tooltip_text` `set_tooltip` -> `set_tooltip_text` `_get_tooltip` -> `get_tooltip_text` Updates documentation, too.
* Extract EditorResourceConversionPlugin into its own source files and clean ↵Yuri Sizov2022-07-311-0/+1
| | | | up editor includes
* Add ok_button_text to AcceptDialog and cancel_button_text to ConfirmationDialogFireForge2022-07-091-1/+1
|
* Move duplicate AutoWrap, Overrun and VisibleChar behavior enums to the ↵bruvzg2022-06-161-1/+1
| | | | TextServer.
* Add a new HashSet templatereduz2022-05-201-2/+2
| | | | | * Intended to replace RBSet in most cases. * Optimized for iteration speed
* Replace most uses of Map by HashMapreduz2022-05-161-4/+4
| | | | | | | | | | | | * Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
* Add property name style toggle to InspectorHaoyu Qiu2022-03-281-0/+2
|
* Allow negative indexes in ItemList and PopupMenukobewi2022-03-121-3/+3
|
* Improve compilation speed (forward declarations/includes cleanup)Hendrik Brucker2022-02-121-3/+5
|
* Revert "Add missing SNAME macro optimization to all theme methods call"Rémi Verschelde2022-02-081-5/+5
| | | | | | | | This reverts commit a988fad9a092053434545c32afae91ccbdfbe792. As discussed in #57725 and clarified in #57788, `SNAME` is not meant to be used everywhere but only in critical code paths. For theme methods specifically, it was by design that only getters use `SNAME` and not setters.
* Add missing SNAME macro optimization to all theme methods calljmb4622022-02-061-5/+5
|
* Vectors: Use clear() and has().Anilforextra2022-02-021-1/+1
| | | | | | Use clear() instead of resize(0). Use has() instead of "find(p_val) != -1".
* Store panels and docks singletons in their own classestrollodel2022-01-201-0/+4
|
* Fix the importer dock being blank when selecting multiple files.Morris Tabor2022-01-061-0/+2
| | | | Broken in cff0a1a896dfd825c4cccf1e3853ad5217261b40
* Merge pull request #56240 from KoBeWi/frankenstein's_PRRémi Verschelde2022-01-051-5/+25
|\
| * Make Import Dock more obvious to usekobewi2021-12-251-5/+25
| | | | | | | | Co-authored-by: Jairo Honorio <registrofx@gmail.com>
* | Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
|/ | | | Happy new year to the wonderful Godot community!
* Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-1/+1
| | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* Add path to functions that return iporter optionsreduz2021-11-141-10/+20
| | | | | | | -Allows displaying custom options for specific file format variants -Added support for scene format import to retrieve custom options This PR is necessary for #54886 to be implemented properly.
* Add a "dirty" marker to the editor import dock for unsaved changesHugo Locurcio2021-10-091-0/+23
|
* export "Keep" import option when multiple files are selectedDavid Socha2021-09-231-6/+12
| | | | Co-Authored-By: Rémi Verschelde <rverschelde@gmail.com>
* Use Ref<T> references as iterators where relevantRémi Verschelde2021-07-261-2/+2
| | | | And const when possible.
* Use const references where possible for List range iteratorsRémi Verschelde2021-07-251-10/+10
|
* Use C++ iterators for Lists in many situationsAaron Franke2021-07-231-50/+50
|
* Optimize StringName usagereduz2021-07-181-4/+4
| | | | | | | | | | | * Added a new macro SNAME() that constructs and caches a local stringname. * Subsequent usages use the cached version. * Since these use a global static variable, a second refcounter of static usages need to be kept for cleanup time. * Replaced all theme usages by this new macro. * Replace all signal emission usages by this new macro. * Replace all call_deferred usages by this new macro. This is part of ongoing work to optimize GUI and the editor.
* Rename `instance()`->`instantiate()` when it's a verbLightning_A2021-06-191-5/+5
|
* Check section existance before getting keysHaoyu Qiu2021-03-261-0/+4
|
* Add a "keep" import mode to keep files as-is and export them.Juan Linietsky2021-03-221-43/+77
|
* Improved 3D Scene ImporterJuan Linietsky2021-03-221-0/+38
| | | | | | | | | | | | * Added option for importers to show an Advanced settings dialog * Created advanced settings dialog for Scene Importer * Cleaned up importers (remove many old/unused options) * Added the ability to customize every node, material, mesh and animation individually * Saving to animations and meshes to files is now a manual process, making it more predictable * Added the ability for materials to be replaced by external files (or to be made external, up to you). * When doubleclicking an impoted scene in the filesystem dock, it automatically shows the import settings instead of asking to open it. WARNING: Lightmap UV unwrap is not working, it needs to be re-made.
* Removed _change_notifyreduz2021-02-101-2/+2
| | | | | | -For inspector refresh, the inspector now detects if a property change by polling a few times per second and then does update the control if so. This process is very cheap. -For property list refresh, a new signal (property_list_changed) was added to Object. _change_notify() is replaced by notify_property_list_changed() -Changed all objects using the old method to the signal, or just deleted the calls to _change_notify(<property>) since they are unnecesary now.
* 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-1/+1
| | | | | | Also renames: - AcceptDialog add_cancel() to add_cancel_button() - ConfirmationDiaglog get_cancel() to get_cancel_button()
* check the params section exist before erasing it in import_dockPaul Joannon2020-05-201-1/+3
| | | | related #38864
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-3/+6
| | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html