summaryrefslogtreecommitdiffstats
path: root/scene/gui/graph_node.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix GraphNode slot index inconsistency.Hendrik Brucker2023-10-241-2/+2
|
* Bind remaining theme properties to their respective classesYuri Sizov2023-09-131-27/+35
| | | | | | | | | | | | 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-708/+411
| | | | | Split GraphNode into GraphElement and GraphNode, add custom titlebar, and adjust theming.
* Clean up/refactor GraphEditHendrik Brucker2023-07-241-1/+1
|
* Remove GraphNode's comment property and related functionalityHendrik Brucker2023-07-111-43/+1
| | | | (this functionality will be reintroduced in a new and more flexible way)
* Single Compilation Unit build.lawnjelly2023-06-061-6/+0
| | | | | Adds support for simple SCU build (DEV_ENABLED only). This speeds up compilation by compiling multiple cpp files within a single translation unit.
* Add more uses of appropriate cursors when resizing/moving some UI nodesMichael Alexsander2023-05-071-1/+12
|
* GraphNode ignore non-visible children for minimum size.Johan Aires Rastén2023-04-051-1/+1
|
* Fix `GraphNode` resizing when its bottom border is too thinMichael Alexsander2023-02-231-4/+4
|
* Rename (de)selected signals to node_(de)selected in GraphNodeHendrik Brucker2023-01-121-3/+3
|
* Use BitField<> hint for ArrayFormatJuan Linietsky2023-01-081-1/+1
| | | | This was missing in the conversion of bitflags to BitField<>.
* 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".
* Prevent editor crash when deleting children of GraphNodezhangjianguo2022-11-301-29/+37
|
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-2/+2
| | | | change warnings=all to use /W4.
* Improve parameter naming and documentation in GraphEdit and GraphNodeYuri Sizov2022-09-091-60/+86
| | | | Co-authored-by: Maganty Rushyendra <mrushyendra@yahoo.com.sg>
* Add GraphNode 'selected' and 'deselected' signals, simplify GraphEditMaxim Kulkin2022-09-051-1/+7
|
* Rename `CanvasItem.update()` to `queue_redraw()`Micky2022-08-291-22/+22
| | | | | | | | | | 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`.
* Merge pull request #63249 from V-Sekai/animation_tree_editor_read_onlyRémi Verschelde2022-08-271-0/+24
|\ | | | | Add read-only mode to AnimationTreeEditor plugins
| * Add read-only mode to AnimationTreeEditor pluginsSaracenOne2022-08-251-0/+24
| |
* | Merge pull request #64806 from Zylann/graph_node_protected_validate_propertyRémi Verschelde2022-08-251-3/+1
|\ \ | |/ |/| Make GraphNode::_validate_property protected so GraphNode can be inherited
| * Make GraphNode::_validate_property protected so GraphNode can be inherited.Marc Gilleron2022-08-241-3/+1
| | | | | | | | | | | | | | | | It's not about overriding or accessing `_validate_property`, but since `_validate_property` became a multilevel method, the GDCLASS macro now tries to access the one from the parent class, which causes a compiling error if the parent class declares `_validate_property` as private.
* | Add some codes, returnes directly if the value is not changed.风青山2022-08-231-0/+48
|/ | | | Avoid executing the following value-changed logics if the value does not really change.
* Make `_validate_property` a multilevel methodYuri Sizov2022-08-221-4/+3
|
* Remove rect_ prefix from control properties when keyframingHakim2022-08-051-1/+1
|
* Fix GraphNode slot listkobewi2022-08-021-0/+1
|
* Refactor Font configuration and import UI, and Font resources.bruvzg2022-07-061-67/+5
|
* Add suffixes to all nodes and resourcesFireForge2022-06-111-1/+1
|
* Improve and fix the GraphNode port hotzonesHendrik Brucker2022-05-301-6/+28
| | | | Co-authored-by: Ansraer <jacky2611@gmail.com>
* Merge pull request #60463 from Geometror/improve-vs-1Rémi Verschelde2022-05-161-19/+62
|\
| * Improve the VisualShader/VisualScript editor UIHendrik Brucker2022-04-301-19/+62
| |
* | Replace most uses of Map by HashMapreduz2022-05-161-1/+1
|/ | | | | | | | | | | | * Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
* Rename theme properties to include underscoresFireForge2022-04-231-2/+2
| | | | | | | | | | | | | | - check_vadjust -> check_v_adjust - close_h_ofs -> close_h_offset - close_v_ofs -> close_v_offset - commentfocus -> comment_focus - hseparation -> h_separation - ofs -> offset - selectedframe -> selected_frame - state_machine_selectedframe -> state_machine_selected_frame - table_hseparation -> table_h_separation - table_vseparation -> table_v_separation - vseparation -> v_separation
* Fix GraphNode not resizing with larger titleMarc Gilleron2022-04-051-1/+0
|
* Use `switch` consistently in `_notification` (`scene` folder)Rémi Verschelde2022-02-151-0/+1
|
* Reorganize inspector layout workflow for Control nodesYuri Sizov2022-02-101-0/+19
|
* Improve locale detection.bruvzg2022-01-181-1/+1
| | | | | Use separate language, script and country lists. Add locale selection dialog and property hint.
* [TextServer] Improve ligature cursor handling.bruvzg2022-01-091-3/+3
| | | | | | Fix mid-grapheme hit test. Fix OpenType features property handling, add default features override option. Enable mid-grapheme cursor by default.
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-1/+1
| | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* Rename minimum_size_changed() methodkobewi2021-12-061-2/+2
|
* Use "enum class" for input enumsAaron Franke2021-11-121-2/+2
|
* Use range iterators for `Map`Lightning_A2021-09-301-6/+6
|
* Merge pull request #38414 from theoway/Fix-GraphNode_offset_updateRémi Verschelde2021-09-241-0/+24
|\
| * Fixes sync issue between position_offset and rect_position in GraphNodeUmang Kalra2021-09-231-0/+24
| | | | | | | | | | Bleh
* | Construct values only when necessary.Anilforextra2021-09-231-1/+1
|/
* Entirely removes BIND_VMETHOD in favor of GDVIRTUALreduz2021-08-231-3/+1
| | | | | | | | * `_gui_input`, `_input`, `_unhandled_input` and `_unhandled_key_input` are now regular C++ virutal functions. * Everything else converted to GDVIRTUAL * BIND_VMETHOD is gone, always use the new syntax from now on. Creating `_gui_input` method and using the binder to register events will no longer work, simply override the virtual function now.
* Optimize StringName usagereduz2021-07-181-38/+38
| | | | | | | | | | | * 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.
* Fix GraphNode port position when the control has the Expand flagtrollodel2021-06-281-1/+1
|
* Rename `instance()`->`instantiate()` when it's a verbLightning_A2021-06-191-1/+1
|
* Tweak dozens of editor property hints for consistencyHugo Locurcio2021-05-251-1/+1
| | | | | | - Update Viewport MSAA property hints to match the currently exposed values. - Add some performance hints to property hints.