anazr9
b8bf2ec3cd
fixed crash with RichTextLabel [fill] tag #51968 by using 3.3 as reference
2021-08-22 14:17:01 +05:30
Rémi Verschelde
a67eaa67b0
Merge pull request #51732 from codecat/fix-caret-selection-3.x
...
Move cursor to edge of selection when moving caret left/right
2021-08-18 20:12:19 +02:00
Melissa Geels
6bf6d18ee1
Move cursor to edge of selection when moving caret left/right
...
This is to mimic the behavior of many third party text editors.
The reasons it's not doing it when moving by word is due to that
behavior being mostly the same on other editors.
This was backported to 3.x from pull request #51502 .
2021-08-18 14:28:57 +02:00
Rémi Verschelde
1de8f31448
CI: Upgrade Emscripten to 2.0.25
...
That's the version used by current containers for Godot 3.4.
Fixes a couple stray warnings that new Emscripten/LLVM catches.
2021-08-18 11:13:34 +02:00
Haoyu Qiu
5f316aa216
Improve Undo/Redo menu items
...
* Make Undo/Redo menu items disabled when clicking it does nothing.
* Context menu of `TextEdit`
* Context menu of `LineEdit`
* Editor's Scene menu
* Script editor's Edit menu and context menu (for Script and Text)
* Make editor undo/redo log messages translatable.
* Mark `UndoRedo`'s `has_{un,re}do()` methods as `const`.
* Expose `TextEdit`'s `has_{un,re}do()` to scripts since `{un,re}do()` are already available.
2021-08-18 00:46:51 +08:00
Rémi Verschelde
7722eea613
Merge pull request #51252 from kleonc/tab_container-fix-disconnecting-errors-3x
...
[3.x] TabContainer: Fix error on removing top-level Control child, Remove _get_tab method
2021-08-16 10:35:45 +02:00
Melissa Geels
ac40f5bb75
Triple click in text editor now uses last mouse position for validity
...
Previously, you would be able to double click a word, followed by
single-clicking another word on the same line, which would select the
entire line. Now, it will only select the whole line if the mouse
position has remained the same after the double click. This mimicks the
behavior in most third party text editors.
Fixes #51312 .
(cherry picked from commit 408401a642
)
2021-08-12 16:43:22 +02:00
Paulb23
ea0456679a
Redraw on item list custom bg/fg colour change
...
(cherry picked from commit 738b0fdae5
)
2021-08-12 16:42:16 +02:00
Jason Knight
955f2ba75e
Removed the alteration of status.hovering during Focus Enter and Focus Exit events.
...
This is incorrect and not fully implemented, and results in inconsistency in the UI and in the hovering variable.
(cherry-picked from commit edcbe88389
)
2021-08-12 16:37:35 +02:00
Yuri Sizov
71ec6dba67
Improve Control's theme item methods documentation
2021-08-06 22:31:58 +03:00
kleonc
063d1a5d53
TabContainer: Fix error on removing top-level Control child, Remove _get_tab method
2021-08-04 22:10:06 +02:00
Yuri Sizov
e7bd53b690
Make theme item overrides more obvious in the Inspector
2021-08-04 17:02:00 +03:00
kleonc
8274d18244
TabContainer Fix moving dropped tab at incorrect child index
...
(cherry picked from commit a5a4532378
)
2021-08-03 10:20:18 +02:00
Haoyu Qiu
fb15adfad0
Fix crash when executing PopupMenu.new()._submenu_timeout()
2021-07-27 12:11:28 +08:00
Rémi Verschelde
86054e00bf
Merge pull request #50446 from AnilBK/graphnode-improv-3.x
...
[3.x]Add missing graphnode setters.
2021-07-22 16:41:20 +02:00
Tomasz Chabora
d966f00954
Calculate __focus_rect when TreeItem is focused
...
(cherry picked from commit 2035992a07
)
2021-07-20 13:05:14 +02:00
Yuri Sizov
e05eb8a6ad
Make zoom limits and step adjustable in GraphEdit
2021-07-16 22:43:28 +03:00
kobewi
557a1f6232
[3.x] Update Tree when modified
2021-07-15 18:19:29 +02:00
kobewi
dd62aa1bf9
[3.x] Fix valign with stylebox borders
2021-07-15 13:58:18 +02:00
kobewi
4941d2001c
Add set_pressed_no_signal method to BaseButton
...
(cherry picked from commit 50c63bdc4c
)
2021-07-15 10:52:22 +02:00
Rémi Verschelde
875045adde
Use modules_enabled.gen.h to improve inter dependency checks
...
- Fix build with gdscript module disabled. Fixes #31011 .
- Remove unused `gdscript` compile option.
- Fix build with regex module disabled.
- Fix ImageLoaderSVG to forward declare thirdparty structs.
(cherry picked from commit f3726ee994
)
2021-07-14 23:36:38 +02:00
Anilforextra
d9e48a9c58
Add missing graphnode setters.
...
Documentation Updates.
2021-07-14 15:37:59 +05:45
Rémi Verschelde
32f5bee985
LineEdit: Respect `max_length` by truncating text to append
...
When appending text (either via `set_text()` or by pasting from clipboard),
if the input would make the `LineEdit` exceed its configured `max_length`,
the input text is truncated to fit. The discard part is passed as a parameter
in the `text_change_rejected` signal.
Fixes #33321 .
Fixes #41278 .
Also cleaned up unimplemented `max_chars` property in `TextEdit`.
Co-authored-by: Tony-Goat <70238376+Tony-Goat@users.noreply.github.com>
(cherry picked from commit 9a1ce8e6c3
)
2021-07-13 10:20:02 +02:00
voxelv
e6f420aabf
Avoid using a nullptr root in Tree._range_click_timeout().
...
Fixes #46648
(cherry picked from commit f17f3f8830
)
2021-07-13 09:47:07 +02:00
Rémi Verschelde
7f971089fb
FileDialog: Fix capitalization for overwrite prompt
...
Sorry I can't take it anymore, I wince every time I see it.
Already fixed in master :)
2021-07-08 01:05:45 +02:00
Francois Belair
a4a2ab3ee0
Add cache to color picker for presets
...
This prevents loading from the project metadata more than once,
significantly saving performance with nodes that have color pickers.
2021-07-07 18:06:31 -04:00
kobewi
ff7cae4c4c
Allow to create a node at specific position
2021-07-07 13:19:59 +02:00
kleonc
23ad87cc92
Add AcceptDialog::remove_button method
2021-07-06 18:27:03 +02:00
Michael Alexsander
d453b59cba
Make invisible `SplitContainer` nodes correctly calculate the minimal size of its children
...
(cherry picked from commit e4d56e4c62
)
2021-07-06 11:10:46 +02:00
trollodel
814e25d2d8
Fix GraphNode port position when the control has the Expand flag
...
(cherry picked from commit 07c3b40aa2
)
2021-06-29 14:02:23 +02:00
floppyhammer
fa77e501f7
Improve nine patch behavior of TextureProgressBar
...
(cherry picked from commit b08dc1ea35
)
2021-06-29 12:59:23 +02:00
Yuri Sizov
b91e3237c6
Make relationship lines draw on top of TreeItems
2021-06-21 16:54:59 +03:00
Rémi Verschelde
03f275e66f
Merge pull request #49167 from amoriqbal/3.3-inspector-patch
...
Fixed inspector not updating anchor
2021-06-20 12:42:21 +02:00
Marcel Admiraal
7e03bd1671
Remove duplicate WARN_PRINTS macro
2021-06-18 12:57:59 +01:00
kleonc
ce763fe402
TextureButton Update min size on any texture change
...
(cherry picked from commit 6c3c269f24
)
2021-06-17 12:47:54 +02:00
Hugo Locurcio
28aacbfe85
Allow higher and lower maximum zoom values in GraphEdit
...
Low zoom values result in unreadable text, but it can still be
useful for previewing purposes.
Eventually, characters could be replaced by rectangles at very low
zoom levels to improve the visual appearance.
(cherry picked from commit 74c584472c
)
2021-06-17 12:47:54 +02:00
Jason Knight
7510e1c24b
Emit button_up signal after setting pressed to false.
...
(cherry picked from commit 4c6ad8abcd
)
2021-06-17 12:47:53 +02:00
Hugo Locurcio
f36c90b82f
Add a soft line length guideline to the script editor
...
The default value is 80. The hard line length guideline's default column
has been moved to 100 to account for the new soft line length guideline.
It can be disabled by setting its value to the same column as the
hard line length guideline.
2021-06-16 06:00:02 +02:00
Rémi Verschelde
87532d2711
Merge pull request #49606 from azagaya/3.x
...
[3.x] Fix vertical slider `grabber_area` height calculation
2021-06-15 00:12:23 +02:00
azagaya
3b84c32b52
Fix vertical slider grabber_area height calculation
2021-06-14 15:46:09 -03:00
Rémi Verschelde
e6a6293146
Merge pull request #49487 from pycbouh/theme-utility-methods-3.x
2021-06-11 13:40:21 +02:00
Marcel Admiraal
88b8f28acc
Move default values from definition to declaration in GraphEdit
2021-06-10 17:17:18 +01:00
Yuri Sizov
fddd09de17
Fix typo in Control's theme icon look-up method
...
Backported from #47544 where it was originally identified
2021-06-10 16:44:24 +03:00
Rémi Verschelde
d84d5a9665
Merge pull request #49332 from megalobyte/doc-prev-search
...
[3.x] Fix previous search for built-in-docs
2021-06-09 11:11:15 +02:00
Rémi Verschelde
0d68db1b85
Merge pull request #49280 from timothyqiu/rtl-break
...
[3.x] Fix RichTextLabel auto-wrapping on CJK texts
2021-06-09 10:53:11 +02:00
megalobyte
7408b33895
Fix previous search for built-in-docs
2021-06-08 23:11:42 -07:00
Hugo Locurcio
2e6a4aea99
Allow more items in automatic width calculation for TextEdit completion
...
Calculating the width for 100 items takes a millisecond in
a debug build on an i7-6700K. It's likely that the editor can remain
smooth even with 1,000 items, especially in a release build.
2021-06-08 16:21:39 +02:00
Haoyu Qiu
3a591aaeeb
Fix RichTextLabel auto-wrapping on CJK
2021-06-08 21:04:20 +08:00
Rémi Verschelde
80e1585a6e
Style: Cleanup uses of double spaces between words
...
Or after punctuation. Tried to leave third-party stuff alone, unless it has
been heavily modified for Godot.
(cherry picked from commit c1c76850cb
)
2021-06-07 12:06:59 +02:00
Rémi Verschelde
4fe8941f8c
Merge pull request #48957 from phil-shenk/iss48936-control_set_scale
...
added _change_notify in Control::set_scale to fix iss48936
2021-06-01 23:00:44 +02:00
Rémi Verschelde
e0fb05ad30
Merge pull request #49237 from akien-mga/3.x-cherrypicks
2021-06-01 13:35:56 +02:00
Rémi Verschelde
fb294606b5
Merge pull request #48771 from LightningAA/scrollcontainer-ensure-item-visible-3.x
...
[3.x] ScrollContainer: Expose `_ensure_focused_visible` to the scripting API and rename it to `ensure_control_visible`
2021-06-01 12:58:56 +02:00
Leonardo Christino
21eea9cd6c
Make GraphNode handle children with EXPAND flag
...
(cherry picked from commit 5d574d980d
)
2021-06-01 12:52:18 +02:00
PouleyKetchoupp
87ed7d32de
Added flip_h and flip_v properties in TextureButton
...
(cherry picked from commit 5f1d94bb7d
)
2021-06-01 12:52:14 +02:00
Lightning_A
6f58e6ce2c
ScrollContainer: Expose `_ensure_focused_visible` to the API
...
Was renamed to `ensure_control_visible`
2021-05-31 19:05:30 -10:00
Lynx
1b7c2a1428
Fix not updating fonts when parent theme changes
...
Reparsing the bbcode content when we receieve a theme changed
notification just like we already do in ENTER_TREE.
Resolves #49089
2021-05-28 20:44:00 +02:00
amor
dacc726faf
Fixed inspector not updating anchor
2021-05-28 18:20:13 +05:30
Hugo Locurcio
a38b447413
Highlight control flow keywords with a different color
...
This makes them easier to distinguish from other keywords.
2021-05-25 00:31:39 +02:00
phil-shenk
04729d9c65
added _change_notify in Control::set_scale to fix iss48936
2021-05-22 01:12:53 -04:00
Hugo Locurcio
333dfb96da
Scroll faster when holding Alt in TextEdit (and script editor)
...
This feature is inspired by a similar feature found in
Visual Studio Code.
(cherry picked from commit cf1cf6c6eb
)
2021-05-18 11:58:09 +02:00
Haoyu Qiu
1866a605e1
Fix Tree::get_column_at_position crash
...
(cherry picked from commit c8efcf81d2
)
2021-05-17 13:07:39 +02:00
Eoin O'Neill
0e7c2ea331
Attempt to fix rich text label effects processing even when
...
the node is invisible.
ISSUE:47687
(cherry picked from commit c4f976b38b
)
2021-05-14 10:17:17 +02:00
Hugo Locurcio
d990035ebb
Implement reverting to the old color when clicking it in ColorPicker
2021-05-10 22:43:04 +02:00
Hugo Locurcio
6d03fe5194
Display the old color in ColorPicker for easier comparison
...
This only affects ColorPickerButton nodes that spawn a ColorPicker,
not standalone ColorPickers.
2021-05-10 17:36:03 +02:00
Hugo Locurcio
0c424abe3c
Fix Tree's background focus outline displaying behind section headings
...
(cherry picked from commit 63897f16b1
)
2021-05-09 17:51:36 +02:00
kobewi
cb5870dd4a
Display arrow cursor if text is not editable
...
(cherry picked from commit c3967c80ab
)
2021-05-09 17:50:06 +02:00
besh81
c1e887edb8
Fixed bug in tab_container with hidden tabs
...
Fix a bug that occour when there are hidden tabs in tab_container.
The visualization isn't correct due to missing values in tab_widths array.
(cherry picked from commit e7e7aa7d12
)
2021-05-09 17:47:38 +02:00
Gilles Roudière
472f7e9756
Adds a pressed signal to ButtonGroup
...
(cherry picked from commit 323f176915
)
2021-05-09 17:47:37 +02:00
Rémi Verschelde
140350d767
Style: Enforce braces around if blocks and loops
...
Using clang-tidy's `readability-braces-around-statements`.
https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
2021-05-05 15:02:01 +02:00
Rémi Verschelde
a828398655
Style: Replaces uses of 0/NULL by nullptr (C++11)
...
Using clang-tidy's `modernize-use-nullptr`.
https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-nullptr.html
2021-05-04 16:30:23 +02:00
Rémi Verschelde
b5e1e05ef2
Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks
2021-05-04 14:45:16 +02:00
Rémi Verschelde
64a63e0861
Style: clang-format: Disable AllowShortCaseLabelsOnASingleLine
2021-05-04 14:45:15 +02:00
Rémi Verschelde
3d15f04668
Style: clang-format: Disable AllowShortIfStatementsOnASingleLine
2021-05-04 14:45:15 +02:00
Rémi Verschelde
6e600cb3f0
Style: Set clang-format Standard to c++14
2021-05-04 14:45:15 +02:00
Koala
d08666f999
Fix indent left line selection
...
(cherry picked from commit 2c64008718
)
2021-05-04 12:47:36 +02:00
Rémi Verschelde
0c14d10522
Merge pull request #48296 from akien-mga/3.x-cherrypicks
2021-04-29 13:48:49 +02:00
Rémi Verschelde
606073db06
Merge pull request #47173 from LightningAA/graphedit-zoom-cherrypicks
2021-04-29 13:33:17 +02:00
Rémi Verschelde
d252ef4c5e
Merge pull request #46527 from kuruk-mm/3_2_lineedit
2021-04-29 13:32:33 +02:00
floppyhammer
4628ab2a15
ImproveCompletionPanelPositionInShaderEditor
...
(cherry picked from commit e927a9fef0
)
2021-04-29 11:35:52 +02:00
Rafał Mikrut
06976c3e84
[3.x] Fix crashes when using _input functions
2021-04-27 16:51:29 +02:00
Lightning_A
827f6739a2
Initialize some graphedit values in the header
2021-04-26 09:22:28 -06:00
Tomasz Chabora
44e84c61a6
Add disabled theme icons for CheckBox
...
(cherry picked from commit 3a40c268a6
)
2021-04-26 13:15:28 +02:00
Johannes
a3c67dd3fc
Fix removal of `rect_min_size` not triggering resize
...
fixes #46672
(cherry picked from commit c8868fcaab
)
2021-04-26 13:07:59 +02:00
ray90514
ea8004052d
Fix LineEdit undo behaves strangely
...
(cherry picked from commit 7501c7f48a
)
2021-04-26 12:20:28 +02:00
Lightning_A
77cf07c013
Make scrollwheel zoom based on mouse position, cherry-picked for 3.x
2021-04-06 09:36:15 -06:00
bruvzg
d844e72157
RichTextLabel: On custom effect change, parse bbcode only if it's enabled and not empty.
...
(cherry picked from commit 9f73abfa9f
)
2021-04-05 12:01:51 +02:00
Kevin Smith
c081596a55
Make ColorPicker button text and tooltips appear in exported projects
...
(cherry picked from commit a7d12920f2
)
2021-04-05 11:58:03 +02:00
volzhs
b4d88cfe20
Fix typo 'previus_selected'
...
(cherry picked from commit 990c88f24c
)
2021-03-29 14:23:43 +02:00
volzhs
3ee4efe1eb
Fix drawing boxselection on GraphEdit
...
(cherry picked from commit 1bdc14acea
)
2021-03-29 14:23:08 +02:00
lupoDharkael
3b0cf34299
Control: Expose pass_on_modal_close_click
2021-03-25 18:29:41 +01:00
jmb462
6c950977a5
Prevent resizing minimap bigger than GraphEdit ( Fix #47189 )
...
Minimap size couldn't be resized back after been resized bigger than GraphEdit cause the grabber was out of GraphEdit.
This commit prevents resizing minimap bigger than GraphEdit and fix this issue.
(cherry picked from commit 045f55ec00
)
2021-03-20 23:08:46 +01:00
Lightning_A
72c54c10eb
Enable zooming graph_edit with scrollwheel, cherry-picked for 3.x
2021-03-19 14:18:46 -06:00
Yuri Roubinsky
70cd4c5958
Fix GraphEdit connects when graph is zoomed/unzoomed, cherry-picked for 3.x
2021-03-19 14:12:23 -06:00
Yuri Roubinsky
3ad676cbbe
Fix GraphEdit reconnecting to disconnected port, cherry-picked for 3.x
2021-03-19 14:12:11 -06:00
Yuri Roubinsky
0b7384621e
Prevents incorrect connection attempt on port clicking in GraphEdit, cherry-picked for 3.x
2021-03-19 14:11:54 -06:00
Justin Ho
672fdb7af2
Check for null pointer in get_column_width(0)
...
(cherry picked from commit fa6fd3a2d0
)
2021-03-19 10:51:09 +01:00
jmb462
843eb80039
Fix BBCode tables overlap with bottom text
...
New row height was added only if all the column was full.
(cherry picked from commit 25af026d9e
)
2021-03-19 10:49:36 +01:00
Crystal Melting Dot
0eb0e6128c
Fix TabContainer _get_tab_width
...
Now it translates node name before calculating tab width
(cherry picked from commit 89baf02fb6
)
2021-03-17 21:06:09 +01:00
Kongfa Waroros
7646cbbca6
Check if _edit_set_position and _edit_set_rect was used outside an editor
...
(cherry picked from commit b80406770f
)
2021-03-16 11:11:31 +01:00
Pop0p
d2a577f7f1
trims_whitespaces_when_creating_folder_windows
...
When creating a Windows folder via a Godot's dialog, the extra spaces are not removed which causes problems with Windows. We now remove leading and trailing whitespace when creating a dir.
(cherry picked from commit c8538153b0
)
2021-03-13 22:25:34 +01:00
Rémi Verschelde
eb1698dd2a
Fix Control::_edit_set_state bogus error check
...
My mistake when cherry-picking #46699 with f8ee8b1b73
,
I forgot to amend the cherry-pick to change 'offsets' back to 'margins' for the 3.2
branch.
Fixes #46979 .
2021-03-13 21:10:12 +01:00
sps1112
f8ee8b1b73
Fix Control._edit_set_state crash
...
(cherry picked from commit 05f5a43cad
)
2021-03-12 10:11:54 +01:00
Rémi Verschelde
b7e06930aa
Revert "Fix flicker in control nodes due to pivot offset"
2021-03-11 11:01:48 +01:00
kobewi
749892c9fc
Release mouse when SpinBox leaves scene tree
...
(cherry picked from commit 83f6c6b360
)
2021-03-07 22:51:06 +01:00
kobewi
b82d5688b9
Deselect column only if belongs to deselected item
...
(cherry picked from commit 5cd5722f6a
)
2021-03-04 12:20:35 +01:00
Rémi Verschelde
9ee835ac93
Merge pull request #46409 from asheraryam/fix-scale-pivot-jitter
...
Fix flicker in control nodes due to pivot offset
2021-03-02 16:15:21 +01:00
Yuri Sizov
59dfd084ab
Properly hide GraphEdit's minimap
2021-03-01 18:18:05 +03:00
Mateo Kuruk Miccino
74b3021691
LineEdit: Now double click to select a word, and triple click to select all the content
2021-02-28 17:41:11 -03:00
asheraryam
25f35b2c9f
Fix jitter in control nodes when using pivot-offset and animating scale
...
This is based on suggested fix from this comment
https://github.com/godotengine/godot/issues/36087#issuecomment-771593146 -- basically the old rounding workaround is removed, and rounding is now done locally in the scroll_container instead.
Fixes #28804
Co-authored-by: Georg Wacker <contact@georgwacker.com>
2021-02-28 15:30:48 +03:00
Eric M
3b2c43312c
Fixed issues with slider focus and scroll input
...
(cherry picked from commit 707cf278a5
)
2021-02-26 15:27:42 +01:00
Rémi Verschelde
96d38d9751
Revert "Warn when setting Control size inside ready()"
...
This reverts commit a8105d73c7
.
We need to improve the logic somewhat to make the warning more specific to
actual problematic scenarios. Will likely be cherry-picked again + fixes
for the next release.
Fixes #46376 .
2021-02-25 15:14:32 +01:00
Jummit
0a9190134d
expose edit_selected in Tree
...
(cherry picked from commit 13fb24cb6f
)
2021-02-25 15:14:32 +01:00
kleonc
566ad4fd22
Label::set_lines_skipped Fail if passed a negative value
...
(cherry picked from commit d7bb7cad47
)
2021-02-22 10:16:54 +01:00
Kongfa Waroros
af5fe70623
Keep Hue value when Saturation or Value is zero
...
(cherry picked from commit 27749711b2
)
2021-02-22 10:15:29 +01:00
Tomasz Chabora
a8105d73c7
Warn when setting Control size inside ready()
...
(cherry picked from commit 84da090a69
)
2021-02-22 10:15:00 +01:00
Kongfa Waroros
5ec1eee6b1
Avoid function signals in ColorPicker to access the tree when it isn't in the tree
2021-02-18 16:57:47 +07:00
kobewi
6440b7fcae
Select TreeItem if none is selected
...
(cherry picked from commit 282639d653
)
2021-02-16 14:27:40 +01:00
kleonc
e40682c32d
RichTextLabel::add_image Fail if passed image has no area
...
(cherry picked from commit a4afdd4a77
)
2021-02-16 14:27:39 +01:00
PouleyKetchoupp
ac9e5d9c60
Fix TextEdit autoscroll with wrapped lines
...
Index to find the last line wrap index was off by one, which prevented the first wrapped line to trigger autoscroll.
(cherry picked from commit 121030940c
)
2021-02-16 14:27:38 +01:00
PouleyKetchoupp
018008ce81
TextEdit respects content margin from StyleBox
...
Backport from PR #45858 on master.
2021-02-15 10:47:38 -07:00
Kongfa Waroros
adb93d7120
Update GraphEdit when GraphNode's slot is updated
...
(cherry picked from commit fe6c8d48e6
)
2021-02-11 13:14:33 +01:00
Filip
9c4f16f4c1
Fixed completion box not showing properly [3.2]
2021-02-10 20:40:00 +01:00
Rémi Verschelde
daa0fe101e
Merge pull request #45813 from RandomShaper/keep_selected_visible_3.2
...
Keep selected node visible after filter change (3.2)
2021-02-09 10:43:37 +01:00
kobewi
2863c6117e
Set selected Tree item to null when deselected
...
Co-authored-by: Brody Eller <wviper3@gmail.com>
(cherry picked from commit ef8ec59f2f
)
2021-02-08 22:36:37 +01:00
Kanabenki
dad0d4a8ee
Update ColorPicker controls when entering tree
...
(cherry picked from commit 03d4ebf129
)
2021-02-08 22:36:37 +01:00
Oliver Dick
db57f32194
TextEdit: When left mouse is pressed to place the cursor, do not immediately adjust the viewport when cursor_set_line is called, but afterwards on cursor_set_column (effectively when the cursor reached its final position)
...
Fixes #45770
(cherry picked from commit 8d598693fc
)
2021-02-08 22:36:36 +01:00
Pedro J. Estébanez
e1054a17b5
Expose Tree::scroll_to_item()
2021-02-08 02:19:23 +01:00
Volka
c6824ec09d
Fix unintended SpinBox mouse capture
...
(cherry picked from commit ae2cf8eb38
)
2021-02-02 13:02:42 +01:00
Rémi Verschelde
0b6dd929c6
Merge pull request #45169 from fmazan/3.2-completion-panel-positioning
...
[3.2] Fixed completion and hint panel positioning in TextExit
2021-02-01 20:50:38 +01:00
HaSa1002
4ff0df702d
Expose bookmark, breakpoint, and mark safe functions in TextEdit
2021-01-27 22:41:07 +01:00
kobewi
a7a490e650
Fix popup_centered() for scaled popups
2021-01-27 18:12:09 +01:00
kobewi
7ede2f36fe
Allow to override drop data in LineEdit
...
(cherry picked from commit a3a31591b5
)
2021-01-26 17:24:55 +01:00
Hugo Locurcio
76bd7d796b
Make Range return 1.0 ratio if minimum and maximum values are equal
...
An error message is also no longer printed.
This matches the behavior found in most UI frameworks where having
equal minimum and maximum values is considered acceptable.
This closes #43179 .
(cherry picked from commit 44204ec32d
)
2021-01-26 17:00:17 +01:00
Nils Reid
349f25429b
Exposed find_next_valid_focus and find_prev_valid_focus.
...
(cherry picked from commit 3e94c23fa5
)
2021-01-26 17:00:16 +01:00
Rémi Verschelde
07be68e904
Merge pull request #45370 from naithar/fix/line_edit_clear
...
[3.2] [GUI] Fix LineEdit clearing
2021-01-26 12:30:58 +01:00
Sergey Minakov
7b8d6d2413
[GUI] Enforce virtual keyboard redisplay on clear
2021-01-26 13:18:14 +03:00
Yuri Sizov
a9552cefa2
Fix minimap capturing events and improve its theme
...
Add an editor setting for minimap opacity in visual editors
2021-01-25 21:49:34 +03:00
Alexander Pech
d73281a350
Keep RichTextLabel visible character properties in sync
...
The RichTextLabel class is inconsistent in how it updates the
visible_characters and percent_visible properties when either is changed.
To keep both properties consistent, update percent_visible when setting the
visible_characters property.
For both properties, when setting one, notify change for the other.
Docs updated for member set_visible_characters on RichTextLabel class.
(cherry picked from commit 463e2002ab
)
2021-01-15 16:49:46 +01:00
Rémi Verschelde
258f41c024
Merge pull request #45150 from pycbouh/ge-disconnect-crash-3.2
...
[3.2] Prevent signal disconnection attempts on invalid references
2021-01-15 12:49:17 +01:00
Yuri Sizov
6b13c8482a
Prevent signal disconnection attempts on invalid references
2021-01-14 15:21:12 +03:00
Filip
f1d00522f5
Fixed completion and hint panel positioning in TextExit [3.2]
2021-01-13 21:44:05 +01:00
Rémi Verschelde
b9c5e2f9eb
doc: Sync classref with current source
...
And fix copyright headers in new code.
2021-01-13 16:55:27 +01:00
Rafał Mikrut
8f19d50e27
Fix errors when removing non Control node from TabContainer
...
(cherry picked from commit 56734f44e5
)
2021-01-13 16:17:10 +01:00
Rémi Verschelde
49646383f1
Update copyright statements to 2021
...
Happy new year to the wonderful Godot community!
2020 has been a tough year for most of us personally, but a good year for
Godot development nonetheless with a huge amount of work done towards Godot
4.0 and great improvements backported to the long-lived 3.2 branch.
We've had close to 400 contributors to engine code this year, authoring near
7,000 commit! (And that's only for the `master` branch and for the engine code,
there's a lot more when counting docs, demos and other first-party repos.)
Here's to a great year 2021 for all Godot users 🎆
(cherry picked from commit b5334d14f7
)
2021-01-13 16:17:06 +01:00
Andrii Doroshenko (Xrayez)
acd9abe507
Add `AspectRatioContainer` class
...
Backported from ba68383706
.
Co-authored-by: Ugis Brekis <ugis.brekis@productmadness.com>
2021-01-12 16:25:26 +02:00
Rémi Verschelde
5c80c94449
Revert "solved ctrl + alt + special character Issue #6851"
...
(cherry picked from commit 8b7f582f22
)
2021-01-05 21:33:33 +01:00
Yuri Roubinsky
adfc646f8c
Added optional id parameter to `PopupMenu::add_separator`
...
(cherry picked from commit ca8c794d04
)
2020-12-30 09:57:01 +01:00
Yuri Sizov
816fef21f9
Add a minimap to the GraphEdit
2020-12-18 01:31:17 +03:00
Sergey Minakov
f1fd0440f3
GUI: use cursor in TextEdit for non selected text.
2020-12-16 05:33:10 +03:00
Sergey Minakov
4c3b84b3d7
GUI: send cursor data from TextEdit
2020-12-16 05:05:38 +03:00