summaryrefslogtreecommitdiffstats
path: root/scene/gui/graph_node.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Fix typos with codespellRémi Verschelde2021-05-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using codespell 2.0.0. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang curvelinear dof doubleclick fave findn GIRD leapyear lod merchantibility nd numer ois ony que seeked synching te uint unselect webp EOF $ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po" $ git diff // undo unwanted changes ```
* -Added missing setters to GraphNode.Anilforextra2021-05-131-1/+73
| | | | -Improved various GraphNode documentation.
* Fix crashes in *_input functionsRafał Mikrut2021-04-051-0/+2
|
* Rename ButtonList enum and members to MouseButtonAaron Franke2021-03-231-2/+2
|
* Make GraphNode handle children with EXPAND flagLeonardo Christino2021-03-081-18/+114
|
* Merge pull request #45870 from gongpha/graphedit-connection-updateRémi Verschelde2021-02-111-0/+3
|\ | | | | Update GraphEdit when GraphNode's slot is updated
| * Update GraphEdit when GraphNode's slot is updatedKongfa Waroros2021-02-111-0/+3
| |
* | Removed _change_notifyreduz2021-02-101-2/+1
| | | | | | | | | | | | -For inspector refresh, the inspector now detects if a property change by polling a few times per second and then does update the control if so. This process is very cheap. -For property list refresh, a new signal (property_list_changed) was added to Object. _change_notify() is replaced by notify_property_list_changed() -Changed all objects using the old method to the signal, or just deleted the calls to _change_notify(<property>) since they are unnecesary now.
* | Initialize class variables with default values in scene/ [2/2]Rafał Mikrut2021-02-091-7/+0
|/
* GraphNode: Add properties for custom iconsJames Westman2021-01-281-2/+14
| | | | | | | Add properties for the slots' icon textures, so they can be set easily in the editor. Fixes #45487.
* 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 🎆
* Rename Control margin to offsetMarcel Admiraal2020-12-231-17/+17
|
* [Complex Text Layouts] Refactor Font class, default themes and controls to ↵bruvzg2020-11-261-11/+131
| | | | | | | | use Text Server interface. Implement interface mirroring. Add TextLine and TextParagraph classes. Handle UTF-16 input on macOS and Windows.
* Refactor MethodBind to use variadic templatesreduz2020-10-181-2/+0
| | | | Removed make_binders and the old style generated binders.
* Renamed toplevel to be top_levelDuroxxigar2020-10-011-5/+5
|
* Fixed separation of ports on GraphNodelrgilbert2020-07-031-3/+1
| | | | Fixes #32474.
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-51/+87
| | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* Style: Enforce separation line between function definitionsRémi Verschelde2020-05-141-0/+5
| | | | | | | | | | | | | | | | | | | | | | | I couldn't find a tool that enforces it, so I went the manual route: ``` find -name "thirdparty" -prune \ -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \ -o -name "*.glsl" > files perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files) misc/scripts/fix_style.sh -c ``` This adds a newline after all `}` on the first column, unless they are followed by `#` (typically `#endif`). This leads to having lots of places with two lines between function/class definitions, but clang-format then fixes it as we enforce max one line of separation. This doesn't fix potential occurrences of function definitions which are indented (e.g. for a helper class defined in a .cpp), but it's better than nothing. Also can't be made to run easily on CI/hooks so we'll have to be careful with new code. Part of #33027.
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-52/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* Replace NULL with nullptrlupoDharkael2020-04-021-1/+1
|
* Popups are now windows also (broken!)Juan Linietsky2020-03-261-28/+28
|
* Texture refactorJuan Linietsky2020-02-111-10/+10
| | | | | | | | -Texture renamed to Texture2D -TextureLayered as base now inherits 2Darray, cubemap and cubemap array -Removed all references to flags in textures (they will go in the shader) -Texture3D gone for now (will come back later done properly) -Create base rasterizer for RenderDevice, RasterizerRD
* Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
| | | | | | | | | | | Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
* Fix resizer icon visiblity on light theme in GraphNodeChaosus892019-09-011-1/+2
|
* Remove ERR_EXPLAIN from scene/* codeTomasz Chabora2019-08-091-2/+1
|
* Fix GraphNode immediately losing focusEmmanuel Barroga2019-07-131-2/+2
| | | | | | | Closes: #30243 GraphNode immediately loses focus, and gives focus to its parent. This fix changes implementation so that it does not transfer focus to its parent after receiving focus. Instead, it will transfer focus when the "close button" is pressed.