summaryrefslogtreecommitdiffstats
path: root/modules/visual_script/visual_script_editor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Do not use theme to set LineEdit right_iconŁukasz Rutkowski2018-08-111-1/+1
|
* Add clear text button to LineEditŁukasz Rutkowski2018-08-111-0/+1
| | | | | | | | | | - Add pressed state to clear button - Enable clear button on all inputs with search icon - Remove duplicate clear buttons - Fix rendering of icon for center and right alignments - Add clear button to more search fields - Add clear icon to default theme - Add method to control enabled state of clear button - Add property to enable clear button from inspector
* Carry property hint and hint string through to Visualscript virtual functions.K. S. Ernest (iFire) Lee2018-07-271-1/+1
|
* Merge pull request #20457 from fire/vs_generic_search_crash_and_connectingRémi Verschelde2018-07-271-14/+17
|\ | | | | Visualscript: misc generic search changes
| * Visualscript fix crash and generic search does not connect ports.K. S. Ernest (iFire) Lee2018-07-261-14/+17
| | | | | | | | * Signal change requires function changes to _selected_new_virtual_method
* | Visualscript: Don't type guess on nil.K. S. Ernest (iFire) Lee2018-07-261-7/+7
|/
* Fix Visual Script duplicate issueSwarnim Arun2018-07-261-2/+2
|
* Visualscript: Don't show Shift+A search box at every screen and reuse ↵K. S. Ernest (iFire) Lee2018-07-251-8/+6
| | | | | | EDIT_FIND_NODE_TYPE (ctrl-f) shortcut. The generic search shortcut is now CTRL-F.
* Merge pull request #18867 from fire/better_vx_us_rebase_02Juan Linietsky2018-07-241-141/+307
|\ | | | | Improve VisualScript UX
| * Improve VisualScript UXK. S. Ernest (iFire) Lee2018-07-241-141/+307
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | Allow opening and editing of any utf_8 file in script editorPaulb232018-07-221-13/+12
|/
* Fix visual script editor interfaceK. S. Ernest (iFire) Lee2018-07-101-0/+1
|
* Merge pull request #18516 from PJB3005/18-04-30-visual-script-title-barsMax Hilbrunner2018-05-261-7/+26
|\ | | | | 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-7/+26
| | | | | | | | | | | | This is an attempt to make VS slightly nicer to use. WiP.
* | -New inspector.Juan Linietsky2018-05-151-1/+1
|/ | | | | | | -Changed UI resizing code, gained huge amount of speed. -Reorganized timer sync to clean up behavior (sorry forgot commit this before) -
* Abstracted the syntax highlighter from text editPaulb232018-04-021-0/+6
|
* Merge pull request #15379 from ianb96/delete_key_fixRémi Verschelde2018-02-141-6/+38
|\ | | | | Filesystem and Visual Script Members delete key fix
| * Filesystem and Visual Script Members keyboard shortcuts fixIan2018-01-061-6/+38
| |
* | Make sure PropertyHint matches in the VisualScript editor.K. S. Ernest (iFire) Lee2018-01-151-1/+2
| |
* | Add missing copyright headers and fix formattingRémi Verschelde2018-01-051-0/+1
|/ | | | | | 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!
* Merge pull request #14754 from willnationsdev/dictionary-copyRémi Verschelde2017-12-171-3/+3
|\ | | | | Added 'duplicate' function for Dictionary in C++ and API.
| * Dictionary::copy -> ::duplicateWill Nations2017-12-171-3/+3
| |
* | Now every variant type has its icon.Daniel J. Ramirez2017-12-171-8/+8
| |
* | General use Variant type icons, plus other icon updates.Daniel J. Ramirez2017-12-171-52/+52
|/
* Made Vector::ptrw explicit for writing, compiler was sometimes using the ↵Juan Linietsky2017-11-251-1/+1
| | | | | | wrong function, leading to unnecesary copy on writes and reduced performance.
* Merge pull request #11933 from cxong/masterJuan Linietsky2017-11-211-3/+3
|\ | | | | Use "Command" instead of "Meta" for macOS (#1619)
| * Use "Command" for OSX in translation strings (#1619)Cong2017-10-131-3/+3
| |
* | Rename Rect3 to AABB.Ferenc Arn2017-11-171-2/+2
| | | | | | | | Fixes #12973.
* | Create API to add and remove VisualScript custom nodesGeorge Marques2017-11-151-0/+43
| | | | | | | | | | | | | | 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.
* | Properly fix node path selection in input ports, closes #12152Juan Linietsky2017-11-121-0/+17
| |
* | (VS) Add space after "=" sign in variable listhomer6662017-10-171-1/+1
|/
* VS now supports white themes.Daniel J. Ramirez2017-10-021-51/+105
|
* Added correct initialization for script editor theme.Daniel J. Ramirez2017-10-021-13/+3
| | | | Some style fixes for VS interface.
* Remove unecessary anchors&margins set causing bad display (sons of containers)Gilles Roudiere2017-09-271-1/+0
|
* Remove set_area_as_parent_rect and replace it by ↵Gilles Roudiere2017-09-221-1/+1
| | | | set_anchors_and_margins_preset(PRESET_WIDE)
* Rename pos to position in user facing methods and variablesletheed2017-09-201-11/+11
| | | | | | | | | | | 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.
* Improved VisualScriptEditorDaniel J. Ramirez2017-09-141-10/+25
|
* Merge pull request #11076 from hpvb/fix-10935Rémi Verschelde2017-09-131-294/+303
|\ | | | | Fix crash on wrong type drag into the vs editor
| * Fix crash on wrong type drag into the vs editorHein-Pieter van Braam2017-09-091-294/+303
| | | | | | | | | | | | Don't allow drops of draggable items without a vs node type. This fixes #10935
* | Improved VS node coloringDaniel J. Ramirez2017-09-121-9/+23
| |
* | Improved theme generation, and other fixesDaniel J. Ramirez2017-09-121-1/+1
| |
* | Many fixes to visual script, changed virtuals override for a proper selector.Juan Linietsky2017-09-121-107/+70
|/
* Fix. resizeable -> resizable.Daniel J. Ramirez2017-09-031-1/+1
| | | | (not actually a typo, but the rest of the API uses resizable)
* Fix files headerPoommetee Ketson2017-09-011-1/+1
|
* Renamed 'script_changed' signal in the script editor plugin to ↵Wilson E. Alvarez2017-08-291-12/+12
| | | | 'edited_script_changed'
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* Editor: Add some more translatable strings.Andreas Haas2017-08-251-18/+18
|
* Convert Object::cast_to() to the static versionHein-Pieter van Braam2017-08-241-34/+27
| | | | | | | | | | | | Currently we rely on some undefined behavior when Object->cast_to() gets called with a Null pointer. This used to work fine with GCC < 6 but newer versions of GCC remove all codepaths in which the this pointer is Null. However, the non-static cast_to() was supposed to be null safe. This patch makes cast_to() Null safe and removes the now redundant Null checks where they existed. It is explained in this article: https://www.viva64.com/en/b/0226/
* VisualScriptEditor: Remove Node when canceling PropertySelector.Andreas Haas2017-08-221-0/+8
|