1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-04 17:04:49 +00:00
Commit Graph

6695 Commits

Author SHA1 Message Date
Thaddeus Crews
01fc9aee6c Core: Modernize C headers with C++ equivalents 2025-05-02 08:23:01 -05:00
kit
e6cb7affdc Allow Control Rect tool to not snap to pixel 2025-05-01 19:47:17 -04:00
hamid
82e23da12e Add drag zoom feature with CTRL+MiddleMouseButton
This change introduces a DragType enum to scene/gui/view_panner.cpp of
dragging, which includes:

- DRAG_TYPE_NONE: Not dragging
- DRAG_TYPE_PAN: Panning (dragging using MMB)
- DRAG_TYPE_ZOOM: Zooming (dragging using CTRL+MMB)

The goal of this change is the third option, which was already available
in 3D viewport but not in 2D. This feature should work in other editors
as well such as Animation Track Editor and Visual Shader Editor and so
on.
2025-05-01 15:15:44 +03:30
Thaddeus Crews
f4f1471b57 Merge pull request #105910 from lawnjelly/global_get_fast4
Add `GLOBAL_GET` cached macros.
2025-04-30 09:18:44 -05:00
lawnjelly
f8f350a32a Add GLOBAL_GET cached macros.
GLOBAL_GET is an expensive operation which should not be used each frame / tick.
This PR adds macros which do a cheaper revision check, and only call the expensive GLOBAL_GET when project settings have changed.

