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