kobewi
02e1e6d1ec
Add visibilty mode to as_sortable_control()
2024-06-03 20:01:31 +02:00
Rémi Verschelde
9b4cfcba5f
Merge pull request #92669 from Hilderin/fix-huge-tscn-icon-in-background-of-file-system-panel
...
Fix huge .tscn icon and icon in background of File System panel
2024-06-03 10:36:02 +02:00
Hilderin
81395cf9bd
Fix Huge .tscn Icon and icon in background of File System panel
2024-06-02 09:11:56 -04:00
Mounir Tohami
62a58c5538
Fix `NOTIFICATION_SORT_CHILDREN` is called twice on startup
2024-06-01 15:49:43 +00:00
aaronp64
6ecccd6085
Fix RichTextLabel table overlapping with next line
...
When calculating table height, RichTextLabel::_shape_line would increase the height when it reached the end of a complete row, or the final cell of the table. RichTextLabel::_resize_line would only increase the height at the end of a complete row, causing the height to ignore the final row if not all cells were populated. This would cause the final row to overlap with the following line in the RichTextLabel if it was the last visible line in the RichTextLabel, as _resize_line is called when updating scrolling properties.
This change moves the common table size calculations to a separate function to reuse the code between _shape_line and _resize_line, keeping the final cell check that was used in _shape_line.
Fixes #92603
2024-05-31 16:21:17 -04:00
Rémi Verschelde
07e6d0c702
Merge pull request #92138 from YeldhamDev/scrollcontainer_fixes
...
Fix scrollbar issues in `ScrollContainer`
2024-05-31 14:16:10 +02:00
A Thousand Ships
926afccbd8
[Scene] Add `SceneStringNames::panel`
2024-05-30 22:54:50 +02:00
A Thousand Ships
755a0efbb6
[Scene] Add `SceneStringNames::id_pressed`
2024-05-30 22:54:04 +02:00
Rémi Verschelde
505da68b26
Merge pull request #92565 from bruvzg/rtl_clear_flags
...
[RTL] Clear default justification flags if custom are set.
2024-05-30 22:13:59 +02:00
bruvzg
3a52e0f5fd
[RTL] Clear default justification flags if custom are set and fix typo in the flag name.
2024-05-30 21:23:26 +03:00
kit
af6b96c486
Fix minimap error when moving to the top
2024-05-30 12:06:02 -04:00
Rémi Verschelde
adbc4b086b
Merge pull request #92489 from kleonc/control-invalidate-global-transform-before-notifying-resize
...
Invalidate `Control` global transform before notifying about resize / rect change
2024-05-30 11:48:09 +02:00
Rémi Verschelde
4cd39c56fb
Merge pull request #92283 from KoBeWi/code_simpleton
...
Automatically use property count in PropertyListHelper
2024-05-30 11:47:58 +02:00
kleonc
22b6f962d9
Invalidate Control global transform before notifying about resize / rect change
2024-05-30 10:10:24 +02:00
Rémi Verschelde
219af366a5
Merge pull request #92505 from bruvzg/te_ro_margins
...
[TextEdit] Use style margins for selection in read-only mode.
2024-05-29 11:20:14 +02:00
Rémi Verschelde
05442e81c0
Merge pull request #92500 from timothyqiu/stretch-shrink-range
...
Add range hint for `SubViewportContainer.stretch_shrink`
2024-05-29 11:20:11 +02:00
Rémi Verschelde
b60471f3c0
Merge pull request #92463 from Daylily-Zeleen/daylily-zeleen/fix_graph_edit_minimap_connection_line
...
[GraphEdit] Convert to minimap line after getting connection line.
2024-05-29 11:20:04 +02:00
Rémi Verschelde
9bb858c803
Merge pull request #92460 from bruvzg/adlg_cancel_conf
...
Fix duplicate AcceptDialog cancel/confirm events.
2024-05-29 11:20:01 +02:00
bruvzg
1d0a8ea828
[TextEdit] Use style margins for selection in read-only mode.
2024-05-29 10:07:32 +03:00
Daylily-Zeleen
28a2fa496f
[GraphEdit] Convert to minimap line after getting connection line.
2024-05-29 12:58:51 +08:00
Haoyu Qiu
fd5118c781
Add range hint for SubViewportContainer.stretch_shrink
2024-05-29 09:03:15 +08:00
Rémi Verschelde
43cf4740b9
Merge pull request #92461 from bruvzg/rtl_meta_y
...
[RTL] Use real text/object height instead of line height for meta click/hover detection.
2024-05-28 16:13:26 +02:00
Rémi Verschelde
194b1c478d
Merge pull request #92342 from aaronp64/textedit_duplication
...
Remove duplicate if/else code in `TextEdit::_notification`
2024-05-28 15:49:19 +02:00
Rémi Verschelde
a10897ddc0
Merge pull request #92301 from robert-wallis/fix-code-edit-delimiter-crash
...
Fix crash during code editor folding and LSP
2024-05-28 15:49:09 +02:00
Rémi Verschelde
13a32e2753
Merge pull request #92296 from timothyqiu/complete-remove-override
...
Fix theme StyleBox override parameter completion
2024-05-28 15:49:05 +02:00
Rémi Verschelde
cfe80f9fec
Merge pull request #92222 from semensanyok/fix-TextureButton-click-mask-texture-size-ignored-if-missing-normal-texture
...
Fix TextureButton's click mask texture size ignored if missing normal texture
2024-05-28 15:48:58 +02:00
bruvzg
061ad36732
[RTL] Use real text/object height instead of line height for meta click/hover detection.
2024-05-28 11:46:56 +03:00
bruvzg
3e691e026b
Fix duplicate AcceptDialog cancel/confirm events.
2024-05-28 10:46:28 +03:00
MrPersonDev
2860b99077
Fix backspace always unfolding previous line
2024-05-27 13:30:19 -07:00
kit
948f09632e
Unhide carets in add selection for occurrence
2024-05-27 15:30:18 -04:00
kit
66a8ee71aa
Fix TextEdit HScroll hiding after wrapping
2024-05-27 14:56:55 -04:00
aaronp64
05cc8e7aaf
Remove duplicate if/else code in TextEdit::_notification
2024-05-25 10:50:04 -04:00
semensanyok
63554c7765
Fix TextureButton's click mask texture size ignored if missing normal texture
2024-05-25 15:40:09 +02:00
kobewi
b365a63403
Automatically use property count in PropertyListHelper
2024-05-25 10:51:37 +02:00
Robert Wallis
0e97e1bc62
Fix crash during code editor folding and LSP
2024-05-23 20:01:11 -07:00
Haoyu Qiu
8652e9914f
Fix theme StyleBox override parameter completion
...
Also added completion for remove_theme_*_override.
2024-05-24 08:12:53 +08:00
bruvzg
cb3ce85902
Fix `PopupMenu` focus issues after `Viewport::set_embedding_subwindows` is changed.
2024-05-22 11:17:43 +03:00
Riley Willows
ea7860c614
Fix CheckBox and CheckButton not using max_icon_width
2024-05-20 10:40:21 +02:00
Michael Alexsander
9353081338
Fix scrollbar issues in `ScrollContainer`
2024-05-19 22:20:43 -03:00
Rémi Verschelde
85463fd5eb
Merge pull request #92042 from bruvzg/fix_edit_popup
...
Fix Tree and FileSystemList edit popup double events and ESC behavior.
2024-05-17 13:00:38 +02:00
Rémi Verschelde
0d5e910a91
Merge pull request #92009 from bruvzg/btn_min_size
...
Improve button min. size calculation.
2024-05-17 11:14:08 +02:00
Rémi Verschelde
62353747e5
Merge pull request #91720 from kitbdev/fix-textedit-minimap
...
Fix TextEdit minimap tab drawing and click check
2024-05-17 11:13:52 +02:00
bruvzg
7d4d63b807
Fix Tree and FileSystemList edit popup double events and ESC behavior.
2024-05-17 10:03:52 +03:00
bruvzg
ea379e3b3a
Improve button min. size calculation.
2024-05-16 22:37:12 +03:00
Hendrik Brucker
6a067a4a80
[GraphEdit] Fix GraphNode's ports interactable through other GraphNodes
2024-05-15 19:55:43 +02:00
Rémi Verschelde
c0d2464d6b
Merge pull request #91939 from AThousandShips/pressed_sname
...
[Scene] Add `SceneStringNames::pressed`
2024-05-14 18:10:05 +02:00
Rémi Verschelde
380f63489f
Merge pull request #91728 from kitbdev/assimilate-split-container
...
Use `as_sortable_control()` in SplitContainer
2024-05-14 18:09:51 +02:00
A Thousand Ships
ee79386f7b
[Scene] Add SceneStringNames::pressed
2024-05-14 15:51:28 +02:00
Rémi Verschelde
bdefe53992
Merge pull request #91909 from KoBeWi/have_fun_reviewing_this
...
Use Core/Scene stringnames consistently
2024-05-14 12:07:03 +02:00
Rémi Verschelde
2b3d913906
Merge pull request #91802 from Rindbee/round-icon-rect-when-drawing-the-button
...
Round the icon's drawing rect when drawing the button
2024-05-14 12:06:48 +02:00
kobewi
413c11357d
Use Core/Scene stringnames consistently
2024-05-13 23:41:07 +02:00
Rémi Verschelde
dcd6db8680
Merge pull request #90534 from Geometror/vs-reroute-node
...
[VisualShader] Add reroute node and improve port drawing
2024-05-13 12:05:25 +02:00
Hendrik Brucker
62776842df
[VisualShader] Add reroute node and improve port drawing
2024-05-13 03:26:01 +02:00
kobewi
a262d2d881
Add shorthand for using singleton string names
2024-05-11 18:53:08 +02:00
风青山
82fef614ce
Round the icon's drawing rect when drawing the button
...
Each component of the icon's drawing rect needs to be snapped to an
integer.
2024-05-11 00:15:36 +08:00
Rémi Verschelde
9c388ce5d3
Merge pull request #91760 from groud/fix_PropertyListHelper_not_handling_array_size
...
Fix `PropertyListHelper::_get_property` returning a valid value even if an index is outside the array valid indices
2024-05-10 10:48:42 +02:00
Gilles Roudière
7705265477
Fix PropertyListHelper::_get_property returning a valid value even if an index is outside the array valid indices
...
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
2024-05-10 10:46:04 +02:00
Yuri Rubinsky
1fd1adc285
Fix placement of ColorPicker in the editor
2024-05-09 15:16:33 +03:00
kit
d8acd8caa6
Use `as_sortable_control()` in SplitContainer
2024-05-08 13:17:34 -04:00
kit
a53c8e8d70
Fix TextEdit minimap tab drawing and click check
2024-05-08 11:43:44 -04:00
Rémi Verschelde
a9a1d0a162
Merge pull request #91619 from AThousandShips/find_improve
...
Replace `find` with `contains/has` where applicable
2024-05-08 14:35:44 +02:00
kobewi
eb570463a2
Revert as_sortable_control() change in SplitContainer
2024-05-08 13:36:49 +02:00
A Thousand Ships
a0dbdcc3ab
Replace `find` with `contains/has` where applicable
...
* Replaces `find(...) != -1` with `contains` for `String`
* Replaces `find(...) == -1` with `!contains` for `String`
* Replaces `find(...) != -1` with `has` for containers
* Replaces `find(...) == -1` with `!has` for containers
2024-05-08 12:37:42 +02:00
Rémi Verschelde
281fe39929
Merge pull request #91699 from KoBeWi/buff_tree_folding
...
Fold TreeItems when clicking to the left of fold icon
2024-05-08 12:31:39 +02:00
kobewi
5c28814b39
Add as_sortable_control() to unify Container checks
2024-05-08 11:45:52 +02:00
kobewi
9bc5a85b2b
Fold TreeItems when clicking to the left of fold icon
2024-05-08 11:30:26 +02:00
Rémi Verschelde
316c4d50d5
Merge pull request #91112 from RandomShaper/fix_double_confirm
...
Avoid double handling of rename in the file system dock
2024-05-07 16:49:34 +02:00
kobewi
82b6f9d7a7
Fetch argument options from ThemeDB
2024-05-07 15:02:50 +02:00
Pedro J. Estébanez
eb2bd41fb8
Make handling of rename line-edit popups more robust
2024-05-07 14:29:35 +02:00
Rémi Verschelde
472273f07a
Merge pull request #91326 from aaronp64/line_edit_min_size
...
Update `LineEdit` to include `read_only` StyleBox in `get_minimum_size()`
2024-05-07 13:48:44 +02:00
Rémi Verschelde
e63252b421
Merge pull request #90705 from AThousandShips/foreach_list
...
Reduce and prevent unnecessary random-access to `List`
2024-05-07 09:04:44 +02:00
Rémi Verschelde
965bae735e
Merge pull request #72323 from Koyper/flow_container_center_wrap_options
...
Add FlowContainer wrap options for center alignment.
2024-05-07 09:04:34 +02:00
Silc Lizard (Tokage) Renew
57cd00aee9
Avoid incorrect computing anchor of Control node when reset on save
2024-05-05 08:33:37 +09:00
A Thousand Ships
955d5affa8
Reduce and prevent unnecessary random-access to `List`
...
Random-access access to `List` when iterating is `O(n^2)` (`O(n)` when
accessing a single element)
* Removed subscript operator, in favor of a more explicit `get`
* Added conversion from `Iterator` to `ConstIterator`
* Remade existing operations into other solutions when applicable
2024-05-04 16:08:55 +02:00
kit
0162683da4
Fix TextEdit crash with multiple carets disabled
2024-05-02 09:26:08 -04:00
bruvzg
360d365b33
[RTL] Adds extra argument to `remove_paragraph` to skip cache invalidation and a method for manual cache invalidation.
2024-05-02 14:03:21 +03:00
Rémi Verschelde
098a4e945e
Merge pull request #91188 from YeldhamDev/love_fixing_other_peoples_regressions
...
Fix `TabContainer` regressions related to switching tabs in certain cases
2024-05-02 12:46:39 +02:00
A Thousand Ships
308dbb8c63
[Core] Add scalar versions of `Vector*` `min/max/clamp/snap(ped)`
...
Convenience for a number of cases operating on single values
2024-05-02 10:31:13 +02:00
Rémi Verschelde
e19b808a7a
Merge pull request #86978 from kitbdev/multicaret-overhaul
...
Overhaul multicaret editing and selection in TextEdit
2024-04-30 17:03:04 +02:00
aaronp64
3337c160a4
Update LineEdit to include read_only StyleBox in get_minimum_size()
...
Fixes #90522
2024-04-29 14:43:16 -04:00
Koyper
e3efd51592
Add FlowContainer wrap options for center alignment.
2024-04-29 08:26:45 -05:00
Rémi Verschelde
77caf02802
Merge pull request #89705 from bruvzg/rtl_draw_steps
...
[RTL] Move shadow and foreground/background boxes drawing into a separate draw steps.
2024-04-29 13:00:22 +02:00
Rémi Verschelde
c1f8d24f18
Merge pull request #91275 from ajreckof/Fix-RichTextLabel-Scroll-Following-randomly-stops-working
...
Fix RichTextLabel "Scroll Following" randomly stops working.
2024-04-29 10:10:38 +02:00
Rémi Verschelde
7cd6ea0f7e
Merge pull request #91183 from KoBeWi/small_stuff
...
Misc code cleanup
2024-04-29 10:09:57 +02:00
ajreckof
7faafb1448
Fix RichTextLabel "Scroll Following" randomly stops working.
2024-04-28 12:15:14 +02:00
kit
773a473807
Overhaul multiple caret editing in TextEdit.
...
Use a multicaret edit to delay merging overlapping carets until the end.
2024-04-26 14:26:10 -04:00
kit
154f727c7a
Overhaul TextEdit selection.
...
The caret is now a part of the selection.
2024-04-26 14:24:10 -04:00
kobewi
914528180f
Misc code cleanup
2024-04-26 15:30:21 +02:00
Rémi Verschelde
1c584ec9e0
Merge pull request #91190 from kitbdev/dont-scroll-if-fit
...
Don't use vscroll when fit to content height in TextEdit
2024-04-26 15:13:40 +02:00
kobewi
0b877a9962
Expose is_part_of_edited_scene()
2024-04-26 11:49:38 +02:00
Rémi Verschelde
f55b81be1e
Merge pull request #91193 from timothyqiu/tab-icon-size
...
Allow setting max icon width per tab for TabContainer
2024-04-26 11:09:05 +02:00
Rémi Verschelde
a37db390e0
Merge pull request #90229 from Santoss1809/master
...
Fix error message when removing only child from GraphNode
2024-04-26 11:08:25 +02:00
João Santos
eb9e193477
Fix error message when removing only child from GraphNode
...
Fixes #89695 .
2024-04-26 10:45:45 +02:00
Michael Alexsander
1c32fa2f40
Fix `TabContainer` regressions related to switching tabs in certain cases
2024-04-26 03:07:21 -03:00
Haoyu Qiu
779426b2fa
Allow setting icon max width for TabContainer
2024-04-26 08:27:27 +08:00
kit
d9b0561601
Don't use vscroll when fit to content height in TextEdit
2024-04-25 19:19:08 -04:00
Koyper
4c5a904faf
[PopupMenu] Fix incorrect vertical scroll bar visible at fractional content scale
2024-04-25 09:33:36 -05:00
Rémi Verschelde
50a38cd1c2
Merge pull request #91137 from ckaiser/fix-minimap-lightmode
...
Use TextEdit caret color for minimap highlight (fix minimap regression)
2024-04-25 12:11:28 +02:00
Rémi Verschelde
ab2daa2923
Merge pull request #91095 from timothyqiu/min-tree
...
Fix Tree minimum size calculation
2024-04-25 12:11:23 +02:00
Haoyu Qiu
4f4e8589df
Fix Tree minimum size calculation
...
- Take scroll bar space and column title buttons into account
- Fix first column min size sometimes missing one level of indent
- Fix cell min size ignoring text overrun behavior and item inner margin
- Update min size when `hide_root` or `column_title_visible` changes
Wrong description of `item_inner_margin_*` constants is also fixed
2024-04-25 16:00:45 +08:00
Christian Kaiser
91fff47fdc
Use TextEdit caret color for minimap highlight
2024-04-25 04:27:49 -03:00
nagidev
b0cafc1077
Fixed port cache calculation in GraphNode
2024-04-24 13:33:38 +05:30
Rémi Verschelde
a3b9344a37
Merge pull request #91044 from timothyqiu/column-title
...
Fix wrong Tree column title position
2024-04-23 19:12:08 +02:00
Rémi Verschelde
d7abefd0a3
Merge pull request #91038 from timothyqiu/tab-container-toggle-icon-text
...
Fix TabContainer using wrong content rect after tab title update
2024-04-23 19:12:03 +02:00
Haoyu Qiu
98d7d62350
Fix wrong Tree column title position
2024-04-23 15:46:19 +08:00
Mansur Isaev
b37ddfc606
Add tab tooltip text
2024-04-23 08:28:48 +04:00
Haoyu Qiu
91918e8cb7
Fix TabContainer not updating content rect after changing tab title
2024-04-23 09:48:59 +08:00
Rémi Verschelde
7abe0c6014
Merge pull request #90988 from TheSofox/scrolling-signal-fix
...
Enable `Scrolling` signal when scrolling with middle mouse on `RichTextLabel` or `ScrollContainer`
2024-04-22 22:38:04 +02:00
Sofox
30356a488f
Enabled 'Scrolling' signal when scrolling with middle mouse on RichTextLabel/ScrollContainer
2024-04-22 20:44:03 +01:00
Rémi Verschelde
4e391ea81e
Merge pull request #90942 from timothyqiu/toggle-tab-icon
...
Fix TabContainer not redrawing after toggling tab icon
2024-04-22 12:53:39 +02:00
Rémi Verschelde
659cf339bc
Merge pull request #90931 from aaronfranke/is-ascii-alphabet-char
...
Rename internal `is_ascii_char` to `is_ascii_alphabet_char`
2024-04-22 12:53:28 +02:00
Rémi Verschelde
f0db317ea4
Merge pull request #90869 from KoBeWi/babe_wake_up,_new_color_space_just_dropped
...
Don't translate ColorPicker color labels
2024-04-22 12:53:17 +02:00
Rémi Verschelde
9498753cc4
Merge pull request #90839 from timothyqiu/tree-button
...
Fix TreeItem button handling
2024-04-22 12:53:09 +02:00
bruvzg
0adb55423d
[RTL] Rewrite `remove_paragraph` code.
2024-04-22 10:32:24 +03:00
Haoyu Qiu
fd14ba34d1
Fix TabContainer not redrawing after toggling tab icon
2024-04-20 21:08:46 +08:00
Aaron Franke
b1f5e9fe3a
Rename internal is_ascii_char to is_ascii_alphabet_char
2024-04-20 02:36:41 -07:00
Rémi Verschelde
626c6a0ff8
Merge pull request #90874 from Zylann/fix_graph_frame_crash
...
Fix crash when GraphFrame `sb_to_draw_panel` is not a StyleBoxFlat
2024-04-19 16:28:24 +02:00
Marc Gilleron
f3e6d23405
Fix crash when GraphFrame sb_to_draw_panel is not a StyleBoxFlat
2024-04-18 21:33:02 +01:00
kobewi
9ab3ff04ac
Don't translate ColorPicker color labels
2024-04-18 20:26:56 +02:00
Haoyu Qiu
b2d5a06828
Fix buttons offset to the right when dialog is at minsize
2024-04-18 21:12:34 +08:00
Haoyu Qiu
c78e9c3fbd
Fix TreeItem button handling
...
- Fix incorrect tooltip and `get_button_id_at_position()` when column
title is visible and when RTL layout is used
- Take `button_margin`, `h_separation`, and `item_margin` into account
2024-04-18 18:51:36 +08:00
Rémi Verschelde
2543d192c3
Merge pull request #90842 from timothyqiu/revert-79792
...
Revert "Correctly display tooltips for buttons in Tree when they overlap cell content
2024-04-18 12:25:08 +02:00
Rémi Verschelde
a202027efe
Merge pull request #90838 from bruvzg/btn_theme_rounding
...
[Button] Fix theme elements size rounding errors not keeping sufficient space for the text.
2024-04-18 12:25:05 +02:00
Rémi Verschelde
0dfb48e58d
Merge pull request #89693 from Calinou/dialogs-add-button-minimum-size
...
Add minimum width/height to dialog buttons
2024-04-18 12:24:20 +02:00
Rémi Verschelde
043ca7c63c
Merge pull request #88306 from KoBeWi/PropertyListHelper_will_come_for_you
...
Add PropertyListHelper in all simple cases
2024-04-18 12:24:17 +02:00
Rémi Verschelde
3a88373a4c
Merge pull request #86553 from Koyper/fix_popup_panel_content_scaling
...
Fix non-embedded tooltips, popups and dialogs resizing to match Viewport content scale factors != 1.0
2024-04-18 12:24:11 +02:00
Haoyu Qiu
00f0043227
Revert "Correctly display tooltips for buttons in Tree when they overlap cell content"
...
This reverts commit 8278a5f274
.
2024-04-18 17:35:26 +08:00
bruvzg
45bde2b5b0
[Button] Fix theme elements size rounding errors not keeping sufficient space for the text.
2024-04-18 11:48:46 +03:00
Hugo Locurcio
1e8526659c
Add minimum width/height to dialog buttons
...
This makes buttons with short texts such as "OK" or "Close"
easier to click, especially on a touchscreen.
This is exposed to projects via `buttons_min_width` and `buttons_min_height`
theme items in AcceptDialog (and therefore ConfirmationDialog and FileDialog),
with the default values being 0 to preserve compatibility with existing projects.
2024-04-17 23:48:05 +02:00
Koyper
0881c81c13
Fix non-embedded Windows resizing to match Viewport content scale factor
2024-04-17 09:30:16 -05:00
Rémi Verschelde
fad6897af0
Merge pull request #90639 from YeldhamDev/stay_open_please
...
Fix submenus erroneously closing on some occasions
2024-04-17 10:58:46 +02:00
bruvzg
524a20f460
[RTL] Add support for character code bb tag.
2024-04-15 11:25:50 +03:00
Haoyu Qiu
48f1e5b561
Don't store deprecated auto-translate property
2024-04-15 14:23:24 +08:00
Rémi Verschelde
41fc152232
Merge pull request #90633 from YeldhamDev/the_popup_is_not_wearing_any_panels
...
Remove `Popup`'s unused "panel" style
2024-04-14 14:39:15 +02:00
Michael Alexsander
7c75355541
Remove `Popup`'s unused "panel" style
2024-04-13 15:18:12 -03:00
Michael Alexsander
978ffb39bf
Fix submenus erroneously closing on some occasions
2024-04-13 15:10:19 -03:00
kobewi
e95e954c68
Add PropertyListHelper in all simple cases
2024-04-11 18:13:29 +02:00
Rémi Verschelde
42e8f42d87
Merge pull request #90455 from kitbdev/te-fix-caret-line-end
...
Fix caret last fit when moving to line end
2024-04-10 17:49:53 +02:00
bruvzg
d34c1f7733
[RTL] Fix dropcaps and list prefixes not taking visible characters into account.
2024-04-10 11:08:57 +03:00
bruvzg
fe8737da49
[RTL] Move shadow and foreground/background boxes drawing into a separate draw steps.
2024-04-09 21:44:53 +03:00
kit
a1bde1b9db
Fix caret last fit when moving to line end
2024-04-09 14:06:57 -04:00
Michael Alexsander
adea1a4b9b
Fix `TabContainer` desync when tabs share names
2024-04-09 02:02:05 -03:00
Michael Alexsander
44e2c56daa
Fix built-in `FileDialog` appearing instead of the native one on some cases
2024-04-06 15:45:45 -03:00
Rémi Verschelde
54116086af
Merge pull request #89956 from KoBeWi/warning!_self_destruct_sequence_activated
...
Remove Control z-index warning
2024-04-05 12:16:00 +02:00
kobewi
c3d2fab1e5
Remove Control z-index warning
2024-04-04 17:22:04 +02:00
Hendrik Brucker
a81561cbd9
Add GraphFrame and integrate it in VisualShader
2024-04-04 15:11:00 +02:00
Rémi Verschelde
0df9c16d81
Merge pull request #89993 from Sauermann/fix-textedit-clip-contents
...
Make `TextEdit.clip_contents` more transparent to users
2024-04-04 14:35:54 +02:00
Rémi Verschelde
b345614adb
Merge pull request #89977 from aqfranco/master
...
Fix TreeItem shows cell edit in the wrong column when `select_mode=Row` and TreeItem has multiple columns
2024-04-04 14:35:44 +02:00
Rémi Verschelde
27dec32699
Merge pull request #89735 from bruvzg/ed_native_fd2
...
[Native File Dialog] Add support for using native dialogs in the editor.
2024-04-04 14:31:39 +02:00
Rémi Verschelde
2ac88339e4
Merge pull request #89721 from KoBeWi/position_who
...
Rename some arguments called "position"
2024-04-04 14:31:35 +02:00
Markus Sauermann
94e1943f02
Make `TextEdit.clip_contents` more transparent to users
...
Instead of ignoring `TextEdit.clip_contents`, use it with a default
value `true`. in the same way as `RichTextLabel`.
2024-03-28 21:07:27 +01:00
Andre Franco
5c19fcbd57
Fix #88892 : TreeItem shows cell edit in the wrong column when SelectMode=Row and TreeItem has multiple columns
...
Editor would not be brought up when clicking on all but the last column on a TreeItem with SelectMode=Row with
multiple columns and when the editor was being brought up when clicking on the last column, it was editing the first column
Fixed draw_item, gui_input and edit_selected functions by setting set_meta parameter for each column
Fixed select_single_item function by changing selected_col depending on input
2024-03-28 15:31:42 +00:00
bruvzg
61f7145f43
[Native File Dialog] Add support for using native dialogs in the editor.
2024-03-28 11:53:03 +02:00
kobewi
25f9f923a1
Rename some arguments called "position"
2024-03-27 01:28:24 +01:00
bruvzg
dc01658ee9
[DisplayServer] Add separate feature flags for different native dialog types.
2024-03-26 15:18:06 +02:00
Rémi Verschelde
37766c4ef8
Merge pull request #89625 from kitbdev/not-the-end-of-the-line
...
Fix TextEdit selection end of line drawing for wrapped lines and gaps
2024-03-26 13:45:22 +01:00
Rémi Verschelde
19a50127e5
Merge pull request #88690 from MajorMcDoom/color-picker-fix
...
Fix undo/redo behavior of ColorPicker and add ability to cancel/confirm color selection
2024-03-26 13:45:06 +01:00
Rémi Verschelde
f371b7fb70
Merge pull request #87883 from TontonSancho/text-skip-occurence
...
Add 'Skip to next (text) occurrence' feature to text editor
2024-03-25 13:15:56 +01:00
Rémi Verschelde
0acfb38376
Merge pull request #89875 from bruvzg/menu_use_rids
...
[MenuBar] Use NativeMenu RIDs instead of indices to track items.
2024-03-25 11:19:01 +01:00
Christophe Andral
c988bec4b3
Add 'Skip to next (text) occurrence' feature to text editor
...
Adds `ui_text_skip_selection_for_next_occurrence` action and related implementation to text editor.
This action is bound `Ctrl+Alt+D` shorcut.
Used in conjonction with `ui_add_skip_selection_for_next_occurrence`, it gives the user the ability to select many occurrences of a selection
and avoid some of them.
Used without a previous selection, the action jumps to the next occurrence of the current word under the caret.
2024-03-25 11:12:28 +01:00
bruvzg
5851f1e2dd
[MenuBar] Use NativeMenu RIDs instead of indices to track items.
2024-03-25 10:58:05 +02:00
Zi Ye
d827b34ea8
Fixed undo/redo behaviour of color picker and added ability to cancel/confirm color selection.
2024-03-24 15:12:11 -05:00
Alistair Leslie-Hughes
13d83dd4d7
Correct FileDialog Theme overrides
...
Introduced in 15fd025f90
Fixes #89818
2024-03-24 19:33:05 +11:00
Rémi Verschelde
6ccf425a68
Merge pull request #89664 from voylin/tree-empty-clicked-fix
...
Fix `empty_clicked` signal in Tree when using `hide_root`
2024-03-24 01:20:59 +01:00
Rémi Verschelde
cd4e4c0fcc
Merge pull request #89111 from AThousandShips/vec_use
...
Use `Vector*` component-wise `min/max/clamp` functions where applicable
2024-03-24 01:14:51 +01:00
Rémi Verschelde
e92806c7e7
Merge pull request #88424 from rburing/fti_2d
...
Physics interpolation (2D)
2024-03-24 01:13:53 +01:00
Rémi Verschelde
f0544ebba6
Merge pull request #87874 from AThousandShips/sort_fix
...
Fix sorting of files/dirs in dialogs
2024-03-24 01:13:12 +01:00
Ricardo Buring
2ed2ccc2d8
Fixed Timestep Interpolation (2D)
...
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>
2024-03-23 12:28:36 +01:00
voylin
d339c71edc
Fix empty_clicked signal when hide_root
...
fix
2024-03-22 09:19:56 +09:00
A Thousand Ships
79ba22a73f
Use `Vector*` component-wise `min/max/clamp` functions where applicable
2024-03-20 13:47:42 +01:00
A Thousand Ships
2cbf469912
Fix sorting of files/dirs in dialogs
...
Sorts leading `_` before other characters except `.`.
2024-03-20 13:45:47 +01:00
VolTer
de8b6f7a3c
Add editor settings for autocompletion with NodePath and StringName
2024-03-19 17:23:54 +02:00
kit
63ac8c1106
Fix TextEdit selection end of line drawing
2024-03-18 10:13:21 -04:00
Rémi Verschelde
5f3b284cd9
Merge pull request #89510 from bruvzg/lbl_shadow_step
...
[Label] Move shadow drawing into a separate draw step.
2024-03-15 11:07:33 +01:00
Rémi Verschelde
70bcf2175c
Merge pull request #89506 from bruvzg/menu_fix1
...
Fix NativeMenu layout direction on macOS, add extra check for Windows menu.
2024-03-15 10:40:17 +01:00
bruvzg
af9e8128f9
[Label] Move shadow drawing into a separate draw step.
2024-03-15 11:24:08 +02:00
bruvzg
3459aaa9d1
Fix NativeMenu layout direction on macOS, add extra check for Windows menu.
2024-03-15 09:48:54 +02:00
kleonc
f08e782916
Fix Control::set_global_position for rotated/scaled transforms
2024-03-15 04:19:52 +01:00
Rémi Verschelde
4163fb9c26
Merge pull request #89489 from YeldhamDev/yet_another_etr_fix
...
Fix some translations not properly falling back
2024-03-14 22:35:41 +01:00
Rémi Verschelde
a5a5ce7052
Merge pull request #89469 from garrettgu10/ggu/multicursor-bugfix
...
Fix bug related to multicursor and backspacing with brackets
2024-03-14 22:35:20 +01:00
Michael Alexsander
05f6c56a48
Fix some translations not properly falling back
2024-03-14 16:38:12 -03:00
Garrett Gu
4ab08fb99f
Fix bug related to multicursor and backspacing with brackets
2024-03-14 11:48:48 -05:00
bruvzg
ac7583e449
[NativeMenu] Implement native popup menu support on Windows.
2024-03-13 10:51:38 +02:00
Rémi Verschelde
20373d026d
Merge pull request #89419 from KoBeWi/losing_control
...
Fix some AcceptDialog argument types
2024-03-12 16:28:10 +01:00
kobewi
a7b6bcb988
Fix some AcceptDialog argument types
2024-03-12 14:33:43 +01:00
bruvzg
433de7f1a8
[RTL] Use "visible characters" property for inline object visibility
2024-03-12 11:28:45 +02:00
Rémi Verschelde
1bbdbbaada
Merge pull request #89242 from RafaelRain18/master
...
Fix region section not ignoring #region and #endregion when in a string
2024-03-11 14:02:30 +01:00
Rémi Verschelde
9a098458cc
Merge pull request #85325 from TheSofox/text-edit-undo-fix
...
Fixes for undo in text editor grouping unrelated actions
2024-03-11 14:02:17 +01:00
Rafael Chuva
8c36282feb
Fix region section not ignoring #region and #endregion when in a string
...
When using the script editor, if the keywords #region and #endregion where
in a string and ate the start of the line, the editor would not ignore them
and count them as the actual keywords, which when folded, would only fold
until the first #endregion in a string, for example.
By checking if these keywords were in a string, this commit now ensures the
editor ignores strings and fold the section correctly.
Fixes #89115 .
2024-03-11 00:04:39 +00:00
bruvzg
da02ca7e75
[NativeMenu] Add checks to avoid unnecessary warnings.
...
Added by Rémi: Add dummy NativeMenu to DisplayServerHeadless,
fixing crashes when using `--headless`.
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2024-03-07 00:23:26 +01:00
Rémi Verschelde
13954fc33e
Merge pull request #87452 from bruvzg/native_menu
...
Move `global_menu_*` methods to a separate `NativeMenu` class.
2024-03-06 13:16:52 +01:00
Rémi Verschelde
c84d3385f7
Merge pull request #88300 from FaycalElOuariachi/add-TreeItem-is_visible_in_tree
...
Add `is_visible_in_tree` in `TreeItem`
2024-03-05 23:44:29 +01:00
Sofox
83dffe4816
Fixes for undo in text editor grouping unrelated actions
2024-03-05 10:25:47 +00:00
Rémi Verschelde
6d1ac18dee
Merge pull request #89158 from bruvzg/rtl_meta_hover_fix
...
[RTL] Fix meta hover area detection.
2024-03-05 09:56:12 +01:00
Rémi Verschelde
2d408f48e7
Merge pull request #88546 from bruvzg/indent_wrap
...
[TextEdit] Add support for optional wrapped line indentation.
2024-03-05 09:55:51 +01:00
Faycal ElOuariachi
50cf7e1778
Add is_visible_in_tree in TreeItem
2024-03-05 03:38:33 +01:00
Hugo Locurcio
4f8d7cae26
Add Ctrl + L / Cmd + Shift + G shortcut to focus path bar in FileDialog
...
This also tweaks EditorFileDialog to use the same shortcut,
while making it select the path text after focusing
(like in most file managers).
Ctrl + L / Cmd + Shift + G can also now be used to focus on the
property name in the project settings editor, as well in the
Input Map, Autoload, Shader Globals and Global Groups tabs.
2024-03-05 00:02:09 +01:00
bruvzg
c65a667924
Move `global_menu_*` methods to a separate `NativeMenu` class.
2024-03-04 23:41:41 +02:00
bruvzg
42e6cda14e
[RTL] Fix meta hover area detection.
2024-03-04 22:06:16 +02:00
Rémi Verschelde
de59a9547c
Merge pull request #89100 from YeldhamDev/tag,_it_is_you!
...
Fix issues with text clearing in `RichTextLabel`
2024-03-04 13:34:13 +01:00
Rémi Verschelde
aebd746c79
Merge pull request #88068 from WhalesState/grabber
...
Fix `Slider`'s mouse drag position when grabber is centered
2024-03-04 13:33:15 +01:00
Michael Alexsander
d6917d2206
Fix issues with text clearing in `RichTextLabel`
2024-03-02 21:38:32 -03:00
Michael Alexsander
612eed164c
Add auto translation to `Tree`
2024-03-01 12:21:45 -03:00
Rémi Verschelde
8e951fd0a9
Merge pull request #89024 from bruvzg/rtl_hover_meta
...
[RTL] Add optional `push_meta` argument to control how meta underline is drawn.
2024-03-01 15:00:41 +01:00
Rémi Verschelde
c1377920cd
Merge pull request #86743 from Mickeon/autocompletion-optimise-object
...
Optimise comparisons for Object's `get_argument_options`
2024-03-01 14:56:06 +01:00
Rémi Verschelde
8e45506070
Merge pull request #85801 from HolonProduction/select-whole-words-line-edit
...
Allow dragging selection when selecting whole words in `LineEdit`
2024-03-01 14:55:53 +01:00
bruvzg
2a3de7adc3
[RTL] Add optional `push_meta` argument to control how meta underline is drawn.
2024-03-01 12:07:06 +02:00
Micky
cd2032a90b
Optimise Object's `get_argument_options`
2024-02-29 18:00:54 +01:00
Rémi Verschelde
810a0dbff1
Don't access Node3D/Node2D/Control global transform in `reparent` unless needed
...
Fixes #89002 .
Co-authored-by: Tamás Gálffy <ezittgtx@gmail.com>
2024-02-29 14:07:48 +01:00
Rémi Verschelde
da916221a7
Merge pull request #88577 from davthedev/itemlist-light-refactor
...
Fix item positioning, text alignment & unwanted clipping of ItemList items
2024-02-29 13:54:03 +01:00
Michael Alexsander
d70c45b5c8
Add option to add built-in strings in the POT generation
2024-02-28 11:34:26 -03:00
Rémi Verschelde
b431314e8f
Merge pull request #88794 from ryevdokimov/fix-spinbox
...
If SpinBox text can't be parsed use last updated text
2024-02-28 09:34:36 +01:00
Robert Yevdokimov
76a6650fd9
If spinbox text can't be parsed use last updated text
2024-02-27 16:20:51 -05:00
David Giardi
f63728cb9f
Fix item positioning & pointer detection areas of ItemList
2024-02-27 20:03:10 +01:00
Mikael Hermansson
f7c1c83daa
Fix crash when selecting re-added `Tree` item
2024-02-27 16:34:15 +01:00
Rémi Verschelde
4a4937318b
Merge pull request #88825 from adamscott/add-create-folder-icon
...
Add create folder icon
2024-02-27 10:18:13 +01:00
Adam Scott
fd3666298c
Add create folder icon
2024-02-26 09:04:24 -05:00
Rémi Verschelde
7e567c4777
Merge pull request #88615 from Rindbee/add-h_separation-between-icons-in-CheckButton-and-CheckBox
...
Add a `h_separation` between icons in `CheckButton`/`CheckBox`
2024-02-26 10:48:54 +01:00
bruvzg
dad4aae386
[TextEdit] Add support for optional wrapped line indentation.
2024-02-26 08:20:14 +02:00
Robert Yevdokimov
13e82094ee
Remove word duplicates in comments and strings, and fix casing and punctuation
2024-02-23 17:28:28 -05:00
Mounir Tohami
7884d63281
Fix PopupMenu doesn't respect it's ScrollContainer's margins
2024-02-23 15:51:47 +02:00
Rémi Verschelde
12817f2993
Merge pull request #87025 from bruvzg/button_wrap
...
[Button] Add autowrap feature.
2024-02-23 11:29:32 +01:00
Rémi Verschelde
42a15bcc49
Merge pull request #85477 from KoBeWi/submenus_that_shall_not_be_named
...
Add methods to add submenus without using names
2024-02-23 11:29:28 +01:00
Rémi Verschelde
3ce9ae71fc
Merge pull request #84906 from /fix-some-defvals
2024-02-23 11:29:22 +01:00
Raul Santos
5ba92e5a57
Fix some DEFVALs to use the right type
...
- Use `StringName()` in DEFVAL for StringNames.
- Use `Variant()` in DEFVAL for Variants.
2024-02-23 01:50:18 +01:00
Rémi Verschelde
213c835cde
Merge pull request #85017 from Geometror/vs-redesign
...
Redesign the graph editor for visual shaders
2024-02-22 23:34:19 +01:00
Hendrik Brucker
02a33b67a8
Redesign the graph editor for visual shaders
2024-02-22 20:40:09 +01:00
kobewi
aeec3c1309
Add methods to add submenus without using names
2024-02-22 15:13:53 +01:00
Rémi Verschelde
a246a4b523
Merge pull request #87967 from jsjtxietian/set_item_submenu
...
Fix `set_item_submenu` infinite recursion crash
2024-02-22 14:39:06 +01:00
Rémi Verschelde
0a3f162f17
Merge pull request #88494 from AThousandShips/tab_fix
...
Fix error spam when adding tabs to `TabBar` without deselect
2024-02-22 11:23:15 +01:00
bruvzg
00480fc818
[Button] Add autowrap feature.
2024-02-22 12:11:58 +02:00
jsjtxietian
3525972bc7
Fix `set_item_submenu` infinite recursion crash
2024-02-22 12:37:50 +08:00
风青山
5de496d3b0
Add a `h_separation` between icons in `CheckButton`/`CheckBox`
...
Previously, the `h_separation` between internal elements and custom elements
was added when `text` was not empty. That is, this `h_separation` does not
exist when there is a valid custom `icon` but `text` is empty.
Now, the `h_separation` between the internal element and the custom element
is added when the internal element and any custom element exist (both width
are greater than `0`).
2024-02-21 17:53:07 +08:00
A Thousand Ships
a56c03d495
Fix error spam when adding tabs to `TabBar` without deselect
...
`current` was allowed to be `-1` when deselection was disabled, causing
errors in other methods when updating the size.
2024-02-20 23:38:20 +01:00
Rémi Verschelde
6037500219
Merge pull request #69032 from KoBeWi/check_every_changed_setting_in_every_group_everywhere()
...
Use `check_changed_settings_in_group()` everywhere
2024-02-20 19:34:30 +01:00
Michael Alexsander
aa258c6c12
Fix `RichTextLabel`'s tag stack being overridden on translation change
2024-02-20 12:19:53 -03:00
Rémi Verschelde
8f1915eb90
Revert "Fix selecting popup menu items on mouse release"
2024-02-20 10:05:41 +01:00
kobewi
a031911c82
Use check_changed_settings_in_group() everywhere
2024-02-19 21:34:45 +01:00
Rémi Verschelde
a92921ae49
Merge pull request #88479 from passivestar/lineedit-delete-with-selection
...
Fix `LineEdit` delete all the way to the left/right when something is selected
2024-02-19 10:43:58 +01:00
passivestar
c2a4a0d4cb
Fix `LineEdit` delete all the way to the left/right when something is selected
2024-02-18 11:58:37 +04:00
jsjtxietian
b7028e5f94
Tweak property order in the inspector for TabBar
2024-02-18 12:54:51 +08:00
Rémi Verschelde
21f0529aa9
Revert "Update Node::get_configuration_warnings signature"
...
This reverts commit d3852deaa4
.
2024-02-17 19:03:21 +01:00
Rémi Verschelde
02f4a66c1f
Merge pull request #88145 from Ratamacue9112/tweak-option-button-property-order
...
Tweak property order in the inspector for OptionButton
2024-02-17 18:31:47 +01:00
Ratamacue9112
45b9cbd904
Tweak property order in the inspector for OptionButton
2024-02-17 11:03:16 +00:00
Michael Alexsander
7b42c24550
Make auto translation inheritable
2024-02-15 16:51:19 -03:00
David Giardi
c892fd8691
Fix ItemList click detection gaps
2024-02-15 12:16:31 +01:00
Rémi Verschelde
92951b0295
Merge pull request #86952 from ryevdokimov/fix-selecting-popup-menu-items-on-mouse-release
...
Fix selecting popup menu items on mouse release
2024-02-14 10:59:40 +01:00
Mounir Tohami
fdba051a40
Fix `TabBar` size when theme changes
2024-02-13 18:04:31 +00:00
Rémi Verschelde
ace0aeaf4f
Merge pull request #88265 from Calinou/tree-fix-recursive-expand-collapse-shortcuts
...
Fix recursive Tree expand/collapse shortcuts not working
2024-02-13 17:24:25 +01:00
Rémi Verschelde
40f6dcd4d3
Merge pull request #88162 from KoBeWi/PropertyListHelper_strikes_again
...
Add PropertyListHelper to PopupMenu
2024-02-13 17:24:22 +01:00