Sergey Minakov
7b8d6d2413
[GUI] Enforce virtual keyboard redisplay on clear
2021-01-26 13:18:14 +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
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
Michael Alexsander
4fe554933c
Allow to circle back in 'PopupMenu' even if the first/last item is non-selectable
...
(cherry picked from commit bb39088201
)
2020-12-10 14:02:06 +01:00
volzhs
c904cf612a
Add option to draw all tabs in front
...
(cherry picked from commit 814f9015f8
)
2020-12-10 13:07:49 +01:00
Michael Alexsander
32da9dc1e9
Add "font_color_separator" theme property to 'PopupMenu'
...
(cherry picked from commit 383e8919e0
)
2020-12-10 13:06:15 +01:00
volzhs
1663a9e87c
Update page value properly of ScrollContainer
...
(cherry picked from commit d89677442b
)
2020-12-09 11:22:04 +01:00
Rémi Verschelde
f7061fd559
Buttons: Don't use deprecated set_enabled_focus_mode
...
It's better to use the equivalent, non-deprecated API.
Follow-up to #43974 .
2020-11-30 11:16:15 +01:00
Rémi Verschelde
4f30cdfc33
Merge pull request #43972 from volzhs/fix-tab-container-3
...
Fix TabContainer crashes
2020-11-30 09:41:39 +01:00
FIF15
f07fb4e595
fix #43695 by revert part of #41577
...
Restore the default focus mode for MenuButton and LinkButton,
since it is different from the default of BaseButton.
2020-11-30 10:47:26 +08:00
volzhs
efade4034b
Fix no padding between icon and text in TabContainer
2020-11-30 11:36:57 +09:00
volzhs
8e10e33762
Fix TabContainer crashes
2020-11-30 11:02:18 +09:00
Tomasz Chabora
0c50509326
Update clear button when clicked
...
(cherry picked from commit 836b78f329
)
2020-11-26 09:38:47 +01:00
volzhs
8aeeec034d
Fix to update scroll bar has correct max value in ScrollContainer
...
(cherry picked from commit 67c2f2445f
)
2020-11-26 09:38:47 +01:00
Rémi Verschelde
94c31175de
Merge pull request #43152 from Chaosus/color_autocompletion_3.2
...
[3.2] Shows ColorRect in Color constants autocompletion
2020-11-26 09:32:32 +01:00
PouleyKetchoupp
9b64646bc3
Expose LineEdit scroll offset to scripts
...
(cherry picked from commit 4775db1600
)
2020-11-11 15:44:18 +01:00
Rémi Verschelde
05143ca39a
Tooltips: Improve code clarity and docs
...
The return type for `_make_custom_tooltip` is clarified as Control, and users
should make sure to return a visible node for proper size calculations.
Moreover in the current master branch, a PopupPanel will be added as parent
to the provided tooltip to make it a sub-window.
Clarifies documentation for `Control._make_custom_tooltip`, and shows how to
use the (until now undocumented) "TooltipPanel" and "TooltipLabel" theme types
to style tooltips.
Fixes #39677 .
(cherry picked from commit c5d8dafec4
)
2020-11-11 15:30:56 +01:00
volzhs
f4d181179c
Put unselected tabs back in TabContainer control
...
(cherry picked from commits 9eaa5ffab5
and 8a588343db
)
2020-11-11 15:30:54 +01:00
Andrii Doroshenko (Xrayez)
921046c822
Add border_width
to ReferenceRect
...
Exposes a hidden parameter behind `CanvasItem.draw_rect()`.
(cherry picked from commit aef00021a9
)
2020-10-28 14:05:40 +01:00
Gabriel Van Eyck
7735cdaf8f
Fix emit_signal timing for GraphEdit's begin/end node move
...
(cherry picked from commit fbc095dc78
)
2020-10-28 14:05:40 +01:00
Dominik 'dreamsComeTrue' Jasiński
ba00ced445
TextEdit - fix valid bounds in 'set_line'. Fixes #41967
...
(cherry picked from commit 99c8a07919
)
2020-10-28 14:05:39 +01:00
Yuri Roubinsky
374253242d
[3.2] Shows ColorRect in Color constants autocompletion
2020-10-28 12:39:41 +03:00
Rémi Verschelde
150f9ce807
Merge pull request #42009 from Calinou/theme-node-type-3.2
...
Rename the `type` parameter to `node_type` in Theme and Control (3.2)
2020-10-20 15:58:41 +02:00
volzhs
78143ee93e
Respect Tree.set_icon_max_width size for drawing selection box
...
(cherry picked from commit cac4fedb2a
)
2020-10-19 16:10:00 +02:00
Dashcell
c43e8d8fbd
Dropping file on parrent dirrectory fixed
...
(cherry picked from commit 1ac936f035
)
2020-10-19 15:14:13 +02:00
Rémi Verschelde
3495cb91d8
Merge pull request #41577 from FIF15/deprecate-redundant-property-enabled-focus-mode
...
Deprecate Redundant property enabled_focus_mode
2020-10-19 14:15:43 +02:00
FIF15
8311a37ed9
Deprecate Redundant property enabled_focus_mode
...
of BaseButton
see #41529 for details
this closes #41529
2020-10-16 14:14:04 +08:00
Rémi Verschelde
e40b4eeeea
Merge pull request #37226 from arrowinaknee/fix-node-config-warnings
...
[3.2] Update get_configuration_warning() overrides to retrieve warnings from parent class
2020-10-01 14:04:26 +02:00
Danil Alexeev
44bdd8f16c
Improvement for the Copy button in the Output Log
...
Now if no text is selected, pressing the Copy button copies the entire text.
(cherry picked from commit fb6eb21afc
)
2020-09-29 08:54:45 +02:00
Michael Alexsander
2d848227cf
Add 'get_previous_tab()' to 'Tabs'
...
(cherry picked from commit 2b319889cb
)
2020-09-24 14:43:10 +02:00
HellonLegs
9340385731
LineEdit/TextEdit: solved control + alt issue
...
(cherry picked from commit f412237f38
)
2020-09-24 14:43:08 +02:00
mvl
be13df0a08
Fix bug where leading and trailing spaces werent taken into account with center and right allignment.
...
(cherry picked from commit 4318ad94ac
)
2020-09-24 14:43:05 +02:00
Eric M
e24b9f0520
Fixed bug where spinbox would not update to it's actual value after non-numeric input
...
(cherry picked from commit e76e39d5f5
)
2020-09-24 12:08:10 +02:00
Rémi Verschelde
c8859f0463
Fix typos with codespell
...
Using codespell 1.17.1.
Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
curvelinear
dof
doubleclick
fave
findn
leapyear
lod
merchantibility
nd
numer
ois
ony
que
seeked
synching
te
uint
unselect
webp
EOF
$ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"
$ git diff // undo unwanted changes
```
2020-09-18 14:09:51 +02:00
Hugo Locurcio
e36587751f
Rename the type
parameter to node_type
in Theme and Control
...
This makes it clearer that it expects a node type as a string (such as "Label")
instead of a type like "TYPE_ARRAY". This is backwards-compatible since only
the name of the parameter is changed, not its order.
See https://github.com/godotengine/godot-proposals/issues/1495#issuecomment-691507839
2020-09-12 18:42:45 +02:00
Wilson E. Alvarez
2b7c9d9070
Disconnect item_rect_changed when removing a child of GraphEdit
2020-09-11 17:36:55 -04:00
PouleyKetchoupp
819765130d
Fix RichTextLabel alignment for clickable regions
...
Fixes #41006 (regression from #39164 ).
The original alignment fix was limited to PROCESS_DRAW mode, which
caused some discrepancies with PROCESS_POINTER mode.
Now only PROCESS_CACHE is excluded with a condition a few lines above.
(cherry picked from commit b783fa1416
)
2020-09-11 11:15:40 +02:00
Marcel Admiraal
f26131fca5
Check if old mouse column is still available.
...
(cherry picked from commit 79802b31a9
)
2020-09-08 13:39:32 +02:00
PouleyKetchoupp
c21d14fe69
Fix LineEdit not consuming enter events
...
LineEdit should not return early when processing KEY_ENTER, so it can
consume the event properly.
Regression introduced by mistake while fixing enter events for Android
(PR #40487 - c0b394572f
)
(cherry picked from commit 5c63dec36e
)
2020-09-08 13:38:58 +02:00
Rémi Verschelde
8a66ea7cb0
Revert "Updated LineEdit to address #41278 "
...
This reverts commit 1b6d116dfb
.
2020-09-01 14:01:50 +02:00