summaryrefslogtreecommitdiffstats
path: root/modules/visual_script/visual_script.h
Commit message (Collapse)AuthorAgeFilesLines
* Visualscript editor graph unification & refactoringSwarnim Arun2019-09-261-0/+3
| | | | Removes the need to have separate graphs per function for the VisualScript Nodes, and refactoring UI and other improvements such as fuzzy search, right click search boxes and in-graph editable nodes
* Tool Mode for VisualscriptSwarnim Arun2019-09-211-0/+3
| | | | Add the ability to VisualScript to function in Tool mode aka the Editor itself similar to GDScript or Mono
* Made use of semicolons more consitent, fixed formattingJohnJLight2019-06-191-2/+2
|
* Merge pull request #28606 from bojidar-bg/25889-indexed-set-defaultsRémi Verschelde2019-05-281-1/+0
|\ | | | | Fix default values not being read correctly in VS, take two
| * Fix default values not being read correctly in VS, take twoBojidar Marinov2019-05-021-1/+0
| | | | | | | | Fixes #25889.
* | Allow overriding how scripted objects are converted to stringsLeonard Meagher2019-05-031-0/+1
|/ | | | | | | | | | solves #26796 - ADD `String to_string()` method to Object which can be overriden by `String _to_string()` in scripts - ADD `String to_string(r_valid)` method to ScriptInstance to allow langauges to control how scripted objects are converted to strings - IMPLEMENT to_string for GDScriptInstance, VisualScriptInstance, and NativeScriptInstance - ADD Documentation about `Object.to_string` and `Object._to_string` - Changed `Variant::operator String` to use `obj->to_string()`
* Fix default values not being read correctly in VisualScriptBojidar Marinov2019-03-041-1/+0
| | | | Fixes #25889
* Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Allow signal connecting even if script is invalid (only when compiled with ↵Juan Linietsky2018-11-271-0/+1
| | | | tools), fixes #17070
* Fixed the problem with vector3 constructorthe 8th mage2018-10-111-0/+1
| | | | | | | | Whenever there's a port change that may change the inputs, the default inputs will be recalculated. Moving the update port loop into its own function. Signed-off-by: K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com>
* Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-121-2/+2
| | | | | | This allows more consistency in the manner we include core headers, where previously there would be a mix of absolute, relative and include path-dependent includes.
* Added system for GDScript warningsGeorge Marques2018-08-101-1/+1
| | | | | | | - Count and panel per script. - Ability to disable warnings per script using special comments. - Ability to disable warnings globally using Project Settings. - Option to treat enabled warnings as errors.
* Improve VisualScript UXK. S. Ernest (iFire) Lee2018-07-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Prototype faster function call ux. * Work on general search ux. * Able to create nodes from search. * Show class for variables but not methods. * Get actions search working. * Descriptions now show for both methods and properties. * Enable zooming on mouse wheel up and down. * Make the drag trigger on right mouse button. * Search now shows for action visual script nodes. * Able to search visual node names. * Search works better. * Change zooming scale to hide artifacts better. * Remove zoom changes * Select from base should check properties too like the other functions. * Seq_connect flag is needed to set sequence lines correctly. * Remove comment * Code cleanup with function names and arguments. * Use brief description for search descriptions. * Clean and fix bug with input nodes connecting with sequence lines. * Add a warning and fix some edge conditions with sequence into data lines and vice versa. * Don't search functions when pulling from a sequence node. * Don't show actions when pulling from a data line. * Set set and get properties. * Convert visual script operators to the correct type * Create a function preset finds only functions. * Singletons can now find functions. * Add shift-a for generic search. * Add brief descriptions for Visual Script nodes. * Search boxes can now filter names. * Add bigger hit zones to node connect. * For the drop zones, make all the rect2 areas the same size. * Function names in visual script node should be lower case so that search works better. * Use the convention of capitalize() for set, set, visual script nodes and methods. * Make search more general. Ignore "_" and make case-insensitive. Also made the search window smaller and remove extra info from search * Make type_cast use the connecting node's type and remove use of found variable. * Fix case where you call an instance's call function where it becomes an invalid call. * Make get_visual_node_names use a set of filters, move action creations and fix bug with sequence node connections. * Make the window bigger. * Make connect_data and connect_seq more robust. * Add icons to search items. * Add vs constructors in shift-a menu. * Operators, builtins and constructors show type name. Fix several problems with port connections. * In shift-a mode search everything. * Code cleanup * Work on autocompleting the type. * Use type guess in action creation. * Check if type hint string exists in object variables when generating the visual script search. * Add the hint to SceneTree. * Add original type detection. * Make type casting great again. This puts the type casted base type as the data output type string hint. * Pass the type in a VisualScriptFunctionCall too. * Set the base type correctly in VisualScriptFunctionGet and VisualScriptFunctionSet using hint string. * Make sure the instance is passed in VisualScriptPropertySet. * Restore search on the node's type. * Remove dependencies from graph_edit. * Remove dependencies from property_selector and name the class visual_script_property_selector. * Extract hot zones into a function. * Move hot_zones constants into default theme. * Bigger capture zones. * Clean messy port_grab_distance variables. * Remove RMB functionality. * Remove memory leak on showing visual script descriptions. * Read the port_grab_distance constants on enter tree and theme changed.
* Add editor highlight for type-safe linesGeorge Marques2018-07-201-1/+1
| | | | | The line number is hightlighted to indicate that the line contains only type-safe code.
* Refactor RPCMode enum and checksFabio Alessandrelli2018-05-291-2/+2
|
* Revert "RPCMode refactor, more sync modes"Max Hilbrunner2018-05-291-2/+2
|
* Merge pull request #19021 from Faless/rpc_sync_fixMax Hilbrunner2018-05-291-2/+2
|\ | | | | RPCMode refactor, more sync modes
| * Refactor RPCMode enum and checksFabio Alessandrelli2018-05-261-2/+2
| |
* | Merge pull request #18516 from PJB3005/18-04-30-visual-script-title-barsMax Hilbrunner2018-05-261-1/+1
|\ \ | |/ |/| Move things into the title bars of Visual Script nodes.
| * Move things into the title bars of Visual Script nodes.Pieter-Jan Briers2018-04-301-1/+1
| | | | | | | | | | | | This is an attempt to make VS slightly nicer to use. WiP.
* | Fix Coverity reports of uninitialized scalar variableRémi Verschelde2018-04-191-2/+0
|/ | | | | | | | | | | Fixes most current reports on Coverity Scan of uninitialized scalar variable (CWE-457): https://cwe.mitre.org/data/definitions/457.html These happen most of the time (in our code) when instanciating structs without a constructor (or with an incomplete one), and later returning the instance. This is sometimes intended though, as some parameters are only used in some situations and should not be double-initialized for performance reasons (e.g. `constant` in ShaderLanguage::Token).
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-051-3/+4
| | | | | | Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
* Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Create API to add and remove VisualScript custom nodesGeorge Marques2017-11-151-0/+1
| | | | | | | This makes a VisualScriptEditor singleton, which gives plugins the ability to register their own custom nodes. Those will be available for insertion in the Visual Script editor, under the "Custom Nodes" category.
* Removes Script::get_node_type()Jerome670002017-10-251-2/+0
| | | | used before GDScript, with squirrel apparently
* Add ScriptLanguage::supports_builtin_mode and improve ScriptCreateDialogIgnacio Etcheverry2017-10-241-0/+1
| | | | | - Make ScriptCreateDialog disable the built-in script checked button if the language does not support it. - ScriptLanguage's get_template and make_template now receive the script path as class name if the the script language does not have named classes.
* Rename pos to position in user facing methods and variablesletheed2017-09-201-2/+2
| | | | | | | | | | | Rename user facing methods and variables as well as the corresponding C++ methods according to the folloming changes: * pos -> position * rot -> rotation * loc -> location C++ variables are left as is.
* Fixes language overridden external editorsIgnacio Etcheverry2017-09-031-1/+0
|
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* Updated function argument namesWilson E. Alvarez2017-08-121-2/+2
|
* Makes all Godot API's methods Lower CaseIndah Sylvia2017-08-071-2/+2
|
* -Many fixes to VisualScript, fixed property names, etc.Juan Linietsky2017-06-301-1/+1
| | | | | | -Added ability to set/get a field in GetSet, as well as assignment ops -Added a Select node -Fixed update bugs related to variable list and exported properties, closes #9458
* Better user expirence with external text editors.geequlim2017-06-271-0/+1
| | | | | Implements open_in_external_editor for subclasses of ScriptLanguage. Add option 'Debug with external editor' to debug menu to control the behavoir of script opened by editor.
* Add ability to use custom script templates.Andreas Haas2017-06-131-0/+2
| | | | | | | | | | Templates will be loaded from .godot/script_templates For now they're disabled for GDNative. Ideas for further improvements: - Add a "Save as Template" option to the script editor, as it can normally only save to res:// - Support more placeholders / custom placeholders
* Removal of InputEvent as built-in Variant type..Juan Linietsky2017-05-201-2/+0
| | | | this might cause bugs I haven't found yet..
* External editor improvements and fixesIgnacio Etcheverry2017-04-171-0/+2
| | | | | | | | | | | | | | | Notable changes: - Now ScriptLanguages have the option to override the global external editor setting. If `ScriptLanguage::open_in_external_editor()` returns `ERR_UNAVAILABLE` (which it does by default), then the global external editor option will be used. - Added formatting to the external editor execution arguments. Now it's possible to write something like this: `{project} -g {file}:{line}:{col}`. - `VisualScript::get_member_line()` now can return the line of functions (well, it returns the id of the _Function_ node of the function). I guess there is nothing else we can get a "line" from. Fixes: - Fixes a bug where `ScriptEditor::script_goto_method()` would not work if the script is not already open in the built-in editor. - Fixes wrong DEFVAL for `cursor_set_column` and `cursor_set_line` in TextEdit. - `Script::get_member_line()` now returns -1 ("found nothing") by default.
* Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-081-0/+1
|
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-051-231/+204
| | | | | | | | | | | | | | | | | | | | | | | | I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
* Add a bunch of missing Godot headers in own filesRémi Verschelde2017-03-051-0/+28
|
* Type renames:Juan Linietsky2017-01-111-1/+1
| | | | | | | | | | | | Matrix32 -> Transform2D Matrix3 -> Basis AABB -> Rect3 RawArray -> PoolByteArray IntArray -> PoolIntArray FloatArray -> PoolFloatArray Vector2Array -> PoolVector2Array Vector3Array -> PoolVector3Array ColorArray -> PoolColorArray
* -All types have editable script now in propertiesJuan Linietsky2017-01-091-2/+0
| | | | -Changed clip to a property in Control which can be set by the user
* ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to ↵Juan Linietsky2017-01-021-4/+4
| | | | | | | | Variant. All usages of "type" to refer to classes were renamed to "class" ClassDB has been exposed to GDScript. OBJ_TYPE() macro is now GDCLASS()
* Should Fix Compiling Export TemplatesISylvox2016-09-061-0/+2
| | | | | - Works on Windows, Linux x11, Linux Server, Android, HTML5 - Not tested on Mac/iOS (don't have Apple's devices yet)
* Removed script_variables/ prefix to VS properties, made them easier to ↵Juan Linietsky2016-09-041-1/+0
| | | | access from GD and Expression nodes
* Connection hints when connecting to empty space.Juan Linietsky2016-09-031-1/+2
|
* made visual script switch more flexibleJuan Linietsky2016-09-011-0/+2
|
* More improvements to visual script..Juan Linietsky2016-08-311-0/+1
| | | | fixed a bug of not saving when sub-nodes changed.
* More visual script improvementsJuan Linietsky2016-08-301-16/+22
| | | | | | -Added anti-aliasing on lines -Improved draw performance enormously -Removed sequence ports for most nodes, current visual scripts will likely be broken now. Sorry!
* More visual script workJuan Linietsky2016-08-251-0/+3
| | | | | | | | | -Block switches to 2d/3d editor if editing visual script -Added cast node in flow control -Added ability to do RPC in visual script -Comment nodes -Fix bug with inverted cable in connecting backwards -Copy and paste nodes, including from different scripts
* Proper function/property selection in visual script editing for property.Juan Linietsky2016-08-231-1/+2
| | | | This one has an ordered list, built-in description, search, etc.