summaryrefslogtreecommitdiffstats
path: root/editor/script_create_dialog.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Ignore path error for built-in scripts/shaderskobewi2023-10-271-1/+1
|
* Fix ScriptCreateDialog not accepting on submitkobewi2023-09-251-7/+2
|
* Editor: Remove unused Class Name field from Create Script dialogDanil Alexeev2023-09-121-101/+21
|
* Merge pull request #81075 from SekoiaTree/prevent-leading-dotRémi Verschelde2023-09-081-0/+3
|\ | | | | | | Prevent creating any type of file with a leading dot
| * Prevent creating any type of file with a leading dotsekoia2023-09-071-0/+3
| | | | | | | | | | Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Co-authored-by: gotnospirit <gotnospirit@gmail.com>
* | Merge pull request #81299 from ↵Yuri Sizov2023-09-061-0/+2
|\ \ | | | | | | | | | | | | | | | jsjtxietian/Reload-built_in-script-after-create-to-allow-drag-nodes-into-it Fix an error when dragging nodes into built-in scripts because script does not inherit Node
| * | Reload built-in script after create to allow dropping nodes into itjsjtxietian2023-09-061-0/+2
| |/
* / Add EditorStringNames singletonkobewi2023-09-031-6/+7
|/
* Standardize dialog input validation as a new classkobewi2023-08-081-104/+43
|
* Use compile-time Unicode string conversionHugo Locurcio2023-08-071-1/+1
| | | | | Thanks to this syntax introduced in C++11, this reduces the amount of work that needs to be performed at run-time while making the code more terse.
* Fix indentation in script templatesNinni Pipping2023-06-261-16/+35
|
* 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
|