summaryrefslogtreecommitdiffstats
path: root/modules/visual_script
Commit message (Collapse)AuthorAgeFilesLines
* Rename Control PRESET_WIDE to PRESET_FULL_RECTFireForge2022-07-181-1/+1
|
* Add ok_button_text to AcceptDialog and cancel_button_text to ConfirmationDialogFireForge2022-07-092-4/+4
|
* Add support for documenting built-in annotationsYuri Sizov2022-07-042-0/+4
|
* Add a const call mode to Object, Variant and Script.K. S. Ernest (iFire) Lee2022-06-271-0/+2
| | | | | | | For this to work safely (user not call queue_free or something in the expression), a const call mode was added to Object and Variant (and optionally Script). This mode ensures only const functions can be called, making it safe to use from the editor. Co-Authored-By: reduz <reduzio@gmail.com>
* Remake resource thread safety and APIreduz2022-06-222-7/+7
| | | | | | | | * Ensures thread safety when resources are destroyed. * Simplified API by always forcing `ResourceCache::get_ref`, which needs less hacks and is fully thread safe. * Removed RWLock for resources because its not possible to use for the new logic. Should not be a problem. Supersedes #57533
* Improve stack overflow error message in GDScript and VisualScriptHugo Locurcio2022-06-152-4/+4
| | | | | Stack overflow errors are generally the result of infinite recursion within a script.
* i18n: Misc fixes translation stringsRémi Verschelde2022-06-083-8/+8
| | | | Adds some translator comments to solve some questions raised on Weblate.
* Fix visual editor settings change propagationHendrik Brucker2022-06-071-0/+3
|
* Support explicit values in flag properties, add C# flags supportRaul Santos2022-06-031-1/+43
| | | | | | | | | - Add support for explicit values in properties using `PROPERTY_HINT_FLAGS` that works the same way it does for enums. - Fix enums and flags in VisualScriptEditor (it wasn't considering the explicit value). - Use `PROPERTY_HINT_FLAGS` for C# enums with the FlagsAttribute instead of `PROPERTY_HINT_ENUM`.
* Improve Graphedit connection linesHendrik Brucker2022-05-301-0/+5
|
* Merge pull request #47665 from trollodel/tree_more_buttons_signalsRémi Verschelde2022-05-242-6/+14
|\
| * Add the button pressed to some signals in Treetrollodel2022-05-212-6/+14
| |
* | Merge pull request #61017 from derammo/derammo_58121Rémi Verschelde2022-05-222-10/+10
|\ \ | |/ |/| display of large help text in visual script
| * display of large help text in visual scriptderammo2022-05-212-10/+10
| | | | | | | | | | implemented vertical scroller for help text in popup disabled broken positioning code
* | Add a new HashSet templatereduz2022-05-202-2/+3
| | | | | | | | | | * Intended to replace RBSet in most cases. * Optimized for iteration speed
* | Use range iterators for RBSet in most casesAaron Record2022-05-192-85/+85
| |
* | Merge pull request #60463 from Geometror/improve-vs-1Rémi Verschelde2022-05-161-2/+10
|\ \
| * | Improve the VisualShader/VisualScript editor UIHendrik Brucker2022-04-301-2/+10
| | |
* | | Merge pull request #61010 from derammo/visual_script_selector_pathsRémi Verschelde2022-05-161-4/+4
|\ \ \
| * | | fixed path calculations in visual script selectorderammo2022-05-131-4/+4
| | |/ | |/| | | | | | | incorrect usage of lstrip was mangling file names
* / | Replace most uses of Map by HashMapreduz2022-05-167-109/+109
|/ / | | | | | | | | | | | | | | | | | | | | | | * 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 a new HashMap implementationreduz2022-05-122-100/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a new, cleaned up, HashMap implementation. * Uses Robin Hood Hashing (https://en.wikipedia.org/wiki/Hash_table#Robin_Hood_hashing). * Keeps elements in a double linked list for simpler, ordered, iteration. * Allows keeping iterators for later use in removal (Unlike Map<>, it does not do much for performance vs keeping the key, but helps replace old code). * Uses a more modern C++ iterator API, deprecates the old one. * Supports custom allocator (in case there is a wish to use a paged one). This class aims to unify all the associative template usage and replace it by this one: * Map<> (whereas key order does not matter, which is 99% of cases) * HashMap<> * OrderedHashMap<> * OAHashMap<>
* | Fix VisualScript export variableskobewi2022-05-061-0/+3
| |
* | Cleanup metadata usagekobewi2022-05-061-5/+1
| |
* | Merge pull request #60723 from reduz/refactor-module-initializationRémi Verschelde2022-05-042-83/+94
|\ \
| * | Refactor module initializationreduz2022-05-042-83/+94
| | | | | | | | | | | | | | | | | | | | | * Changed to use the same stages as extensions. * Makes the initialization more coherent, helping solve problems due to lack of stages. * Makes it easier to port between module and extension. * removed the DRIVER initialization level (no longer needed).
* | | Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio2022-05-033-8/+8
|/ / | | | | | | | | | | These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
* / Style: Partially apply clang-tidy's `cppcoreguidelines-pro-type-member-init`Rémi Verschelde2022-05-027-76/+72
|/ | | | | | | | | | | Didn't commit all the changes where it wants to initialize a struct with `{}`. Should be reviewed in a separate PR. Option `IgnoreArrays` enabled for now to be conservative, can be disabled to see if it proposes more useful changes. Also fixed manually a handful of other missing initializations / moved some from constructors.
* Merge pull request #60261 from fire-forge/theme-prop-renamesRémi Verschelde2022-04-252-2/+2
|\
| * Rename theme properties to include underscoresFireForge2022-04-232-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - check_vadjust -> check_v_adjust - close_h_ofs -> close_h_offset - close_v_ofs -> close_v_offset - commentfocus -> comment_focus - hseparation -> h_separation - ofs -> offset - selectedframe -> selected_frame - state_machine_selectedframe -> state_machine_selected_frame - table_hseparation -> table_h_separation - table_vseparation -> table_v_separation - vseparation -> v_separation
* | Improve VisualScript search and instancing of nodesDavid Cambré2022-04-174-33/+83
|/ | | | | | Constructors are more accessible. Basic type methods are now based on ClassDB and not registerd_node_names. Selecting search_classes now automatically changes the scope.
* Fix Visual Script's jump to function relative to zoomNicholas Huelin2022-04-121-1/+1
| | | When double-clicking on a function name the graph will now correctly jump to the function relative to the zoom ratio.
* Fix some issues found by cppcheck.bruvzg2022-04-066-81/+81
|
* Zero initialize all pointer class and struct membersRémi Verschelde2022-04-042-20/+20
| | | | | This prevents the pitfall of UB when checking if they have been assigned something valid by comparing to nullptr.
* Add GDExtension support to Scriptreduz2022-03-271-2/+2
| | | | | | | | | * Ability to create script languages from GDExtension * Some additions to gdnative_extension.h to make this happen * Moved the GDExtension binder to core This now allows creating scripting languages from GDExtension, with the same ease as if it was a module. It replaces the old PluginScript from Godot 3.x. Warning: GodotCPP will need to be updated to support this (it may be a bit of work as ScriptInstance needs to be created over there again).
* Initialize bools in the headers in editorAaron Franke2022-03-122-3/+1
|
* Use `RTR()` for VisualScriptNode captions and textsHaoyu Qiu2022-03-115-76/+82
|
* Discern between virtual and abstract class bindingsreduz2022-03-101-2/+2
| | | | | | | | | | | | | | * Previous "virtual" classes (which can't be instantiated) are not corretly named "abstract". * Added a new "virtual" category for classes, they can't be instantiated from the editor, but can be inherited from script and extensions. * Converted a large amount of classes from "abstract" to "virtual" where it makes sense. Most classes that make sense have been converted. Missing: * Physics servers * VideoStream * Script* classes. which will go in a separate PR due to the complexity involved.
* Remove VARIANT_ARG* macrosreduz2022-03-096-18/+18
| | | | | | | | * Very old macros from the time Godot was created. * Limited arguments to 5 (then later changed to 8) in many places. * They were replaced by C++11 Variadic Templates. * Renamed methods that take argument pointers to have a "p" suffix. This was used in some places and not in others, so made it standard. * Also added a dereference check for Variant*. Helped catch a couple of bugs.
* Sort variables in VisualScriptEditorRaul Santos2022-02-241-0/+1
| | | | | Sorts the script variables in alphabetical order to display them in VisualScriptEditor.
* Don't process VisualScriptNodesmegalobyte2022-02-191-1/+1
|
* Merge pull request #58187 from jakobbouchard/notification-switch-chunk-cRémi Verschelde2022-02-162-0/+3
|\ | | | | Convert _notification methods to switch - Chunk C
| * Convert _notification methods to switch - Chunk CJakob Bouchard2022-02-162-0/+3
| |
* | Merge pull request #58190 from MisoMosiSpy/vs_iconsRémi Verschelde2022-02-161-0/+3
|\ \
| * | Added icons for missing types in visual script’s icon list.MisoMosiSpy2022-02-161-0/+3
| | |
* | | Style: Cleanup single-line blocks, semicolons, dead codeRémi Verschelde2022-02-161-2/+0
|/ / | | | | | | | | Remove currently unused implementation of TextureBasisU, could be re-added later on if needed and ported.
* / Fix VisualScript crash when using Set Index nodeHaoyu Qiu2022-02-161-4/+1
|/
* Editor: Cleanup some includes dependenciesRémi Verschelde2022-02-151-1/+0
| | | | | | | | | | | 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.
* Add an XML schema for documentationHugo Locurcio2022-02-1547-47/+47
| | | | | | | | This makes it easier to spot syntax errors when editing the class reference. The schema is referenced locally so validation can still work offline. Each class XML's schema conformance is also checked on GitHub Actions.
* Merge pull request #57954 from TokageItLab/refactor-cubic-interpolateRémi Verschelde2022-02-133-41/+70
|\ | | | | Implement `cubic_interpolate()` as MathFunc for refactoring