Co-authored-by: Lukas Tenbrink <lukas.tenbrink@gmail.com>
2025-04-30 15:08:50 +01:00
Haoyu Qiu
daaf4119de Improve ColorPicker 2025-04-30 11:50:35 +02:00
Stanislav Labzyuk
efd29f4caa Fix background size calculation in TreeItem 2025-04-29 19:58:29 +02:00
Thaddeus Crews
b1b873add3 Merge pull request #104731 from Delsin-Yu/stackable-text-effect
[GUI] Implement Stackable Text Outline on `Label`
2025-04-29 11:24:13 -05:00
Thaddeus Crews
bc21c322c6 Merge pull request #105880 from KoBeWi/deadline
Remove inline from constexpr variables
2025-04-29 11:24:13 -05:00
Thaddeus Crews
316af6aa36 Editor: Allow non-finite values in Range
Co-Authored-By: Aaron Franke <arnfranke@yahoo.com>
2025-04-29 11:08:46 -05:00
Thaddeus Crews
1d1805483f Merge pull request #105815 from timothyqiu/anchors-presets
Fix item translation and icon in the Anchors Preset dropdown
2025-04-28 18:45:55 -05:00
Thaddeus Crews
fc1ffeb5e0 Merge pull request #105870 from bruvzg/te_margin_round
[TextEdit] Fix margin rounding at sub 100% scale.
2025-04-28 14:10:52 -05:00
kobewi
5125a273dc Remove inline from constexpr variables 2025-04-28 21:09:43 +02:00
Thaddeus Crews
67c96c89cc Merge pull request #105855 from bruvzg/color_ac_typo
Fix ColorPicker preset button format string typo.
2025-04-28 10:01:36 -05:00
Thaddeus Crews
c0935eba0d Merge pull request #105846 from KoBeWi/you_call_it_title_but_it's_just_a_text
Rename FoldableContainer's `text` to `title`
2025-04-28 10:01:36 -05:00
Thaddeus Crews
6065073a69 Merge pull request #105857 from bruvzg/te_rtl_ac
[TextEdit] Fix caret cut of in RTL layout, account for wrapped line indents in accessibility updates.
2025-04-28 10:01:29 -05:00
Pāvels Nadtočajevs
1794098b47 [TextEdit] Fix margin rounding at sub 100% scale. 2025-04-28 17:22:58 +03:00
Haoyu Qiu
3578aa6acc Fix item translation and icon in the Anchors Preset dropdown
- Some items were not translated.
- Item icons did not react to light/dark theme switch.
2025-04-28 19:50:24 +08:00
Pāvels Nadtočajevs
fd1eeacf23 [ScrollContainer] Fix focus rect draw position in RTL layout. 2025-04-28 11:26:01 +03:00
Pāvels Nadtočajevs
fb99c01381 [TextEdit] Fix caret cut of in RTL layout, account for wrapped line indents in accessibility updates. 2025-04-28 11:22:33 +03:00
Pāvels Nadtočajevs
4cc50e40ec Fix ColorPicker preset button format string typo. 2025-04-28 08:03:52 +03:00
Pāvels Nadtočajevs
03048aa94a Improve edited scene layout direction detection. 2025-04-28 07:57:26 +03:00
Thaddeus Crews
1b4ed4c038 Merge pull request #105595 from bruvzg/focus_fx
Fix `FOCUS_ACCESSIBILITY` grabbing focus when it is not supposed to, forward `GraphNode` key input to `GraphEdit`.
2025-04-27 19:21:34 -05:00
Thaddeus Crews
9c324a8524 Merge pull request #103414 from dugramen/itemlist-shift-key-select
ItemList multiselect with shift up & down arrow keys
2025-04-27 19:21:33 -05:00
Thaddeus Crews
9967dde20b Merge pull request #105306 from KoBeWi/pwat
`Range`: Remove useless `p_what` argument
2025-04-27 19:21:29 -05:00
Thaddeus Crews
bdd3cb3f31 Merge pull request #103382 from dugramen/tree-shift-select
Add tree multiselect with shift up & down arrow keys
2025-04-27 19:21:27 -05:00
Thaddeus Crews
1a2a1b07df Merge pull request #105799 from Repiteo/scons/enum-conversion-warnings
SCons: Add enum conversion warning
2025-04-27 19:21:23 -05:00
Thaddeus Crews
3947cbe3b2 Merge pull request #104386 from Repiteo/core/cpp-math
Core: Replace C math headers with C++ equivalents
2025-04-27 19:21:22 -05:00
Thaddeus Crews
4dbfcbfbbd Merge pull request #105504 from ExEago/master
`RichTextLabel`: Add methods to compute the height and width of a line
2025-04-27 19:21:15 -05:00
kobewi
6856926b77 Rename FoldableContainer's text to title 2025-04-28 00:12:32 +02:00
Pāvels Nadtočajevs
db0c0a9182 Fix FOCUS_ACCESSIBILITY grabbing focus when it is not supposed to, forward GraphNode key input to GraphEdit. 2025-04-27 00:45:11 +03:00
Thaddeus Crews
dc9c34f0c6 SCons: Add enum conversion warning 2025-04-26 12:06:20 -05:00
DE YU
ac931c33c2 Implmement stackable text effects on label type through label settings
Co-authored-by: Micky <66727710+Mickeon@users.noreply.github.com>
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2025-04-26 20:50:20 +08:00
dugramen
eb973015d6 Tree multiselect with shift up & down arrow keys 2025-04-25 21:47:16 -04:00
dugramen
aebb85a064 ItemList multiselect with shift up & down arrow keys 2025-04-25 21:39:22 -04:00
kobewi
92f15d33ee Improve FileDialog options 2025-04-24 17:12:53 +02:00
Thaddeus Crews
013f7a6343 Merge pull request #105630 from KoBeWi/clearer_dialog
FileDialog code cleanup
2025-04-24 09:09:31 -05:00
Thaddeus Crews
d9122205ec Merge pull request #105656 from Koyper/fix_line_edit_text_edit_composite_character_backspace_delete
[LineEdit/TextEdit] Add composite character backspace delete and get composite character positions
2025-04-24 09:09:30 -05:00
Thaddeus Crews
e8240fdd00 Merge pull request #105516 from tehKaiN/unify_scrollbar_scrollcontainer_scroll_delta
Unify ScrollBar/ScrollContainer scroll delta
2025-04-24 09:09:29 -05:00
Koyper
b668f45fd0 Fix LineEdit and TextEdit composite character backspace delete. 2025-04-23 15:14:09 -05:00
Pāvels Nadtočajevs
e6d3cf63fb [ColorPicker, macOS] Add link to request required screen recording permission. 2025-04-23 22:25:10 +03:00
KaiN
b6b3b0e0d6 Unify ScrollBar/ScrollContainer scroll delta 2025-04-23 21:15:44 +02:00
kobewi
e565ee86ce FileDialog code cleanup 2025-04-23 19:28:14 +02:00
Pāvels Nadtočajevs
5b49fd4207 Selectively apply FOCUS_ACCESSIBILITY to the Labels instead of setting it by default. 2025-04-23 12:47:31 +03:00
Thaddeus Crews
4d48c8f69a Merge pull request #102240 from KoBeWi/RAWR
Fix ColorPicker sliders in overbright RGB
2025-04-22 10:44:24 -05:00
Thaddeus Crews
8ff4ea8a4a Merge pull request #97763 from Geometror/fix-gn-child-vis-conn-update
Fix `GraphEdit` connections not updating when a child of `GraphNode` goes invisible or changes size
2025-04-21 08:24:24 -05:00
Thaddeus Crews
f807754c1b Merge pull request #105237 from ibrahn/popup-drop-shadow-fix
Fix shadow offset larger than shadow size in PopupMenu and PopupPanel.
2025-04-21 08:24:16 -05:00
Thaddeus Crews
05f8b3e561 Merge pull request #105482 from maxpiepenbrink/fix-canvas-translate-regression
Fix regression causing jittery canvas transforms
2025-04-21 08:24:15 -05:00
Thaddeus Crews
8aaae4f4f3 Merge pull request #98560 from Koyper/tree_relationship_line_fix
[Tree] Fix relationship lines 1px width draw bug when MSAA anti aliasing is enabled
2025-04-21 08:24:06 -05:00
ExEago
4115b813fe Add two methods to compute the height and width of an individual line in a RichTextLabel 2025-04-21 10:25:47 +02:00