summaryrefslogtreecommitdiffstats
path: root/scene/main/canvas_item.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Compile certain `CanvasItem._edit_*()` functions with `DEBUG_ENABLED`Michael Alexsander2024-11-021-3/+5
|
* Improve make_canvas_position_local descriptionkobewi2024-10-241-1/+1
|
* Merge pull request #91724 from KoBeWi/regional_texturesRémi Verschelde2024-05-301-8/+19
|\ | | | | | | Add support for AtlasTexture in `draw_polygon()`
| * Add support for AtlasTexture in draw_polygon()kobewi2024-05-081-8/+19
| |
* | Use Core/Scene stringnames consistentlykobewi2024-05-131-1/+0
| |
* | Add antialias support for CanvasItem draw primitivesYaohua Xiong2024-05-131-17/+17
| | | | | | | | | | | | including - rect, circle; both filled and unfilled. - polyline, multiline
* | Add shorthand for using singleton string nameskobewi2024-05-111-6/+6
|/
* Extend `CanvasItem::draw_circle()` with filled, width, and antialiased optionsYaohua Xiong2024-05-021-3/+33
| | | | Make it possible to draw unfilled circle, like draw_rect(). Antialising is only implemented for unfilled version.
* Expose TileMapLayerGilles Roudière2024-04-031-5/+12
|
* Fixed Timestep Interpolation (2D)Ricardo Buring2024-03-231-0/+23
| | | | | | | Adds fixed timestep interpolation to the rendering server (2D only). Switchable on and off with a project setting (default is off). Co-authored-by: lawnjelly <lawnjelly@gmail.com>
* Make CanvasItem's "drawing outside of NOTIFICATION_DRAW" error a macroMicky2024-03-091-28/+31
|
* Expose `CanvasLayer::get_canvas_layer_node()`TML2024-02-201-0/+6
|
* Remove unecessary _set_global_invalid added by mistakeGilles Roudière2024-01-181-2/+0
|
* Merge pull request #87115 from groud/tilemap_layers_as_nodesYuri Sizov2024-01-171-0/+2
|\ | | | | | | Make TileMapLayers extend Node2D and work as children of TileMap
| * Make TileMapLayers extend Node2D and work as children of TileMapGilles Roudière2024-01-171-0/+2
| |
* | Merge pull request #86841 from groud/fix_global_transform_in_enter_treeYuri Sizov2024-01-171-0/+1
|\ \ | |/ |/| | | Fixes global transform being wrong on entering tree
| * Fixes global transform being wrong on entering treeGilles Roudière2024-01-161-0/+1
| |
* | Update deferred calls to use Callableskobewi2024-01-091-3/+2
|/
* Revert "Fix transform notification not getting sent out for RigidBody2D"Mikael Hermansson2023-11-141-7/+11
|
* Fix transform notification not getting sent out for RigidBody2DMikael Hermansson2023-11-131-11/+7
|
* Make mouse-enter/exit notifications match mouse event propagationkit2023-11-091-0/+4
| | | | | | | | | | | `NOTIFICATION_MOUSE_ENTER` and `NOTIFICATION_MOUSE_EXIT` now includes the areas of children control nodes if the mouse filters allow it. In order to check if a Control node itself was entered/exited, the newly introduced `NOTIFICATION_MOUSE_ENTER_SELF` and `NOTIFICATION_MOUSE_EXIT_SELF` can be used. Co-authored-by: Markus Sauermann <6299227+Sauermann@users.noreply.github.com>
* Allow normal maps on TileMaps that use texture paddingGilles Roudière2023-10-181-0/+27
|
* Fix notification thread guardsbitsawer2023-10-021-2/+9
|
* [Scene,Main] Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicableA Thousand Ships2023-09-121-1/+1
|
* Remove `CanvasItem::_invalidate_global_transform`Markus Sauermann2023-08-301-6/+1
| | | | | | | | The only use of that function can be replaced by `_notify_transform`, which makes the `propagate_call` unnecessary. As far as I can tell, the `data.blocked`-checks of `propagate_call` are not needed in this case, because `_invalidate_global_transform` causes no user-noticeable changes.
* Fix global transform validity for `Node2D` and `Control`Markus Sauermann2023-08-081-2/+5
| | | | Set global transform to invalid when changing transform
* Fix click-selecting Sprites with repeated texturekleonc2023-06-221-4/+4
|
* Use NULL instead of COND checks when appropriateNinni Pipping2023-06-101-3/+3
| | | | Restricted to scene
* Optimize threading-sensitive node data for single-threaded processingPedro J. Estébanez2023-05-171-7/+19
|
* Merge pull request #75250 from bruvzg/lbl_rtl_jst_flagsRémi Verschelde2023-05-161-4/+4
|\ | | | | | | Expose TextServer justification flags to Label, Label3D, TextMesh and RTL. Add flags to control last/single line justification.
| * Expose TextServer justification flags to Label, Label3D, TextMesh and RTL. ↵bruvzg2023-05-151-4/+4
| | | | | | | | Add flags to control last/single line justification.
* | Make more base nodes thread safeJuan Linietsky2023-05-151-10/+124
|/ | | | Ongoing work to make more of the base nodes thread safe.
* Merge pull request #57179 from spacechase0/notify-world2d-changed-masterRémi Verschelde2023-05-081-0/+5
|\ | | | | | | Propagate previously unused NOTIFICATION_WORLD_2D_CHANGED, make CanvasItem/CollisionObject2D use it
| * Propogate previously unused NOTIFICATION_WORLD_2D_CHANGED, make ↵Chase Warrington2023-05-011-0/+5
| | | | | | | | CanvasItem/CollisionObject2D use it
* | Merge pull request #74883 from dalexeev/fix-thin-multiline-colorsMax Hilbrunner2023-05-051-6/+3
|\ \
| * | Fix `draw_multiline_colors()` for `width < 0`Danil Alexeev2023-03-141-6/+3
| |/
* | Fix invalid global position when read outside treekobewi2023-04-181-0/+7
| |
* | Merge pull request #75890 from YuriSizov/gui-remember-window-stateYuri Sizov2023-04-181-3/+1
|\ \ | | | | | | Always cache parent visibility in `CanvasItem`
| * | Always cache parent visibility in CanvasItemYuri Sizov2023-04-101-3/+1
| | |
* | | Rename internal root canvas group to start with underscoreangel-7212023-04-161-1/+1
|/ /
* | Remove NOTIFICATION_MOVED_IN_PARENTJuan Linietsky2023-04-061-14/+23
| | | | | | | | | | | | | | | | | | * This notification makes node children management very inefficient. * Replaced by a NOTIFICATION_CHILDREN_CHANGED (and children_changed signal). * Changed Canvas code (and similar) to use the above signal, to perform more efficiently. This PR breaks compatibility (although this notification was very rarely used, even within the engine), but provides an alternate way to do the same. It is required for the changes in #75627 to be entirely effective.
* | CanvasItem Fix ENTER_CANVAS / VISIBILITY_CHANGED notifications order when ↵kleonc2023-03-221-1/+2
|/ | | | entering tree
* Set RTL minimal dash size to 2.0, add invalid dash size error to the ↵bruvzg2023-02-171-1/+2
| | | | `draw_dashed_line`.
* Add dash and step size checks to draw_dashed_line.bruvzg2023-02-161-2/+3
|
* Optimize `draw_dashed_line()` and `draw_rect()`Danil Alexeev2023-02-081-33/+20
|
* Merge pull request #68492 from Sauermann/fix-picking-sortRémi Verschelde2023-02-061-0/+11
|\ | | | | | | Fix propagation order for 2D physics picking events
| * Fix propagation order for 2D physics picking eventsMarkus Sauermann2023-02-041-0/+11
| | | | | | | | | | | | This patch adds a viewport-configuration-option for sorting physics-picking events by the Z-Index and the scene tree position of the collision objects.
* | Fix toplevel nomenclatureMarkus Sauermann2023-02-021-8/+8
| | | | | | | | | | toplevel was 3.x top_level is 4.x
* | Fix various typos with codespellRémi Verschelde2023-02-011-2/+2
|/ | | | Finally do the childs -> children rename too.
* Merge pull request #67507 from Sauermann/fix-toplevel-root-control-nodeRémi Verschelde2023-01-311-0/+17
|\ | | | | | | Fix event propagation to child after set_as_toplevel