summaryrefslogtreecommitdiffstats
path: root/scene/gui/graph_edit.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix GraphNode slot index inconsistency.Hendrik Brucker2023-10-241-6/+6
|
* Merge pull request #82409 from KoBeWi/3_in_1Rémi Verschelde2023-10-181-1/+1
|\ | | | | | | Document, cleanup and fix some theme properties
| * Document, cleanup and fix some theme propertieskobewi2023-09-271-1/+1
| |
* | Make `GraphEdit` toolbar more customizableYuri Sizov2023-10-021-63/+145
| | | | | | | | | | Also adds a semi-transparent background to make the toolbar stand out in front of nodes.
* | Rename close requests to delete requests in `GraphEdit`Yuri Sizov2023-09-261-8/+12
|/
* Merge pull request #81939 from YuriSizov/gui-flat-and-depressedRémi Verschelde2023-09-251-7/+7
|\ | | | | | | Replace flat buttons with flat-styled buttons with a visible pressed state
| * Replace flat buttons with flat-styled buttons with a visible pressed stateYuri Sizov2023-09-191-7/+7
| |
* | Replace Ctrl in editor shortcuts with Cmd or Ctrl depending on platformajreckof2023-09-191-4/+4
|/
* Merge pull request #81600 from aaronfranke/fix-graph-edit-valid-port-conn-typeYuri Sizov2023-09-141-1/+1
|\ | | | | | | Fix GraphEdit port valid connections incorrectly checking sides
| * Fix GraphEdit port valid connections incorrectly checking sidesAaron Franke2023-09-121-1/+1
| |
* | Bind remaining theme properties to their respective classesYuri Sizov2023-09-131-61/+79
|/ | | | | | | | | | | | This adds binds for GraphEdit/GraphElement/GraphNode, which were skipped before due to a rework. This also adds binds for Window, which was skipped before due to a complicated code organization. Also adds theme cache entries/direct cache access to a few places that previously missed it. Some theme properties are now exposed to other classes via friendships or public getters for convenience. This removes all string-based theme access from scene/ classes.
* Clean up/refactor GraphNode and make it more flexibleHendrik Brucker2023-09-071-145/+159
| | | | | Split GraphNode into GraphElement and GraphNode, add custom titlebar, and adjust theming.
* Clean up/refactor GraphEditHendrik Brucker2023-07-241-920/+489
|
* Merge pull request #79307 from Geometror/remove-graph-node-commentYuri Sizov2023-07-241-77/+3
|\ | | | | Remove GraphNode's comment property and related functionality
| * Remove GraphNode's comment property and related functionalityHendrik Brucker2023-07-111-77/+3
| | | | | | | | (this functionality will be reintroduced in a new and more flexible way)
* | Extract StyleBoxFlat, StyleBoxTexture and StyleBoxLine in their own fileHendrik Brucker2023-07-171-0/+1
|/
* [GraphEdit] Fix port hotzones at zoom levels other than 100%Hendrik Brucker2023-06-251-2/+2
|
* Fix regression in visual nodes hotzonesQbieShay2023-06-221-0/+1
|
* Use `get_node_or_null` when null checks are presentNinni Pipping2023-06-101-1/+1
| | | | Avoids duplicate or unnecessary errors
* Use NULL instead of COND checks when appropriateNinni Pipping2023-06-101-7/+7
| | | | Restricted to scene
* Add more uses of appropriate cursors when resizing/moving some UI nodesMichael Alexsander2023-05-071-0/+17
|
* Fix several GraphEdit operations at zoom levels other than 100%Hendrik Brucker2023-04-021-6/+0
|
* Fix `GraphNode` resizing when its bottom border is too thinMichael Alexsander2023-02-231-17/+25
|
* Fix GraphEdit port hotzone snappingHendrik Brucker2023-02-121-1/+1
|
* Update GraphEdit configuration warning, mark GraphNode/GraphEdit as experimentalHendrik Brucker2023-02-091-1/+1
|
* Fix scroll_offset_changed signal doesn't fired when panning GraphEditSilc Renew2023-02-011-4/+4
|
* Fix connections drawing in GraphEdit minimapStanislav Labzyuk2023-01-281-2/+3
|
* Add gesture to ViewPanner and simplify a bit its APIGilles Roudière2023-01-231-23/+5
|
* Merge pull request #70685 from stmSi/fix-nan-graphedit-infinite-loopRémi Verschelde2023-01-161-0/+1
|\ | | | | | | Fix: NaN value making infinite loop inside GraphEdit's `NOTIFICATION_DRAW`
| * Fix NaN value making infinite loop inside GraphEdit's NOTIFICATION_DRAWstmSi2023-01-131-0/+1
| |
* | Rename (de)selected signals to node_(de)selected in GraphNodeHendrik Brucker2023-01-121-4/+4
|/
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Update graph_edit.cpp to automatically arrange nodes if nothing is selected.K. S. Ernest (iFire) Lee2023-01-041-2/+7
|
* Improve usage of StringNames in GraphEditkobewi2022-12-021-60/+29
|
* Fix inspector not showing name for LabelSettings.fontHaoyu Qiu2022-11-251-1/+1
|
* Simplify GDVIRTUAL_CALL callskobewi2022-10-191-5/+3
|
* Merge pull request #66337 from EricEzaM/sprite-framesRémi Verschelde2022-10-131-4/+4
|\ | | | | | | Ensure control built-in shortcuts are matched exactly & add shortcuts for SpriteFrames editor
| * Ensure all checks of `is_action` in the editor which are for 'shortcut' use, ↵Eric M2022-09-241-4/+4
| | | | | | | | check the action exactly.
* | Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-3/+3
|/ | | | change warnings=all to use /W4.
* Change return type of `get_configuration_warnings` to `PackedStringArray`Marc Gilleron2022-09-191-2/+2
|
* Add configuration warning to GraphEdit regarding future refactoringHendrik Brucker2022-09-141-0/+8
|
* Improve parameter naming and documentation in GraphEdit and GraphNodeYuri Sizov2022-09-091-31/+31
| | | | Co-authored-by: Maganty Rushyendra <mrushyendra@yahoo.com.sg>
* Rename raise() to move_to_front()kobewi2022-09-061-1/+1
|
* Add GraphNode 'selected' and 'deselected' signals, simplify GraphEditMaxim Kulkin2022-09-051-47/+41
|
* Rename `CanvasItem.update()` to `queue_redraw()`Micky2022-08-291-63/+63
| | | | | | | | | | Affects a lot of classes. Very thoroughly checked signal connections and deferred calls to this method, add_do_method/add_undo_method calls, and so on. Also renames the internal `_update_callback()` to `_redraw_callback()` for consistency. Just a few comments have also been changed to say "redraw". In CPUParticles2D, there was a private variable with the same name. It has been renamed to `do_redraw`.
* Revert "Remove NOTIFICATION_ENTER_TREE when paired with ↵Rémi Verschelde2022-08-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NOTIFICATION_THEME_CHANGED" This reverts commit 4b817a565cab8af648c88cfc7ab6481e86ee3625. Fixes #64988. Fixes #64997. This caused several regressions (#64988, #64997, https://github.com/godotengine/godot/issues/64997#issuecomment-1229970605) which point at a flaw in the current logic: - `Control::NOTIFICATION_ENTER_TREE` triggers a *deferred* notification with `NOTIFCATION_THEME_CHANGED` as introduced in #62845. - Some classes use their `THEME_CHANGED` to cache theme items in member variables (e.g. `style_normal`, etc.), and use those member variables in `ENTER_TREE`, `READY`, `DRAW`, etc. Since the `THEME_CHANGE` notification is now deferred, they end up accessing invalid state and this can lead to not applying theme properly (e.g. for EditorHelp) or crashing (e.g. for EditorLog or CodeEdit). So we need to go back to the drawing board and see if `THEME_CHANGED` can be called earlier so that the previous logic still works? Or can we refactor all engine code to make sure that: - `ENTER_TREE` and similar do not depend on theme properties cached in member variables. - Or `THEME_CHANGE` does trigger a general UI update to make sure that any bad theme handling in `ENTER_TREE` and co. gets fixed when `THEME_CHANGE` does arrive for the first time. But that means having a temporary invalid (and possibly still crashing) state, and doing some computations twice which might be heavy (e.g. `EditorHelp::_update_doc()`).
* Merge pull request #64885 from Mickeon/rename-tooltip-hintRémi Verschelde2022-08-281-6/+6
|\ | | | | Rename `hint_tooltip` to `tooltip_text` & setter getter
| * Rename `hint_tooltip` to `tooltip_text` & setgetMicky2022-08-271-6/+6
| | | | | | | | | | | | | | | | `hint_tooltip` -> `tooltip_text` `set_tooltip` -> `set_tooltip_text` `_get_tooltip` -> `get_tooltip_text` Updates documentation, too.
* | Merge pull request #62846 from ↵Rémi Verschelde2022-08-271-1/+0
|\ \ | | | | | | | | | | | | AaronRecord/remove_redundant_theme_updates_in_enter_tree Remove `NOTIFICATION_ENTER_TREE` when paired with `NOTIFICATION_THEME_CHANGED`
| * | Remove NOTIFICATION_ENTER_TREE when paired with NOTIFICATION_THEME_CHANGEDAaron Record2022-08-271-1/+0
| |/