398utubzyt
aac2dfc1b4
Snap CharFX transforms to pixels when enabled
2023-07-20 06:01:08 -07:00
unknown
cfe98c57b9
Add drag and drop option for line edit and rich text label
2023-07-19 22:18:34 -04:00
NL
a77d8b3eb5
Check FLAG_POPUP to close an AcceptDialog when parent is focused
2023-07-19 16:06:02 +02:00
Yuri Sizov
e8aa8c17d2
Merge pull request #79574 from bruvzg/win_nat_d
...
[Windows] Implement native file selection dialog support.
2023-07-18 19:04:40 +02:00
bruvzg
d3ca91ad6a
[Windows] Implement native file selection dialog support.
2023-07-18 17:23:58 +03:00
Markus Sauermann
e6386bc843
Make SubViewportContainer
event propagation aware of focused Control
...
Propagate `InputEvents` without position either
- during the Input-stage, when it has focus or
- during the Unhandled-Input-stage, otherwise
This makes sure that Gui-Input happens in the correct order.
Move "Unhandled key Input" handling before "Unhandled Input" handling,
so that Unicode input with Alt / Ctrl modifiers are sent to the nodes
in the correct order.
Change the default focus mode of `SubViewportContainer` from
`FOCUS_NONE` to `FOCUS_CLICK`, to automatically remove focus from
other `Control`-nodes, when clicking inside a `SubViewport`.
2023-07-17 22:38:35 +02:00
kobewi
de4a3fa151
Unify and streamline connecting to Resource changes
2023-07-17 19:35:57 +02:00
Yuri Sizov
5954c58ee1
Merge pull request #79494 from timothyqiu/no-longer
...
Update OptionButton min size when disabling Fit to Longest Item
2023-07-17 19:12:03 +02:00
Hendrik Brucker
a29a680920
Extract StyleBoxFlat, StyleBoxTexture and StyleBoxLine in their own file
2023-07-17 13:25:00 +02:00
Haoyu Qiu
5384c1a579
Update OptionButton min size when disabling Fit to Longest Item
2023-07-15 11:10:23 +08:00
Hendrik Brucker
7e21eb7e00
Extract and reorganize texture resource classes
2023-07-14 20:04:21 +02:00
Yuri Sizov
7b0f8d76ad
Merge pull request #79455 from timothyqiu/button-clip-internal
...
Fix Button clipping when internal margins exist
2023-07-14 18:50:15 +02:00
Yuri Sizov
5c56206e6c
Merge pull request #79011 from bruvzg/pop_all
...
[RTL] Add `pop_all`, `push_context` and `pop_context` methods, and use it for `print_rich` to avoid unclosed tags.
2023-07-14 18:49:21 +02:00
Haoyu Qiu
71430cdd48
Fix Button clipping when internal margins exist
2023-07-14 13:59:16 +08:00
bruvzg
4790da7900
[macOS] Implement optional native file selection dialog support for sandboxed apps.
2023-07-12 22:36:24 +03:00
Yuri Sizov
f49169d6d6
Merge pull request #79037 from dinoplane/move-cached-values
...
Move cached values into `color_mode.cpp` and apply fixes to OKHSL
2023-07-12 21:02:47 +02:00
S.V.I. Vilcrow
56e2fad319
Fixed the jumping to function definition using 'Ctrl+LMB' and the 'Lookup Symbol' button.
2023-07-12 21:30:35 +03:00
Yuri Sizov
5058831cf6
Merge pull request #78100 from KoBeWi/commit_necromancy
...
Use S, V in hue bar of ColorPicker
2023-07-12 17:15:03 +02:00
Yuri Sizov
1978b7c717
Merge pull request #77858 from kinami-imai/expose_videostreamplayer_video_length
...
Expose VideoStreamPlayer video length
2023-07-12 17:14:44 +02:00
Yuri Sizov
216aa450a6
Merge pull request #77857 from kinami-imai/add_loop_property_to_videostreamplayer
...
Add `loop` property to VideoStreamPlayer
2023-07-12 17:14:38 +02:00
Yuri Sizov
5167bed9f0
Merge pull request #79053 from Daylily-Zeleen/daylily-zeleen/rich_text_label_missing_default_method_value
...
Bind missing default value for `RichTextLabel` methods.
2023-07-12 15:09:41 +02:00
Yuri Sizov
509645b038
Merge pull request #78777 from YeldhamDev/tab_hover_fix
...
Fix delay on tab resizing when (un)hovering tabs
2023-07-12 15:09:31 +02:00
Yuri Sizov
5dff3c4484
Merge pull request #78538 from Sauermann/fix-code-simplifications
...
Remove unnecessary value assignments throughout the codebase
2023-07-12 15:09:26 +02:00
Yuri Sizov
631d51c46c
Merge pull request #78476 from Sauermann/fix-embedded-safe-area
...
Embedded Popups store their safe_rect in their embedder
2023-07-12 15:09:20 +02:00
Yuri Sizov
b54d6cf466
Merge pull request #78393 from AThousandShips/tree_tooltip
...
Add ability to set the tooltip text of a `TreeItem` button
2023-07-12 15:09:09 +02:00
Yuri Sizov
7550b02dfc
Merge pull request #77117 from Calinou/richtextlabel-add-pulse-effect
...
Add a `[pulse]` built-in effect to RichTextLabel
2023-07-12 15:08:43 +02:00
Yuri Sizov
b4a11294e6
Merge pull request #75460 from joao-pedro-braz/add_new_item_stylebox_to_the_tree_control
...
Add a new "inner_item_margin" Theme constant to the Tree control
2023-07-12 15:08:36 +02:00
kleonc
30a9c90785
Hide/show AcceptDialog's button spacer on button visibility changed
2023-07-11 12:18:46 +02:00
Daylily-Zeleen
4029a05fae
Add missing default value for RichTextLabel method
2023-07-11 11:17:45 +08:00
Hendrik Brucker
662d8c76b3
Remove GraphNode's comment property and related functionality
...
(this functionality will be reintroduced in a new and more flexible way)
2023-07-11 02:05:25 +02:00
Yuri Sizov
bbb11004e7
Merge pull request #78776 from NiskashY/fix-disabled-slider-highlighting
...
Fix disabled slider highlighting
2023-07-10 12:32:39 +02:00
bruvzg
5216a08617
[RTL] Add pop_all
, push_context
and pop_context
methods, and use it for print_rich
to avoid unclosed tags.
2023-07-09 19:53:15 +03:00
Rémi Verschelde
1017077b7f
Merge pull request #79211 from HolonProduction/file-dialog-button-update
...
Update FileDialog button activity when file_mode is changed.
2023-07-09 12:24:35 +02:00
Rémi Verschelde
6ab727edc2
Merge pull request #78835 from Dragoncraft89/patch-1
...
Fix invalid minimum size for translated messages in option button
2023-07-08 18:19:25 +02:00
Rémi Verschelde
a12d9df9e1
Merge pull request #71024 from marzecdawid/better-cursor-behaviour-in-tree-with-ctrl
...
Fix cursor behavior for multiselect in Tree while holding CTRL
2023-07-08 18:14:48 +02:00
HolonProduction
cfac7c9a9a
Update FileDialog button activity when file_mode is changed.
2023-07-08 18:10:57 +02:00
NiskashY
4394936392
Fix disabled slider highlighting
2023-07-08 00:42:57 +03:00
Markus Sauermann
bfa7497c1b
Revert "Fix focusloss of non-exclusive AcceptDialog
with close_on_escape
"
...
This reverts commit 7f547fcf09
.
2023-07-06 01:04:16 +02:00
MewPurPur
3d128f67a4
Rename button_pressed bindings to avoid shadowing
2023-07-05 18:38:18 +02:00
dinoplane
3f02b0cfde
Moved HSV and OKHSL caching logic into color_mode
2023-07-05 07:15:58 -07:00
Rémi Verschelde
1b38e9258b
Merge pull request #78975 from YuriSizov/rtl-fix-refactoring-typo
...
Prevent crash when processing line caches in `RichTextLabel`
2023-07-03 15:26:31 +02:00
Yuri Sizov
40f2227a65
Prevent crash when processing line caches in RichTextLabel
2023-07-03 13:33:51 +02:00
bruvzg
21365606d3
[RTL] Fix multithreaded scrollbar visibility update 2.
2023-07-03 10:34:42 +03:00
Florian Kothmeier
c33748d954
Fix invalid minimum size for translated messages in option button
2023-06-29 15:01:36 +02:00
bruvzg
ec97c7c1d9
[RTL] Fix multithreaded scrollbar visibility update.
2023-06-29 15:37:54 +03:00
Michael Alexsander
7ffad29df8
Fix delay on tab resizing when (un)hovering tabs
2023-06-27 20:33:13 -03:00
Hendrik Brucker
1e8ca95cdc
[GraphEdit] Fix port hotzones at zoom levels other than 100%
2023-06-25 17:13:53 +02:00
Rémi Verschelde
f24f615b04
Merge pull request #78556 from QbieShay/qbe/hotzonehotfix
...
Fix regression in visual nodes hotzones
2023-06-23 08:47:56 +02:00
QbieShay
237e3c6099
Fix regression in visual nodes hotzones
2023-06-22 19:03:17 +02:00
dinoplane
e11e9d2b9a
Use cached saturation for color picker when value is 0
2023-06-21 15:18:20 -07:00
Markus Sauermann
890fdd56df
Code simplifications
...
CPPcheck found most of them.
no need to assign the variable twice:
- AnimationTrackEditTypeAudio
- SSEffects
variable is assigned in all if-else clauses:
- EditorHelp
- AndroidInputHandler
- MenuBar
- ShaderCompiler
same if clause:
- ItemList
clearing an empty bitfield has no effect:
- Viewport
2023-06-21 22:37:26 +02:00
Dawid Marzec
9abbdea95e
Fix cursor behaviour in Tree while holding CTRL
2023-06-21 20:44:29 +02:00
MewPurPur
6e182d41f4
Hide breakpoint indicator when mouse leaves CodeEdit
2023-06-21 11:30:40 +02:00
Markus Sauermann
a12627765f
Embedded Popups store their safe_rect in their embedder
...
Storing it in the DisplayServer didn't make sense in this case,
because the embedded window is unknown to the DisplayServer.
2023-06-20 18:06:26 +02:00
kobewi
9c3afcc898
Fix ColorPicker margin theme property
2023-06-20 12:47:52 +02:00
Rémi Verschelde
94a4da9de6
Merge pull request #78236 from AThousandShips/nine_tex_fix
...
Make `NinePatchRect` listen to texture changes
2023-06-20 09:21:15 +02:00
Rémi Verschelde
0653f7a5b0
Merge pull request #77722 from ApplecrispEric/drag-drop-autocomplete
...
Cancel autocomplete after initiating drag
2023-06-20 09:20:52 +02:00
Ninni Pipping
4492f7ff97
Make NinePatchRect
listen to texture changes
2023-06-20 08:40:35 +02:00
Eric Brown
42bc437615
Changed autocomplete to cancel when the user begins a drag
2023-06-19 15:44:13 -07:00
Ninni Pipping
75b355ee99
Add ability to set the tooltip text of a TreeItem
button
2023-06-18 11:14:32 +02:00
Markus Sauermann
7f547fcf09
Fix focusloss of non-exclusive AcceptDialog
with close_on_escape
...
Fix, that a non-exclusive AcceptDialog with `close_on_escape == true`
gets closed, when the parent window of the parent window receives focus.
There is no need to rely on the focus of the parent visible window.
Instead check if the AcceptDialog loses focus.
2023-06-17 11:05:36 +02:00
Rémi Verschelde
c65aba7aff
Merge pull request #78321 from ajreckof/fix-wrong-alphabetical-order-in-autocompletion-sorting
...
Fix wrong order in autocompletion sorting with empty string to complete.
2023-06-16 16:52:27 +02:00
ajreckof
e9a2060b27
Fix wrong alphabetical order in autocompletion sorting.
...
Co-Authored-By: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2023-06-16 14:04:07 +02:00
Markus Sauermann
390aa2a565
Fix ButtonGroup unpressing
...
It was possible to unpress a button group that had `allow_unpress = false`
using shortcuts.
Adjust `BaseButton::shortcut_input` to use the same logic as
`BaseButton::on_action_event`.
2023-06-16 00:15:37 +02:00
Rémi Verschelde
a48285db7b
Merge pull request #78269 from Sauermann/fix-menubutton-popup-position
...
Fix position and size of MenuButton popup
2023-06-15 16:08:40 +02:00
Rémi Verschelde
95a9089fdd
Merge pull request #74813 from bruvzg/text_edit_autowrap
...
[TextEdit] Expose all auto-wrap modes.
2023-06-15 16:08:21 +02:00
Markus Sauermann
d41665eb5e
Fix position and size of MenuButton popup
...
Use the same logic as in OptionButton::show_popup
2023-06-15 15:29:50 +02:00
Rémi Verschelde
6587a81910
Merge pull request #78268 from Sauermann/fix-remove-unused-variable
...
Remove unused variable `PopupMenu::parent_rect`
2023-06-15 15:26:36 +02:00
Markus Sauermann
840e2b14f3
Remove unused variable PopupMenu::parent_rect
...
This private variable is not read anywhere.
Remove it and all places, where it is set.
2023-06-15 12:08:47 +02:00
bruvzg
cda9cd7587
[RTL] Fix multithreaded resizing.
2023-06-14 23:15:16 +03:00
bruvzg
38b8e23206
[RTL] Fix parsing tags with multiple features.
2023-06-13 15:24:30 +03:00
bruvzg
75e6ec8874
[TextEdit] Expose all auto-wrap modes.
2023-06-13 10:28:27 +03:00
bruvzg
488626701d
Fix editor log flicker.
2023-06-12 20:15:23 +03:00
Rémi Verschelde
fa536571a4
Merge pull request #77667 from RedworkDE/text-edit-selection-crash
...
Fix crash when selecting lines in text edit
2023-06-12 17:10:04 +02:00
Rémi Verschelde
b02dd1c2a3
Merge pull request #78092 from KoBeWi/must_protecc_selection
...
Preserve selection when focusing SpinBox
2023-06-12 14:14:44 +02:00
Rémi Verschelde
1b5620d2a9
Merge pull request #78009 from YuriSizov/gui-gently-massage-minimal-size
...
Ensure that controls update all their sizing information when required
2023-06-12 14:14:20 +02:00
Rémi Verschelde
9fdce6635b
Merge pull request #77880 from AThousandShips/get_node_fix
...
Use `get_node_or_null` when null checks are present
2023-06-12 11:39:54 +02:00
dinoplane
a374c7d519
Use cached hue for color picker when saturation is 0
...
Fixes #76968 .
2023-06-12 10:59:33 +02:00
kobewi
e22319ced3
Use S, V in hue bar of ColorPicker
2023-06-11 01:37:29 +02:00
kobewi
968c5f6247
Preserve selection when focusing SpinBox
2023-06-10 21:29:24 +02:00
Ninni Pipping
0c16082e1e
Use get_node_or_null
when null checks are present
...
Avoids duplicate or unnecessary errors
2023-06-10 13:22:56 +02:00
Rémi Verschelde
37d1dfef9d
Merge pull request #78000 from RandomShaper/let_users_mess_up
...
Let user scripts disable thread safety checks
2023-06-10 12:12:13 +02:00
Ninni Pipping
dcd2b883eb
Use NULL instead of COND checks when appropriate
...
Restricted to scene
2023-06-10 08:56:30 +02:00
Pedro J. Estébanez
2b001db76e
Let user scripts disable thread safety checks
2023-06-09 18:24:01 +02:00
Rémi Verschelde
4d05edd75d
Merge pull request #77901 from bruvzg/rtl_canvas
...
Fix incorrect node placement in RTL layout when parent is non-Control canvas item.
2023-06-09 12:15:32 +02:00
bruvzg
b23f259e67
[Label] Add support for tab stops.
2023-06-09 12:59:37 +03:00
Rémi Verschelde
577ab3c565
Merge pull request #75746 from ajreckof/order_autocomplete
...
Sort code autocompletion with rules
2023-06-08 18:14:31 +02:00
Yuri Sizov
ccaab0e590
Ensure that controls update all their sizing information when required
2023-06-08 17:41:03 +02:00
Rémi Verschelde
bd62d8ee10
Merge pull request #77802 from dalexeev/tree-add-autowrap-mode
...
Tree: Add ability to configure text autowrap mode for individual cells
2023-06-07 11:02:02 +02:00
Yuri Sizov
df26066ce9
Revert "Make sure that data.last_minimum_size
is consistent with get_combined_minimum_size()
at the same time"
...
This reverts commit 594852caf1
.
2023-06-06 20:55:03 +02:00
Rémi Verschelde
46c4068821
Merge pull request #77170 from lawnjelly/scu_build_master
...
Add support for single compilation unit builds
2023-06-06 17:58:09 +02:00
lawnjelly
b69c8b4791
Single Compilation Unit build.
...
Adds support for simple SCU build (DEV_ENABLED only).
This speeds up compilation by compiling multiple cpp files within a single translation unit.
2023-06-06 15:36:51 +01:00
Yuri Sizov
b99a02387d
Merge pull request #77856 from kinami-imai/videostreamplayer_seamless_loop
...
Fix VideoStreamPlayer seamless loop
2023-06-06 12:36:48 +02:00
bruvzg
66ea0006e0
Fix incorrect node placement in RTL layout when parent is non-Control canvas item.
2023-06-06 11:49:05 +03:00
今井きなみ
15719e278b
Add loop property to VideoStreamPlayer
2023-06-05 21:37:11 +02:00
今井きなみ
e3da9176a0
Expose VideoStreamPlayer video length
2023-06-05 21:30:38 +02:00
今井きなみ
270bc93b95
Fix VideoStreamPlayer seamless loop
2023-06-05 21:17:48 +02:00
Hugo Locurcio
70e6c3cbb0
Add a [pulse]
built-in effect to RichTextLabel
...
In games, blinking text is one of the more frequently used animations.
It can be (sparingly) used to bring attention to important messages
in a chat log or inventory tooltip, for instance.
This effect accepts the following options:
- `freq`: How fast text blinks (higher is faster).
- `color`: The target color multiplier for blinking.
The default mostly fades out text, but not entirely (for better accessibility).
- `ease`: The easing function exponent to use.
Negative values provide in-out easing, which is why `-2.0` is the default.
2023-06-05 18:45:00 +02:00
Rémi Verschelde
e7d2e49688
Merge pull request #77765 from Sauermann/fix-acceptdialog-event-handled
...
Fix that button presses don't set event as handled in AcceptDialog
2023-06-05 18:27:33 +02:00
Rémi Verschelde
f00c971b81
Merge pull request #63168 from Levrault/master
...
Fix: InputEventJoypadMotion should trigger only once on a vslider
2023-06-05 18:04:39 +02:00