summaryrefslogtreecommitdiffstats
path: root/editor/script_create_dialog.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* Use bullet points in the editor instead of dashes where relevantHugo Locurcio2021-07-281-2/+2
|
* Use const references where possible for List range iteratorsRémi Verschelde2021-07-251-3/+3
|
* Use C++ iterators for Lists in many situationsAaron Franke2021-07-231-7/+7
|
* Optimize StringName usagereduz2021-07-181-12/+12
| | | | | | | | | | | * 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.
* Merge pull request #50086 from Geometror/label-improve-layout-optionsRémi Verschelde2021-07-131-3/+3
|\ | | | | Improvements to Label's layout options
| * Improvements to Label's layout optionsHendrik Brucker2021-07-041-3/+3
| | | | | | | | | | | | - Added options to trim the text in case it overruns - Added more autowrap modes - Improved line breaking, which ignores trailing spaces
* | Minor cleanup of the "New Script" dialogMichael Alexsander2021-07-041-40/+32
|/
* Make contents of "Create Script" dialog expand with the window sizeMichael Alexsander2021-06-291-5/+3
|
* Documentation search fixesGregory Basile2021-06-161-6/+6
| | | | | | Updates rich_text_label so that the built-in documentation can be searched Previously, it would only find the first result and would not select other results Renames "_entered" functions to "_submitted"
* Core: Move DirAccess and FileAccess to `core/io`Rémi Verschelde2021-06-111-1/+1
| | | | | File handling APIs are typically considered part of I/O, and we did have most `FileAccess` implementations in `core/io` already.
* Improve the editor themeHugo Locurcio2021-04-271-2/+0
| | | | | | | | | | The editor theme now makes use of rounded corners and less borders to follow modern visual trends. The default theme's colors were also tweaked to make the blue hue more subtle (similar to the Arc theme, which was removed as a consequence). The Alien theme was replaced by a Breeze Dark theme, which should blend in well with the KDE theme.
* Rename LineEdit caret_* properties getters and setters to match propertyMarcel Admiraal2021-04-171-3/+3
|
* Warn when creating a script with the same name as the parent classAaron Franke2021-04-061-7/+21
|
* 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 empty() to is_empty()Marcel Admiraal2020-12-281-1/+1
|
* Fix incorrect title and button text in Inherit dialogVedat Günel2020-12-261-0/+2
|
* Rename AcceptDialog get_ok() to get_ok_button()Marcel Admiraal2020-12-141-7/+7
| | | | | | Also renames: - AcceptDialog add_cancel() to add_cancel_button() - ConfirmationDiaglog get_cancel() to get_cancel_button()
* Reorganized core/ directory, it was too fatty alreadyreduz2020-11-071-3/+3
| | | | | | -Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
* Fix being able to create invalid scripts by pressing enter inside "Path"Michael Alexsander2020-08-311-1/+9
|
* Fix TTR misuseSkyJJ2020-07-241-2/+2
|
* Resize dialogs (FileDialog, EditorFileDialog, Reparent, SceneTreeDialog and ↵Stijn Hinlopen2020-07-141-1/+1
| | | | resource depency dialogs).
* Remove String::find_last (same as rfind)Stijn Hinlopen2020-07-031-2/+2
|
* Prevent crash attaching a script with no languages registeredAndrii Doroshenko (Xrayez)2020-05-311-3/+4
|
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-13/+26
| | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* 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-29/+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 AllowShortIfStatementsOnASingleLineRémi Verschelde2020-05-101-6/+12
| | | | | | | Part of #33027, also discussed in #29848. Enforcing the use of brackets even on single line statements would be preferred, but `clang-format` doesn't have this functionality yet.
* Warn about built-in script limitations in the script creation dialogHugo Locurcio2020-04-041-0/+9
| | | | This partially addresses #31758.
* Popups are now windows also (broken!)Juan Linietsky2020-03-261-10/+10
|
* Working multiple window support, including editorJuan Linietsky2020-03-261-42/+44
|
* Style: Set clang-format Standard to Cpp11Rémi Verschelde2020-03-171-1/+1
| | | | | | | | | | For us, it practically only changes the fact that `A<A<int>>` is now used instead of the C++03 compatible `A<A<int> >`. Note: clang-format 10+ changed the `Standard` arguments to fully specified `c++11`, `c++14`, etc. versions, but we can't use `c++17` now if we want to preserve compatibility with clang-format 8 and 9. `Cpp11` is still supported as deprecated alias for `Latest`.
* Signals: Port connect calls to use callable_mpRémi Verschelde2020-02-281-26/+13
| | | | | | | | | 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-13/+13
| | | | objects and made them default.
* Changed logic and optimized ObjectID in ObjectDB and Variant, removed RefPtr.Juan Linietsky2020-02-151-1/+1
|
* Fix script icon not showing at startup bugSkyJJ2020-02-151-8/+3
|
* Texture refactorJuan Linietsky2020-02-111-2/+2
| | | | | | | | -Texture renamed to Texture2D -TextureLayered as base now inherits 2Darray, cubemap and cubemap array -Removed all references to flags in textures (they will go in the shader) -Texture3D gone for now (will come back later done properly) -Create base rasterizer for RenderDevice, RasterizerRD
* Fix built-in script creation loading existing scripts by mistakeMichael Alexsander2020-02-031-1/+7
|
* Make ScriptCreateDialog's script valid message a bit more clearerMichael Alexsander2020-01-101-1/+1
|
* Add option to disable loading scripts in ScriptCreateDialogMichael Alexsander2020-01-091-13/+27
|