summaryrefslogtreecommitdiff
path: root/scene/main/canvas_item.cpp
AgeCommit message (Collapse)Author
2023-01-26Merge pull request #68627 from Sauermann/fix-tooltip-positionRémi Verschelde
Fix position of Tooltips
2023-01-26Fix position of TooltipsMarkus Sauermann
CanvasItem::get_screen_transform returns a transform from the CanvasItem to the coordinate system, where a Popup - created as a child of the CanvasItem - should be opened. get_screen_transform makes some simplifications, that work well, when used in the editor, but not in general cases. Since Popups like Tooltips are now used more commonly in projects, it becomes necessary to correct these simplifications. This solution introduces Viewport::get_popup_base_transform, which makes the necessary calculations.
2023-01-21Merge pull request #70294 from KoBeWi/treedulateRémi Verschelde
Add a method to get global modulate
2023-01-20Merge pull request #71679 from kleonc/draw_polyline_line_stripRémi Verschelde
`CanvasItem::draw_polyline` Support thin polylines drawn using line strip
2023-01-19Merge pull request #41239 from dalexeev/fix_draw_rectRémi Verschelde
Fix `CanvasItem.draw_rect` function with `filled = false`
2023-01-19CanvasItem::draw_polyline Support thin polylines drawn using line stripkleonc
2023-01-18CanvasItem::draw_arc Clamp angle difference so arc won't overlap itselfkleonc
2023-01-17Fix `CanvasItem.draw_rect` function with `filled = false`Danil Alexeev
2023-01-16Fix scaling issue in `draw_line` and similar methodsDanil Alexeev
2023-01-13Improve dashed line alignment and make it optional.bruvzg
2023-01-09Clarify some parent item checks in CanvasItemYuri Sizov
2023-01-05One Copyright Update to rule them allRémi Verschelde
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".
2022-12-29Add safety-checks before some servers `free()`Adam Scott
2022-12-19Fix CanvasItem Z-index referring to Node2DAaron Franke
2022-12-19Merge pull request #70219 from bruvzg/msdf_outline_scalingRémi Verschelde
Scale MSDF font outline with the font size and MSDF source size to match dynamic font behavior.
2022-12-19Merge pull request #59682 from Sauermann/fix-following-viewport-transformRémi Verschelde
Include the follow-viewport-transform into CanvasLayer transform calculations
2022-12-19Add a method to get global modulatekobewi
2022-12-18Include the following-viewport-transform into CanvasLayer transformsMarkus Sauermann
The following-viewport-transform was missing from several calculations
2022-12-17Scale MSDF font outline with the font size and MSDF source size to match ↵bruvzg
dynamic font behavior.
2022-11-29Move z_index, z_as_relative and y_sort_enabled from Node2D to CanvasItemHendrik Brucker
2022-11-02Fixup Clang -Wtype-limits warnings introduced by #52350Rémi Verschelde
2022-11-02Merge pull request #52350 from BimDav/viewport_canvas_cullRémi Verschelde
Added Viewport canvas cull mask feature
2022-10-31Viewport canvas cull mask featureBimDav
Co-authored-by: Valentin Zagura <puthre@gmail.com>
2022-10-31Merge pull request #67710 from KoBeWi/a_bit_local_global_transformRémi Verschelde
Remove error condition from get_global_transform()
2022-10-28Fix spacing of few PROPERTY_HINT_ENUM hint_stringsMicky
2022-10-27Merge pull request #67043 from clayjohn/clip_childrenClay John
Improve behaviour of clip_children by clipping to parent alpha value but still retaining parent color
2022-10-21Remove error condition from get_global_transform()kobewi
2022-10-19Add methods to get target filter and repeatkobewi
2022-10-14Implement multiple clip_children modes for CanvasItemsclayjohn
2022-09-10Allow negative indices in move_child()kobewi
2022-09-06Rename raise() to move_to_front()kobewi
2022-09-02Fix getting an error message when repeatedly entering and exiting the treeRindbee
2022-08-30Change _redraw_callback to callable_mpkobewi
2022-08-29Rename `CanvasItem.update()` to `queue_redraw()`Micky
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`.
2022-08-26Merge pull request #64422 from bruvzg/make_fonts_unbearably_ugly_2.0Rémi Verschelde
2022-08-23Spell out "anisotropic" fully in filter optionsskyace65
2022-08-23Add font LCD sub-pixel anti-aliasing support.bruvzg
2022-07-28Remove `first_draw` and reset visibility when entering treeRindbee
2022-07-20Fix `CanvasItem` not exiting its canvas group on canvas exitkleonc
2022-07-15Use BitField hint for the TextServer enums. Add missing parts for BitField ↵bruvzg
support to the GDextension API.
2022-07-06Refactor Font configuration and import UI, and Font resources.bruvzg
2022-06-19Add explicit deferred flagsmarkdibarry
2022-04-23Rename theme properties to include underscoresFireForge
- 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
2022-04-12Restore antialiasing for `draw_line`Yuri Roubinsky
2022-04-01Removed show_on_top property in CanvasItemVitika9
2022-03-20Bind NOTIFICATION_LOCAL_TRANFORM_CHANGEDJason Knight
2022-03-18Merge pull request #58394 from bruvzg/rtl_hintRémi Verschelde
2022-03-16Simplify always true conditionalMarkus Sauermann
get_viewport() is always true, because is_inside_tree() is true.
2022-03-13Expose methods for screen-space transformskobewi
2022-02-22Fix invisible CanvasItem visibility issueMarkus Sauermann