summaryrefslogtreecommitdiff
path: root/scene/main/canvas_item.cpp
AgeCommit message (Collapse)Author
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
2022-02-21Add RichTextLabel "hint" tag.bruvzg
2022-02-19Fix CanvasItem visibility propagationkobewi
2022-02-15Use `switch` consistently in `_notification` (`scene` folder)Rémi Verschelde
2022-02-06Rework CanvasItem visibility propagationkobewi
2022-02-05Add visibility to CanvasLayerkobewi
2022-01-20Add nodiscard to core math classes to catch c++ errors.lawnjelly
A common source of errors is to call functions (such as round()) expecting them to work in place, but them actually being designed only to return the processed value. Not using the return value in this case in indicative of a bug, and can be flagged as a warning by using the [[nodiscard]] attribute.
2022-01-12Refactor CanvasItem show/hide/set_visibleStijn Hinlopen
2022-01-03Update copyright statements to 2022Rémi Verschelde
Happy new year to the wonderful Godot community!
2021-12-09align to horizontal_alignment, valign to vertical_alignment, relatedNathan Franke
2021-12-06Fix crash when update() is called inside _draw()Haoyu Qiu
2021-11-16Merge pull request #54167 from ↵Rémi Verschelde
brunosxs/fix-game-crash-when-sending-a-notification-from-a-camera-class
2021-10-25Ignore empty Font resources as theme override.bruvzg
Add range hint to font_size properties. Remove excessive `base_size` Font property.
2021-10-23Fixes a game crash caused by instantiating Camera2D and sending a ↵BrunoSXS
notification from it before adding it to the tree.
2021-10-01Implement TextServer GDExtension interface, remove TextServer GDNative ↵bruvzg
interface.
2021-08-27Makes FontData importable resource.bruvzg
Adds multi-channel SDF font texture generation and rendering support. Adds per-font oversampling support. Adds FontData import plugins (for dynamic fonts, BMFonts and monospaced image fonts), font texture cache pre-generation and loading. Adds BMFont binary format and outline support.
2021-08-22Replace BIND_VMETHOD by new GDVIRTUAL syntaxreduz
* New syntax is type safe. * New syntax allows for type safe virtuals in native extensions. * New syntax permits extremely fast calling. Note: Everything was replaced where possible except for `_gui_input` `_input` and `_unhandled_input`. These will require API rework on a separate PR as they work different than the rest of the functions. Added a new method flag METHOD_FLAG_OBJECT_CORE, used internally. Allows to not dump the core virtuals like `_notification` to the json API, since each language will implement those as it is best fits.
2021-08-13Fix some unnecessary includesAaron Franke
2021-07-23Use C++ iterators for Lists in many situationsAaron Franke
2021-07-20Merge pull request #50655 from JFonS/sname_optRémi Verschelde
Editor StringName and Viewport optimizations
2021-07-20Editor StringName and Viewport optimizationsJoan Fons
* Added explicit return type to the SNAME macro. * Add some extra SNAME usages. * Change some ClassDB methods to use const StringName & arguments. * Cache the Window parent in Control because it's used in is_layout_rtl(), which is called often. * Only enable internal processing for viewports that need it. * Change CanvasItem::group to be a StringName because it's only used as that.
2021-07-19Use C++11 raw literals for shader code to improve readabilityHugo Locurcio
In files that have lots of branching, `\t` was replaced with a tab character instead.
2021-07-04Allow using ORMMaterial3D by using BaseMaterial3D as a resource hintHugo Locurcio
Previously, only StandardMaterial3D could be defined as an alternative to ShaderMaterial. This also reorders the CanvasItemMaterial property hints to follow alphabetical order (which is enforced by the inspector).
2021-07-01Use PROPERTY_USAGE_NONE instead of 0 for no property usageAaron Franke
Also use const more often.
2021-06-17Add PROPERTY_USAGE_NONE and use itAaron Franke
2021-06-17Implement animation slice drawing in CanvasItemreduz
* Added a function to ignore subsequent commands if they don't fall within the slice. * This will be used by the new TileMap to properly provide animated tiles.
2021-05-25Tweak dozens of editor property hints for consistencyHugo Locurcio
- Update Viewport MSAA property hints to match the currently exposed values. - Add some performance hints to property hints.
2021-05-20Fix typos with codespellRémi Verschelde
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 ```
2021-05-06Tweak CanvasItem/material sampling property hints for readabilityHugo Locurcio
The "Anisotropic" term is abbreviated as spelling it out would cause the PopupMenu to overflow the editor window when using the default inspector width.
2021-03-28Rename Texture.get_data() to get_image()Marcel Admiraal