summaryrefslogtreecommitdiffstats
path: root/scene/gui/graph_edit.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fix GraphEdit connection colorsJummit2021-08-221-2/+2
| |
* | Make GraphEdit connections consistent on zoomJummit2021-08-221-7/+9
| |
* | Merge pull request #51965 from theoway/fix_node_arranger_origin_bugK. S. Ernest (iFire) Lee2021-08-221-7/+12
|\ \ | | | | | | Fixes position offset of node groups set by arrange_nodes() in GraphEdit
| * | Fixes position offset of node groups set by arrange_nodes() in GraphEditUmang Kalra2021-08-221-7/+12
| |/
* / Refactor GraphEdit connectionsJummit2021-08-211-56/+24
|/ | | | | | Remove duplicate bezier code and use Curve instead. Add an overridable method for retrieving the points of a connection line, which makes it posible to create custom connections lines.
* Better port handling connection for `GraphEdit`Yuri Roubinsky2021-08-121-11/+32
|
* Automatic arrangement of nodes in VisualScript/VisualShaders editorsUmang Kalra2021-08-111-0/+504
| | | | | | | | | | | | | | | | | | | | | | | | This PR and commit adds the functionality to arrange nodes in VisualScript/VisualShader editor. The layout generated by this feature is compact, with minimum crossings between connections & uniform horizontal & vertical gaps between the nodes. This work has been sponsored by GSoC '21. Full list of additions/changes: • Added arrange_nodes() method in GraphEdit module. • This method computes new positions for all the selected nodes by forming blocks and compressing them. The nodes are moved to these new positions. • Adding this method to GraphEdit makes it available for use in VisualScript/VisualShaders editors and its other subclasses. • Button with an icon has been added to call arrange_nodes() in GraphEdit. • This button is inherited by VisualScript/VisualShaders editors to invoke the method. • Undo/redo is functional with this method. • By using signals in arrange_nodes(), position changes are registered in undo/redo stack of the subclass that is using the method. • Metadata of the method has been updated in ClassDB • Method description has been added to class reference of GraphEdit
* Use const references where possible for List range iteratorsRémi Verschelde2021-07-251-5/+5
|
* Use C++ iterators for Lists in many situationsAaron Franke2021-07-231-38/+38
|
* Optimize StringName usagereduz2021-07-181-54/+54
| | | | | | | | | | | * 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.
* Remove clips_input() method and use clip_contentkobewi2021-06-251-4/+0
|
* Scrollwheel (w/o ctrl) to zoom, mouse warping when panningLightning_A2021-06-171-17/+20
| | | | | | Now uses Ctrl + Scrollwheel for vertical scrolling Ctrl + Shift Scrollwheel for horizontal scrolling Also converts some macros to constants
* Make zoom limits and step adjustable in GraphEditYuri Sizov2021-06-161-19/+111
|
* Merge pull request #49437 from Calinou/graphedit-allow-higher-lower-zoom-valuesRémi Verschelde2021-06-151-2/+7
|\ | | | | Allow higher and lower maximum zoom values in GraphEdit
| * Allow higher and lower maximum zoom values in GraphEditHugo Locurcio2021-06-081-2/+7
| | | | | | | | | | | | | | | | Low zoom values result in unreadable text, but it can still be useful for previewing purposes. Eventually, characters could be replaced by rectangles at very low zoom levels to improve the visual appearance.
* | Move default values from definition to declaration in GraphEditMarcel Admiraal2021-06-101-1/+1
|/
* Rename "Control" key to "Ctrl" and add "_pressed" suffix to all ↵Lightning_A2021-05-071-7/+7
| | | | InputEventWithModifiers properties/methods
* Make scrollwheel zoom based on mouse positionLightning_A2021-04-051-2/+2
|
* Fix crashes in *_input functionsRafał Mikrut2021-04-051-0/+4
|
* Merge pull request #47351 from volzhs/graphedit-boxselectionRémi Verschelde2021-03-281-8/+9
|\ | | | | Fix drawing boxselection on GraphEdit
| * Fix typo 'previus_selected'volzhs2021-03-251-8/+8
| |
| * Fix drawing boxselection on GraphEditvolzhs2021-03-251-0/+1
| |
* | Rename ButtonList enum and members to MouseButtonAaron Franke2021-03-231-14/+14
|/
* Prevent resizing minimap bigger than GraphEdit (Fix #47189)jmb4622021-03-201-1/+6
| | | | Minimap size couldn't be resized back after been resized bigger than GraphEdit cause the grabber was out of GraphEdit. This commit prevents resizing minimap bigger than GraphEdit and fix this issue.
* Enable zooming graph_edit with scrollwheelLightning_A2021-03-181-16/+8
|
* Properly hide GraphEdit's minimapYuri Sizov2021-03-011-1/+6
|
* Fix GraphEdit connects when graph is zoomed/unzoomed Yuri Roubinsky2021-02-271-10/+15
|
* Removed hardcoded shortcuts from /scene and converted to input actionsEric M2021-02-181-13/+5
| | | | | | 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.
* Merge pull request #45870 from gongpha/graphedit-connection-updateRémi Verschelde2021-02-111-0/+11
|\ | | | | Update GraphEdit when GraphNode's slot is updated
| * Update GraphEdit when GraphNode's slot is updatedKongfa Waroros2021-02-111-0/+11
| |
* | Initialize class variables with default values in scene/ [2/2]Rafał Mikrut2021-02-091-13/+0
|/
* doc: Don't bind argument names with p_ prefixRémi Verschelde2021-02-041-3/+3
| | | | This prefix is used in the C++ codebase, not in the scripting API.
* Fix minimap capturing events and improve its themeYuri Sizov2021-01-251-1/+5
| | | | Add an editor setting for minimap opacity in visual editors
* Prevent signal disconnection attempts on invalid referencesYuri Sizov2021-01-141-3/+16
|
* 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 🎆
* Merge pull request #44569 from madmiraal/rename-unselect-deselectRémi Verschelde2020-12-281-7/+7
|\ | | | | Rename unselect to deselect
| * Rename unselect to deselectMarcel Admiraal2020-12-211-7/+7
| |
* | Update GraphEdit connection to reflect new signal nameMarcel Admiraal2020-12-261-2/+2
| |
* | Rename Control margin to offsetMarcel Admiraal2020-12-231-28/+28
|/
* Added GraphEdit properties to control lines thickness and antialiasingYuri Roubinsky2020-12-181-5/+31
|
* FIx visual issues with GraphEdit minimapYuri Sizov2020-12-171-13/+13
|
* Add a minimap to the GraphEditYuri Sizov2020-11-301-7/+352
|
* Restored antialiased lines by emulation using triangle stripsYuri Roubinsky2020-11-271-2/+2
|
* Removed underscore from GraphEdit begin/end_node_move signalsYuri Roubinsky2020-10-201-4/+4
|
* Fix emit_signal timing for GraphEdit's begin/end node moveGabriel Van Eyck2020-10-191-2/+8
|
* Renamed toplevel to be top_levelDuroxxigar2020-10-011-1/+1
|
* Disconnect item_rect_changed when removing a child of GraphEditWilson E. Alvarez2020-09-111-0/+1
|
* Emit signals for GraphEdit multi-node selection and unselectionMaganty Rushyendra2020-07-091-2/+20
| | | | | Emit `node_selected` and `node_deselected` signals where appropriate when selecting or unselecting multiple GraphEdit nodes at once.
* Fix GraphEdit reconnecting to disconnected portYuri Roubinsky2020-07-051-1/+1
|
* Prevents incorrect connection attempt on port clicking in GraphEditYuri Roubinsky2020-07-041-50/+56
| | | | | Prevents incorrect connection attempt on port clicking in GraphEdit