Marius Hanl
1be818c478
Fix RichTextLabel: BBCode [color] tags are not counting in font char spacing
...
Each BBCode tag is drawn individually, so we have to add the character spacing manually.
2023-03-12 13:11:00 +01:00
634bdfbb69
Ported: Changed line_edited_from(from) to lines_edit_from(from, to)
...
- Paulb23
907f9f2a84
2023-02-21 12:37:52 +01:00
c356806ebf
Ported: Extract Syntax highlighting from TextEdit and add EditorSyntaxHighlighter
...
- Extacted all syntax highlighting code from text edit
- Removed enable syntax highlighting from text edit
- Added line_edited_from signal to text_edit
- Renamed get/set_syntax_highlighting to get/set_syntax_highlighter
- Added EditorSyntaxHighligher
- Paulb23
bc4cee4458
2023-02-21 01:30:59 +01:00
0edf8fe956
Ported: Convert syntax highlighters into a resource
...
- Paulb23
2f1080be9b
2023-02-20 14:51:10 +01:00
Jóhannes Gunnar Þorsteinsson
d19c1fedfb
Add independent spinbox arrow step precision
...
Backported from the `master` branch, with a property hint added.
2023-02-07 02:51:05 +01:00
3bd027f068
Ported: Add dumb theme item cache to Control
...
- YuriSizov, jordo
1647f4d85e
2023-02-07 02:11:52 +01:00
19baf2133a
Ported: PopupMenu rework and enhancements
...
Many scrolling behaviour improvements and the ability to limit popup size.
- EricEzaM, rsubtil
6a5992c9f1
2023-02-07 01:59:27 +01:00
OsakiTsukiko
536884aa68
Fix RichTextLabel discards appended BBCode text on window resize when using DynamicFont
2023-01-16 13:54:31 +01:00
Haoyu Qiu
71c28de437
Fix Tree overflow without scrolling being enabled
2023-01-16 13:53:12 +01:00
2cd4e4d828
Renamed Set to RBSet.
2023-01-15 19:42:08 +01:00
1b0aac6028
Renamed Map to RBMap.
2023-01-15 19:12:50 +01:00
b8009c85f4
Ported: Add vector value linking - KoBeWi and timothyqiu
...
9499ebecee
2022-12-22 18:50:17 +01:00
Paweł Fertyk
845b70faad
Fix get_visible_line_count in RichTextLabel with newlines
...
Fixed #59359 .
2022-12-22 14:36:03 +01:00
Zak
b5c01b8703
Add uri
property for LinkButton
...
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
(cherry picked from commit d73a9b56b08864b5e5ccf0df910190b064ff7463)
2022-12-22 14:23:04 +01:00
Haoyu Qiu
e75af6af1d
Fix crash after executing ItemList.set_icon_scale
...
(cherry picked from commit 8d0fa193c344be8e1ec801b1a45341801b80a5f8)
2022-12-22 13:53:53 +01:00
Hugo Locurcio
b1c99f29e3
Fix infinite loop when calling Control.popup_centered_minsize()
...
Co-authored-by: sriramun <sriramun2@gmail.com>
(cherry picked from commit 08e804b3b718862e92e6b296b914e3829e43717e)
2022-12-22 13:51:14 +01:00
Dawid Marzec
289b16fa7b
Fix errors while deselecting all tree items; issue #65185
...
(cherry picked from commit d4d5df2314208a99c589456a75299a334672acd2)
2022-12-22 13:44:05 +01:00
Phnix
6040a9b37c
incorrect range value with min value and step
...
If the minimum value and the steps are greater than 0, the value will not be calculated correctly.
Co-Authored-By: Astral-Sheep <109028693+Astral-Sheep@users.noreply.github.com>
(cherry picked from commit fe1f8443a411c64eb8a2934512ab982f3df3d550)
2022-12-12 12:13:15 +01:00
Haoyu Qiu
0a11c9e1bf
Fix TreeItem.remove_child not updating Tree immediately
2022-12-11 19:13:20 +01:00
Dawid Marzec
03ae12b069
Remove auto selecting the first file for FileDialog with Save file mode selected
...
(cherry picked from commit 5cd30be56d1d34d84bd423fb99f8fa03edbfe75e)
2022-12-11 19:04:39 +01:00
Micky
a0c1c54db1
Fix ColorPicker always emitting color_changed on html submit
...
The color change was always emitted when the the modal was closed, even if it was exactly the same as before.
(cherry picked from commit 544727ac1ea7616c9f44116360d038cfcda5f763)
2022-11-30 19:10:54 +01:00
4b3c8aed30
Now ColorSelectorButton can work both in toggle mode, and in normal mode.
2022-11-17 23:04:16 +01:00
f72fa755e0
Added a new ColorSelectorButton. Same idea as the ColorPickerButton, except left clicking it emits a pressed signal, right clicking it opens a color picker.
2022-11-17 17:42:07 +01:00
arkology
76909c0d83
AtlasTexture in radial modes of TextureProgress
2022-11-13 00:52:54 +01:00
kobewi
335b7e6cde
Hide text of RichTextLabel if BBCode is enabled
2022-11-13 00:24:35 +01:00
Waridley
16285d52a6
Support multiline strings in buttons
2022-10-08 17:06:51 +02:00
Abhinav Chennubhotla
cbdc659738
Fix code folding icon color not matching defined color
...
Cherrypick of #58457 in master
Caused by reusing icons from the main editor in the code editor. These
icons were converted based on the main editor theme and not the code
editor theme.
- Create new icons for use specifically in the code editor
- Add these icons to the exceptions when converting dark theme icons
to light theme automatically
- Change the default value of the code folding color to match previous
color
- Code folding icon is now pure white by default to correctly match
the color defined in settings
2022-09-16 23:38:34 +02:00
lawnjelly
2b70218bd1
Fix uninitialized data reads in Input
...
Found by Valgrind.
2022-09-16 23:35:56 +02:00
lawnjelly
264627d11b
FlowContainer fix uninitialized data
...
This uninitialized data was finding its way into the renderer.
2022-09-16 23:31:58 +02:00
Maxim Kulkin
4237a6501f
Add GraphNode 'selected' and 'unselected' signals, simplify GraphEdit
...
Backport of the fix from master to 3.x
2022-09-16 23:29:52 +02:00
kobewi
8474965b10
Hide prefix/suffix on SpinBox focus
2022-09-16 22:33:27 +02:00
Michael Alexsander
bce30062a5
Fix some corner cases in the Menu/OptionButton
item auto-highlight
2022-09-16 22:04:23 +02:00
Michael Alexsander
7fd1e3b8ac
Fix crash when pressing up on an empty PopupMenu
2022-09-16 22:01:53 +02:00
Michael Alexsander
db8e21638a
Fix ItemList
selection visual when the scrollbar visibility changes
...
(cherry picked from commit e298144a41338d80b5f0090ce8f28aef888c13dd)
2022-09-16 21:18:10 +02:00
Michael Alexsander
62fdf73348
Expose set/get_tab_button_icon()
to scripting
2022-09-16 19:39:10 +02:00
Michael Alexsander
a557f22f1d
Make Menu/OptionButton
item auto-highlight behave better
2022-09-16 13:16:42 +02:00
e2d42db711
Also renamed the files.
2022-08-19 21:24:36 +02:00
cffe742085
Renamed the VisualServer to RenderringServer like in Godot4, as I think it's a lot better name for it. I did not yet rename the files.
2022-08-19 20:50:20 +02:00
58da70524b
Ported: Add support for multiple virtual keyboard types - brianwinterpixel
...
ce24b48e50
2022-08-19 16:18:53 +02:00
685f3cb495
Ported: remove redundant check preventing checkbox theme style to apply hover_pressed. - Piralein
...
36ff8962cc
2022-08-19 02:17:05 +02:00
4c4e19223e
Added _theme_ infix to the theme helper methods in Control.
2022-08-17 20:57:16 +02:00
99e94b08c4
Moved base input related classes to core/input.
2022-08-17 17:02:24 +02:00
686663d3e4
Moved around more classes in core.
2022-08-17 16:01:01 +02:00
04feb63860
Moved Engine and projectSettings.
2022-08-17 15:35:28 +02:00
220b2db443
Moved String and related classes under a string folder in core.
2022-08-17 14:19:55 +02:00
dc9cc716c7
Moved Object related classes under core/object.
2022-08-17 13:45:14 +02:00
e71e3ed897
Now Vector4, Vector4i, Projection, PoolVector4Array, PoolVector4iArray, are built in variant types. Also reordered the Variant's Type enum, renamed _RID in it to RID, fixed a few smaller issues and removed some very old compat code.
2022-08-16 21:55:56 +02:00
87149557b2
Fix sign comparison warning.
2022-08-15 23:12:44 +02:00
220954cf08
Backported most of the improvements to String from Godot4.
2022-08-15 22:54:03 +02:00
Yuri Sizov
eed219ada1
Fix theme propagation for children of top level controls
2022-08-07 15:34:47 +02:00
249dd4d661
Updated property hints for variant arrays.
2022-07-30 21:58:40 +02:00
Thakee Nathees
cb93141c27
Fix FileDialog file name autocompletion with filters
...
Fixes #38195 .
(cherry picked from commit 446f1b70522d86b9afe93b6543028cbab60ffb61)
2022-07-29 19:58:34 +02:00
Haoyu Qiu
f0f2a9d960
Fix LineEdit caret after using arrow key to deselect
2022-07-29 19:56:42 +02:00
kobewi
0da3dcc5b4
Fix find_next_valid_focus() freeze
...
(cherry picked from commit 8d62b736b2fceb60a76ff916c8f904e25fece832)
2022-07-29 16:33:45 +02:00
kobewi
8e9782ac76
Fix find_next_valid_focus() freeze
...
(cherry picked from commit d9ede52ded9eb7ef6ccb7c704f1d9ccbe7f23861)
2022-07-29 16:31:09 +02:00
648b9fce40
Ported: Add an option to drag'n'drop selected text in TextEdit - ConteZero
...
a13b3028a2
2022-07-29 16:29:53 +02:00
152f9728b0
Ported: [Windows, 3.x] Add support for handling network share paths. - bruvzg
...
11a7997a67
2022-07-28 19:33:43 +02:00
kobewi
69976cd190
Disable scroll when dragging at edges of TextEdit
2022-07-28 19:23:36 +02:00
bruvzg
9dbb96dc1d
Improve RTL table fill.
2022-07-28 19:21:13 +02:00
43131ad4cb
Ported: Add readable export errors. Add RTL image vertical alignment support. - bruvzg
...
f5fa1ca944
2022-07-28 18:40:46 +02:00
Michael Alexsander
b03af6e40e
Take into account the clear icon's size even when not visible in LineEdit
s
2022-07-28 13:43:20 +02:00
Michael Alexsander
9ffe4a2e51
Fix specific bug related to submenus in PopupMenu
2022-07-28 13:42:58 +02:00
Michael Alexsander
2ebc4905fc
Fix hover being drawn twice inside PopupMenu
s
2022-07-28 13:42:35 +02:00
Haoyu Qiu
2d6183beb7
Fix LineEdit clear button for asymmetric stylebox
2022-07-28 11:36:32 +02:00
kleonc
0c4799c45a
Allow changing exclusive
of already popped up Popup
2022-07-28 11:35:45 +02:00
kleonc
3dbf7c3d52
PopupMenu Fix hover stylebox overflowing horizontally
2022-07-28 11:34:22 +02:00
Aaron Record
54b02c41e6
Allow ScrollBar params of a ScrollContainer to be modified from _ready()
...
Cherrypicks b8610dbd3159985f007deb0424a64df386832d07
2022-07-28 10:18:48 +02:00
7fd0b29642
Ported: Backport Label3D node implementation and Sprite*3D material render priority. - bruvzg
...
dc6d8d6098
2022-07-27 23:40:35 +02:00
Haoyu Qiu
49b6f63f5f
Update last min size when Control becomes visible
...
(cherry picked from commit 4ac999cc3fa0d7740356aaafe7ab44da2b16e7dd)
2022-07-27 23:11:43 +02:00
c3bb14f49e
Ported: add check for selection when try to push a meta.
...
Add a check for when we select a text but end on a link. Before it would act as if we just click an link, but now it changes it so if we click-drag over a link, we could select it (and not move to other page).
- danielkariv
47ead8504a
2022-07-27 23:10:55 +02:00
53f8707713
Ported: Add node list param to GraphEdit::delete_nodes_request signal - Chaosus
...
32b9818965
2022-07-27 20:01:38 +02:00
Sergey Pershenkov
c819fe68dd
Return -1 from get_selected_id() when not selected
...
Partial cherry pick from 3b146c5eaa06d9f6827c651802b9fb2a9a1e013d
2022-07-27 19:49:47 +02:00
Rémi Verschelde
e81d1f010a
Revert invalid PopupMenu breaking change from #61102
...
Fixes #61179 .
2022-07-27 19:49:17 +02:00
52183f16da
Ported: Make various improvements to OptionButton
...
- Allow OptionButton selection to be set to -1 to signify no selection, both via API and in the editor.
- Reset OptionButton selection to -1 when the selected item has been removed.
- Fully convert PopupMenu to a zero-based ID system, which improves an inconsistency in generated IDs when making new items in the editor.
- okla
431c032d8c
2022-07-27 19:26:59 +02:00
Markus Sauermann
ee4f41951e
Distribute remaining pixel to expanding childs of GridContainer
...
(cherry picked from commit 6b3207644b8d2338a9a55f8cfeb0ec65f1cea207)
2022-07-27 19:12:28 +02:00
Hendrik Brucker
3585f416d4
Fix button icon expansion calculation with empty text
...
(cherry picked from commit c09a5e277410761733a59a2b207d7320131b2511)
2022-07-27 18:42:10 +02:00
FireForge
71d20ea670
Add interpolation modes to Gradient - Linear, Constant, and Cubic interpolation modes - Partial backport of #53321
2022-07-27 18:12:14 +02:00
Haoyu Qiu
390735e803
Fix tree button icon not centered vertically
2022-07-27 15:21:35 +02:00
Michael Alexsander
9af14c8d90
Add font_separator
to PopupMenu
2022-07-27 15:21:19 +02:00
Michael Alexsander
1e2c8637c2
Fix separator height influencing labeled variation in PopupMenu
2022-07-27 15:17:29 +02:00
bruvzg
814f76bf6b
Fixed implementation of RTL remove_line()
...
Co-authored-by: Eric M <itsjusteza@gmail.com>
2022-07-27 13:08:20 +02:00
Haoyu Qiu
7190c806ec
Fix Label autowrap for CJK text
2022-07-26 15:03:08 +02:00
Hugo Locurcio
4951e23481
Add a property hint for AspectRatioContainer's ratio
property
...
Zero or negative ratios are not valid, so the property hint prevents
choosing such values.
The property hint allows using 4 decimals so that common aspect ratios
like 16/9 can be specified with a good level of precision.
2022-07-26 15:02:39 +02:00
Michael Alexsander
691b99f40c
Draw relationship lines for items offscreen
2022-07-26 15:02:12 +02:00
Michael Alexsander
21d66d3a68
Fix GridContainer
not ignoring toplevel children
...
(cherry picked from commit 506d8ba526188bb683eeb4e4389c8bd4a18abab8)
2022-07-26 14:59:18 +02:00
58b8271bf4
Ported: Fixed #59985 leading spaces autowrap boundary problem
...
Bug problem:
No condition for when the first character of the label is a space character
Fix:
Added an IF condition for when the first character is a space character
The autowrap boundary treat this space character as another dummy word in the WordCache linked list and proceed to function normally, by detecting when line width is 0
- ZheisterCoding
c0513268bd
2022-07-26 12:56:16 +02:00
Haoyu Qiu
56fed34913
Fix undo history for function name autocompletion
2022-07-26 12:46:13 +02:00
Eric McGuirk
55ed3e573e
Fix toggling GraphEdit's minimap with minimap_enabled
...
Fixes #53831 .
(cherry picked from commit b1441bbcfce23a2a8dfd95779e3de4f20053e65c)
2022-07-26 12:37:32 +02:00
kobewi
0da6b17950
Fix GraphEdit's valid connections being reversed
...
(cherry picked from commit b29aff8dac9bf342e45e6b6332b5efa13af9fa26)
2022-07-26 12:37:15 +02:00
Haoyu Qiu
2aefcf5585
Consider chained operation when selecting text in TextEdit::undo()
...
(cherry picked from commit 8cefbfcf432ef6ed3879ee60bf500b52149f3e01)
2022-07-26 12:35:47 +02:00
8275f6b161
Ported: Add missing argument names in bindings - akien-mga
...
21c3048397
2022-07-25 23:51:34 +02:00
220b7e99be
Ported: [3.x] Add deselect() to RichTextLabel - ConteZero
...
5e714051ea
2022-07-25 22:01:26 +02:00
d1ddbecc54
Ported: [3.x] Expose get_selected_text in RichTextLabel - ConteZero
...
820728aa52
2022-07-25 21:53:36 +02:00
a43091d427
Ported: Add drag and drop to TextEdit, LineEdit, RichTextLabel - ConteZero
...
4167e98088
2022-07-25 20:32:14 +02:00
c8adff0f99
Ported:
...
Fix Right-Click clearing selection - ConteZero
57b616fb21
2022-07-25 19:55:26 +02:00
d85caf2c71
Ported:
...
[3.x] Add option to make selection unique - ConteZero
0ffacff998
2022-07-25 19:46:09 +02:00
Yuri Roubinsky
54b534c4a4
Add selection getter methods to LineEdit
...
Co-authored-by: Yuri Roubinsky <chaosus89@gmail.com>
2022-07-25 18:22:15 +02:00
Markus Sauermann
e1a8b0befe
Fix event transform in ViewportContainer
2022-07-25 18:13:25 +02:00
Haoyu Qiu
9e0a1c88a0
Add missing CheckBox & CheckButton editor icons
...
Co-authored-by: Silc 'Tokage' Renew <tokage.it.lab@gmail.com>
Co-authored-by: Yuri Sizov <yuris@humnom.net>
2022-07-25 18:12:28 +02:00
32f148ac0c
Mass replaced godot to pandemonium.
2022-03-23 20:46:05 +01:00