summaryrefslogtreecommitdiffstats
path: root/editor/script_create_dialog.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #72288 from MewPurPur/use-string-repeatClay John2023-05-051-3/+3
|\ | | | | Use `String.repeat()` to optimize several String methods
| * Use String.repeat() in more placesVolTer2023-05-011-3/+3
| |
* | Improve includes of EditorNode (and everything else)Yuri Sizov2023-04-071-1/+1
|/ | | | | | Also start organizing editor-specific GUI components into a dedicated folder, `editor/gui`. Also move `editor_file_server` next to the rest of debugger classes.
* 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".
* Fix invalid metadata names in script create dialogkobewi2022-12-011-9/+9
|
* Revert "Fix "Script Create" dialog errors with metadata"kobewi2022-12-011-13/+25
| | | | This reverts commit bb5198a5ac92a6fe699751df9bb9c09109a2955a.
* Remove redundant Variant-types initializationsMarkus Sauermann2022-11-141-1/+1
|
* Merge pull request #68247 from akien-mga/emscripten-warnings-unuset-but-setRémi Verschelde2022-11-061-2/+0
|\ | | | | | | Fix -Wunused-but-set-variable warnings from Emscripten 3.1.20
| * Fix -Wunused-but-set-variable warnings from Emscripten 3.1.20Rémi Verschelde2022-11-041-2/+0
| |
* | Merge pull request #65829 from KoBeWi/custom_path_typeRémi Verschelde2022-11-061-1/+1
|\ \ | |/ |/| Fix extending scripts by path
| * Fix extending scripts by pathkobewi2022-09-151-1/+1
| |
* | Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-5/+5
|/ | | | change warnings=all to use /W4.
* Merge pull request #58617 from KoBeWi/custom_somethingRémi Verschelde2022-09-071-2/+10
|\ | | | | | | Improve handling of custom types
| * Improve handling of custom typeskobewi2022-09-051-2/+10
| |
* | Improve naming of theme properties throughout GUI codeYuri Sizov2022-09-061-1/+1
|/ | | | | | | | | | | | | | Rename ItemList's bg -> panel Rename ItemList's bg_focus -> focus Rename ProgressBar's bg -> background Rename ProgressBar's fg -> fill Rename Tree's bg -> panel Rename Tree's bg_focus -> focus Rename ScrollContainer's bg -> panel Rename FileDialog's *_icon_modulate -> *_icon_color Rename FileDialog's files_disabled -> file_disabled_color Rename CheckButton's on/off -> checked/unchecked Rename check_v_adjust -> check_v_offset
* Add `String.to_{camel,pascal,snake}_case` methodsDanil Alexeev2022-08-301-1/+1
|
* Rename String `plus_file` to `path_join`Aaron Franke2022-08-291-2/+2
|
* Revert "Remove NOTIFICATION_ENTER_TREE when paired with ↵Rémi Verschelde2022-08-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NOTIFICATION_THEME_CHANGED" This reverts commit 4b817a565cab8af648c88cfc7ab6481e86ee3625. Fixes #64988. Fixes #64997. This caused several regressions (#64988, #64997, https://github.com/godotengine/godot/issues/64997#issuecomment-1229970605) which point at a flaw in the current logic: - `Control::NOTIFICATION_ENTER_TREE` triggers a *deferred* notification with `NOTIFCATION_THEME_CHANGED` as introduced in #62845. - Some classes use their `THEME_CHANGED` to cache theme items in member variables (e.g. `style_normal`, etc.), and use those member variables in `ENTER_TREE`, `READY`, `DRAW`, etc. Since the `THEME_CHANGE` notification is now deferred, they end up accessing invalid state and this can lead to not applying theme properly (e.g. for EditorHelp) or crashing (e.g. for EditorLog or CodeEdit). So we need to go back to the drawing board and see if `THEME_CHANGED` can be called earlier so that the previous logic still works? Or can we refactor all engine code to make sure that: - `ENTER_TREE` and similar do not depend on theme properties cached in member variables. - Or `THEME_CHANGE` does trigger a general UI update to make sure that any bad theme handling in `ENTER_TREE` and co. gets fixed when `THEME_CHANGE` does arrive for the first time. But that means having a temporary invalid (and possibly still crashing) state, and doing some computations twice which might be heavy (e.g. `EditorHelp::_update_doc()`).
* Remove NOTIFICATION_ENTER_TREE when paired with NOTIFICATION_THEME_CHANGEDAaron Record2022-08-271-2/+1
|
* Clear built-in name field when creating new scriptkobewi2022-08-181-0/+1
|
* Swap arguments of ResourceSaver.save()kobewi2022-07-291-1/+1
|
* Merge pull request #63603 from aaronfranke/editor-pathsRémi Verschelde2022-07-291-2/+3
|\ | | | | Move editor paths into the EditorPaths class
| * Move editor paths into the EditorPaths classAaron Franke2022-07-291-2/+3
| |
* | Remove Signal connect bindsJuan Linietsky2022-07-291-2/+2
|/ | | | | Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
* Add ok_button_text to AcceptDialog and cancel_button_text to ConfirmationDialogFireForge2022-07-091-4/+4
|
* Move duplicate AutoWrap, Overrun and VisibleChar behavior enums to the ↵bruvzg2022-06-161-4/+4
| | | | TextServer.
* Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio2022-05-031-1/+1
| | | | | | These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
* Make FileAccess and DirAccess classes reference counted.bruvzg2022-04-111-8/+6
|
* Fix "Script Create" dialog errors with metadataMichael Alexsander2022-03-271-25/+13
|
* Initialize bools in the headers in editorAaron Franke2022-03-121-17/+0
|
* Allow negative indexes in ItemList and PopupMenukobewi2022-03-121-1/+1
|
* Convert uses of `DirAccess *` to `DirAccessRef` to prevent memleaksRémi Verschelde2022-03-111-19/+16
| | | | | | | | `DirAccess *` needs to be deleted manually, and this is often forgotten especially when doing early returns with `ERR_FAIL_COND`. `DirAccessRef` is deleted automatically when it goes out of scope. Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
* Fix errors when updating script template listHaoyu Qiu2022-02-201-15/+67
|
* Connect text_submitted of built-in script namekobewi2022-02-171-0/+1
|
* Editor: Cleanup some includes dependenciesRémi Verschelde2022-02-151-1/+1
| | | | | | | | | | | Removes some unnecessary includes from `editor_node.h`, and instead add those where they're used. Removes unnecessary `editor_node.h` includes in various editor classes. Renames `dynamicfont` to `dynamic_font` in a couple files. Misc cleanup while jumping through that rabbit hole.
* Improve compilation speed (forward declarations/includes cleanup)Hendrik Brucker2022-02-121-1/+2
|
* Revert "Add missing SNAME macro optimization to all theme methods call"Rémi Verschelde2022-02-081-9/+9
| | | | | | | | 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-9/+9
|
* Add missing SNAME macro optimization in some function callsjmb4622022-02-061-2/+2
|
* Fix template OptionButton in create script dialog doesn't select the correct ↵Jean-Michel Bernard2022-02-051-2/+2
| | | | template
* Cleanup and move char functions to the `char_utils.h` header.bruvzg2022-02-041-1/+1
|
* String: Add contains().Anilforextra2022-02-041-2/+2
|
* Move placeholder color to theme itemPaulb232022-01-301-2/+6
|
* Fix typos with codespellRémi Verschelde2022-01-071-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using codespell 2.1.0. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang ans ba curvelinear dof doubleclick fave findn gird inout leapyear lod merchantibility nd numer ois ony que readded seeked statics
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Improve editor template workflowfabriceci2022-01-021-214/+361
| | | | Co-Authored-By: jmb462 <jmb462@gmail.com>
* Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-7/+7
| | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* align to horizontal_alignment, valign to vertical_alignment, relatedNathan Franke2021-12-091-2/+2
|
* Allow to name built-in scripts upon creationkobewi2021-11-041-2/+24
|
* Use range iterators for `Map`Lightning_A2021-09-301-2/+2
|