summaryrefslogtreecommitdiffstats
path: root/modules/visual_script
Commit message (Collapse)AuthorAgeFilesLines
* Replace remaining uses of `NULL` with `nullptr`Rémi Verschelde2021-04-291-1/+1
| | | | Follow-up to #38736 (these uses were likely added after this PR was merged).
* Core: Drop custom `copymem`/`zeromem` definesRémi Verschelde2021-04-271-2/+2
| | | | | | | | We've been using standard C library functions `memcpy`/`memset` for these since 2016 with 67f65f66391327b2967a20a89c3627e1dd6e84eb. There was still the possibility for third-party platform ports to override the definitions with a custom header, but this doesn't seem useful anymore.
* Rename LineEdit caret_* properties getters and setters to match propertyMarcel Admiraal2021-04-171-4/+4
|
* Style: Apply clang-tidy's `readability-braces-around-statements`Rémi Verschelde2021-04-052-5/+7
|
* Style: Apply clang-tidy's `modernize-use-nullptr`Rémi Verschelde2021-04-051-4/+4
|
* Merge pull request #47592 from ↵Rémi Verschelde2021-04-051-0/+1
|\ | | | | | | | | jmb462/fix-VisualScriptFunctionState-connect-to-null-signal-crash Fix VisualScriptFunctionState connect to null object crash (Fix #47572)
| * Fix VisualScriptFunctionState connect to null object crashjmb4622021-04-031-0/+1
| |
* | Fix crashes in *_input functionsRafał Mikrut2021-04-051-0/+2
|/
* Rename ButtonList enum and members to MouseButtonAaron Franke2021-03-231-1/+1
|
* Fixes small typos and grammar correctionAnshul7sp12021-03-126-9/+9
|
* Removed hardcoded shortcuts from /scene and converted to input actionsEric M2021-02-181-8/+4
| | | | | | This removes hardcoded actions from things like LineEdit and TextEdit. Previously, things like copy, paste, etc were all hardcoded to Ctrl+C, Ctrl+V, etc. They could not be changed. This allows the possibility of them being changed, by making them use the action map. This has the added benefit of greatly simplifying the input handling logic in those controls. The logic which was previously in a huge and hard to follow switch statement has been extracted to individual methods.
* Improve resource load cachereduz2021-02-116-0/+40
| | | | | | -Added a new method in Resource: reset_state , used for reloading the same resource from disk -Added a new cache mode "replace" in ResourceLoader, which reuses existing loaded sub-resources but resets their data from disk (or replaces them if they chaged type) -Because the correct sub-resource paths are always loaded now, this fixes bugs with subresource folding or subresource ordering when saving.
* Removed _change_notifyreduz2021-02-107-63/+62
| | | | | | -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.
* Initialize class/struct variables with default values in modules/Rafał Mikrut2021-02-084-86/+65
|
* Snap VisualScript comment to grid when resizingKanabenki2021-02-061-2/+9
|
* Replace ColorN and from HTML with a string constructorAaron Franke2021-02-013-33/+5
|
* Fix minimap capturing events and improve its themeYuri Sizov2021-01-251-0/+6
| | | | Add an editor setting for minimap opacity in visual editors
* Merge pull request #44918 from Chaosus/vs_assign_default_valueRémi Verschelde2021-01-071-0/+13
|\ | | | | Auto-assign default value for variable in visual script on type changing
| * Auto-assign default value for variable in visual script on type changingYuri Roubinsky2021-01-041-0/+13
| |
* | Merge pull request #44914 from swarnimarun/master-visualscript-refactorRémi Verschelde2021-01-042-82/+54
|\ \ | |/ |/| Fix doc for the VisualScript class after #39649 PR
| * Fix doc for the VisualScript class.Swarnim Arun2021-01-052-82/+54
| |
* | Merge pull request #39649 from swarnimarun/master-visualscript-refactorRémi Verschelde2021-01-044-1793/+1199
|\| | | | | Visual Script Refactor
| * Refactoring Visual ScriptSwarnim Arun2021-01-014-1793/+1199
| | | | | | | | | | * for bloat from hacks for default function * for ease of development nodes becoming detached from functions
* | doc: Sync classref with current sourceRémi Verschelde2021-01-041-1/+1
| |
* | Update copyright statements to 2021Rémi Verschelde2021-01-0120-40/+40
|/ | | | | | | | | | | | | | 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 Math::stepify to snappedMarcel Admiraal2020-12-282-9/+9
|
* Rename empty() to is_empty()Marcel Admiraal2020-12-283-12/+12
|
* Rename Control margin to offsetMarcel Admiraal2020-12-231-7/+7
|
* Fix broken members panel in visual script editorYuri Roubinsky2020-12-181-1/+1
|
* Rename AcceptDialog get_ok() to get_ok_button()Marcel Admiraal2020-12-142-8/+8
| | | | | | Also renames: - AcceptDialog add_cancel() to add_cancel_button() - ConfirmationDiaglog get_cancel() to get_cancel_button()
* Remove connect *_compat methodsAaron Franke2020-12-051-1/+1
|
* Refactor DocData into core and editor (DocTools) partsThakee Nathees2020-12-022-1/+3
|
* Documentation generation for GDScriptThakee Nathees2020-11-291-0/+7
| | | | | | | | | | | | | | | | | | - ClassDoc added to GDScript and property reflection data were extracted from parse tree - GDScript comments are collected from tokenizer for documentation and applied to the ClassDoc by the GDScript compiler - private docs were excluded (name with underscore prefix and doesn't have any doc comments) - default values (of non exported vars), arguments are extraced from the parser - Integrated with GDScript 2.0 and new enums were added. - merge conflicts fixed
* Merge pull request #42109 from EricEzaM/PR/input-and-shortcuts-reworkRémi Verschelde2020-11-281-1/+1
|\ | | | | Shortcuts rework - fixed issues with input propagation and triggering of unwanted shortcuts.
| * Implement new shortcuts system.Eric M2020-11-231-1/+1
| | | | | | | | unhandled_key_input changed to unhandled_button_input. Controls can set a 'shortcut_context' which they can then use to determine if their shortcuts should be triggered or not, based on if the viewport's focused GUI control is a child of their 'shortcut context'.
* | [Complex Text Layouts] Refactor Font class, default themes and controls to ↵bruvzg2020-11-261-0/+1
|/ | | | | | | | use Text Server interface. Implement interface mirroring. Add TextLine and TextParagraph classes. Handle UTF-16 input on macOS and Windows.
* doc: Warn about using Node internal processingRémi Verschelde2020-11-201-1/+1
| | | | | | | | See #43689. Also 'fixed' some spelling for behavior in publicly visible strings. (Sorry en_GB, en_CA, en_AU, and more... Silicon Valley won the tech spelling war.)
* Remove empty lines around braces with the formatting scriptAaron Franke2020-11-164-4/+0
|
* Refactor variant built-in methods yet again.reduz2020-11-112-17/+19
| | | | | | * Using C-style function pointers now, InternalMethod is gone. * This ensures much better performance in typed code. * Renamed builtin_funcs to utility_funcs, to avoid naming confusion
* Variant: Sync docs with new constructors, fixups after #43403Rémi Verschelde2020-11-091-21/+18
| | | | | Change DocData comparators for MethodDoc and ArgumentDoc to get a better ordering of constructors.
* Variant: Rename Type::_RID to Type::RIDRémi Verschelde2020-11-091-2/+2
| | | | | | | | The underscore prefix was used to avoid the conflict between the `RID` class name and the matching enum value in `Variant::Type`. This can be fixed differently by prefixing uses of the `RID` class in `Variant` with the scope resolution operator, as done already for `AABB`.
* Refactored variant constructor logicreduz2020-11-097-18/+24
|
* Reorganized core/ directory, it was too fatty alreadyreduz2020-11-079-59/+18
| | | | | | -Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
* Refactored variant setters/gettersreduz2020-11-072-10/+10
| | | | | | -Discern between named, indexed and keyed -Get direct access to functions for typed GDScript and GDNative bindings -Small changes to some classes in order to work with the new setget binder
* Refactored Variant Operators.reduz2020-11-061-3/+0
| | | | | -Using classes to call and a table -For typed code (GDS or GDNative), can obtain functions to call prevalidated or ptr.
* Exposed randi_range to global funcs + renamed rand_range to randf_rangeYuri Roubinsky2020-11-063-51/+74
|
* doc: Sync classref with current source + fixup some bindingsRémi Verschelde2020-11-041-0/+2
| | | | Includes various changes triggered by the refactoring of method bindings.
* Optimize SVG using `svgcleaner --multipass`Hugo Locurcio2020-10-251-6/+1
| | | | This decreases the editor binary size by about 8 KB.
* Removed underscore from GraphEdit begin/end_node_move signalsYuri Roubinsky2020-10-201-2/+2
|
* Refactor MethodBind to use variadic templatesreduz2020-10-181-1/+1
| | | | Removed make_binders and the old style generated binders.