Rémi Verschelde
04a1ae90df
Merge pull request #35080 from malbach/scrollbars_overlap
...
Fix #33309 Overlapping Scrollbars in ScrollContainer
2020-01-13 16:10:12 +01:00
malbach
bc8ce836e3
Fix overlapping scrollbars in ScrollContainer ( #33309 )
2020-01-13 14:37:55 +01:00
Rémi Verschelde
100f50b7df
Control/Light2D: Preventing setting 0 as scale as for Node2D
...
Triggers errors in `Transform2D::affine_invert()`.
Fixes #26510 .
Fixes https://github.com/godotengine/godot/issues/24997#issuecomment-457951639 .
2020-01-13 12:20:15 +01:00
Rémi Verschelde
478ab8b45b
Merge pull request #34960 from johannesgunnar/spin_box-apply-method
...
Spinbox apply input method
2020-01-12 14:16:14 +01:00
Paulb23
22c15083af
Fix empty LineEdit crash on ctrl+backspace
2020-01-11 17:57:36 +00:00
Jóhannes Gunnar Þorsteinsson
083637a901
Add apply method to SpinBox
2020-01-11 10:47:51 +00:00
Tomasz Chabora
60cd3df337
Add signal for LineEdit overflow event
2020-01-10 21:07:00 +01:00
Rémi Verschelde
59a2fed1e6
Merge pull request #34938 from OverloadedOrama/fix-basebutton-button-press
...
Fixes BaseButton not triggering the pressed signal on "Button Press"…
2020-01-10 10:35:11 +01:00
Haoyu Qiu
fbd937bd30
Update minimum size on Label::set_autowrap
...
If `clip_text` is true, the minimum height is one line if `autowrap` is
true , or one pixel otherwise.
2020-01-10 17:08:27 +08:00
Gilles Roudière
b5251eb00f
Don't compile editor-only function when tools=no
2020-01-09 22:15:48 +01:00
OverloadedOrama
bf4a0242ff
Fixes BaseButton not triggering the "pressed" signal on "Button Press" Action Mode
...
This should fix #34935
2020-01-09 02:17:53 +02:00
Haoyu Qiu
4293f76cf1
Emits meta_hover_ended when mouse exit RichTextLabel
2020-01-08 21:01:08 +08:00
Rémi Verschelde
1de54bb388
Merge pull request #34874 from wingedadventurer/bugfix-label-visible-characters
...
Make Label node consider spaces for visible_characters property
2020-01-08 08:18:59 +01:00
Rémi Verschelde
033fb72c03
Merge pull request #34871 from lentsius-bark/textEdit-vertical-horizontal-scroll-expose
...
expose scroll_vertical and scroll_horizontal in TextEdit
2020-01-08 08:18:12 +01:00
Rémi Verschelde
90c487ebf3
Merge pull request #34900 from timothyqiu/rtl-cell-wrap
...
Fixes RichTextLabel click issue when cell text wraps
2020-01-08 07:08:02 +01:00
Michael Alexsander
8b5992f665
Make possible to edit the GraphEdit's selection rect colors
2020-01-07 23:20:48 -03:00
Haoyu Qiu
d17a4efc43
Fixes RichTextLabel click issue when cell text wraps
2020-01-08 09:08:03 +08:00
Kanabenki
d79f0e7d40
Check if cursor is inside meta when getting cursor shape
2020-01-07 15:46:11 +01:00
Krystof Klestil
c475f11018
expose scroll_vertical and scroll_horizontal in TextEdit + documentation
2020-01-07 15:16:07 +01:00
wingedadventurer
695980a0f2
make Label consider spaces for visible_characters
2020-01-06 23:29:00 +01:00
volzhs
e5a0018621
Calculate label size more accurately
2020-01-07 04:21:02 +09:00
volzhs
3f0c7b89ec
Fix calculating label size
2020-01-06 01:06:26 +09:00
Haoyu Qiu
78e9ca58af
Makes more strings translatable
2020-01-04 13:46:38 +08:00
Rémi Verschelde
6f279ed6eb
Merge pull request #34781 from fossegutten/button-flash
...
Fixes button flashing when releasing mousebutton outside
2020-01-03 16:23:57 +01:00
fossegutten
b728d3bd18
Fixes button flashing when releasing mousebutton outside
2020-01-03 14:55:27 +01:00
Haoyu Qiu
229b398146
Better horizontal scroll for Tree
...
* Adds pan gesture support for horizontal scroll.
* Scrolls horizontally when needed to ensure cursor visiblility.
2020-01-03 20:16:32 +08:00
Haoyu Qiu
e539b187a5
Clears button mask before activating menu item
2020-01-03 09:35:00 +08:00
Rémi Verschelde
1788b22b11
Merge pull request #34737 from timothyqiu/tree-item-offset
...
Fixes Tree item offset when root is hidden
2020-01-02 08:17:29 +01:00
Rémi Verschelde
ca38190363
Merge pull request #34735 from YeldhamDev/texturerect_code_format
...
Minor code formatting in TextureRect file
2020-01-02 08:01:55 +01:00
Haoyu Qiu
0ee93257e8
Fixes Tree item offset when root is hidden
...
Before this fix, one vseparation is counted for a hidden root item.
2020-01-02 09:20:43 +08:00
Michael Alexsander
7b86688ddf
Minor code formatting in TextureRect file
2020-01-01 21:56:12 -03:00
Haoyu Qiu
a77e869b87
Ensures cursor visible for Tree with title
2020-01-01 22:47:42 +08:00
Rémi Verschelde
f7715b58bd
Merge pull request #34724 from timothyqiu/tree-right
...
Fixes behavior of right arrow key in Tree
2020-01-01 12:13:28 +01:00
Rémi Verschelde
5b173c4bf1
Merge pull request #34654 from Calinou/colorpicker-move-preview-under-picker
...
Move the ColorPicker preview under the picker area
2020-01-01 11:38:04 +01:00
Rémi Verschelde
a7f49ac9a1
Update copyright statements to 2020
...
Happy new year to the wonderful Godot community!
We're starting a new decade with a well-established, non-profit, free
and open source game engine, and tons of further improvements in the
pipeline from hundreds of contributors.
Godot will keep getting better, and we're looking forward to all the
games that the community will keep developing and releasing with it.
2020-01-01 11:16:22 +01:00
Haoyu Qiu
838d9519bc
Fixes behavior of right arrow key in Tree
2020-01-01 17:57:40 +08:00
Rémi Verschelde
406dac1917
Merge pull request #34633 from qarmin/lineedit_signal
...
Don't try to connect "text_entered" signal to nodes other than LineEdit
2019-12-31 12:54:48 +01:00
Rémi Verschelde
1bed049ed5
Merge pull request #34612 from timothyqiu/item-list
...
Improves ItemList documentation
2019-12-31 12:45:40 +01:00
Haoyu Qiu
7a752215ba
Improves ItemList
...
* Adds range hint for integer properties
* Adds missing descriptions in documentation
* Updates some method descriptions to match the actual behavior
* Fixes second param name of `set_item_icon_transposed` from `rect` to `transposed`
2019-12-31 08:44:55 +08:00
Tomasz Chabora
54f70b6b50
Fix argument type in set_follow_focus()
2019-12-30 23:42:39 +01:00
Rémi Verschelde
97ebde45d5
Merge pull request #34572 from KoBeWi/I_give_up
...
Make new ScrollContainer focus behavior optional
2019-12-30 19:00:57 +01:00
Rémi Verschelde
7b412eb839
Merge pull request #34653 from YeldhamDev/optionbutton_margin_auto
...
Make OptionButton itself take into account the arrow margin instead of relying on the theme
2019-12-30 18:00:37 +01:00
Tomasz Chabora
cc72885107
Make new ScrollContainer focus behavior optional
2019-12-30 16:40:02 +01:00
Rémi Verschelde
edf2ed5e50
Merge pull request #34582 from timothyqiu/forward-decl
...
Cleans up headers included in editor_node.h
2019-12-30 16:28:47 +01:00
Rémi Verschelde
5b687b4c93
Merge pull request #34563 from Paulb23/23751_extra_line_indent
...
Fixed selection indent taking an additional line
2019-12-30 16:20:37 +01:00
Hugo Locurcio
bbd5e39165
Move the ColorPicker preview under the picker area
...
This moves it to be closer to the sliders, which in turn makes it easier
for the user to preview the color.
This also makes it clearer that the Pick button can only pick colors
in the editor window, not outside.
2019-12-28 18:23:28 +01:00
Michael Alexsander
c4cd2c44c8
Make OptionButton itself take into account the arrow margin instead of relying on the theme
2019-12-28 12:03:04 -03:00
Rafał Mikrut
0a1d3e4437
Don't try to connect "text_entered" signal to nodes other than LineEdit
2019-12-27 12:08:49 +01:00
Haoyu Qiu
078c0d75f2
Cleans up headers included in editor_node.h
2019-12-24 21:46:05 +08:00
Paulb23
0049f43fc8
Fixed selection indent taking an additional line
2019-12-23 13:16:57 +00:00
Jonas Bernemann
2f35cf4946
Fix issue with disconnecting events when font changes
2019-12-23 14:08:34 +01:00
Tomasz Chabora
3a3cab6494
Use global transform when calculating scroll
2019-12-17 00:51:07 +01:00
Rémi Verschelde
f8ea390b52
Merge pull request #34269 from KoBeWi/scrolling_peeps
...
Scroll ScrollContainer to focused children
2019-12-16 14:03:21 +01:00
Rémi Verschelde
51ab6a96fd
Merge pull request #34311 from mikkac/34289
...
Fix- using cut in first line of a script file does not remove the line
2019-12-16 08:48:47 +01:00
Tomasz Chabora
32939ccd39
Prevent infinite loop when focus_next is invisible
2019-12-16 01:33:25 +01:00
Mikolaj Kaczmarek
eced81e359
Fix- using cut in first line of a script file does not remove the line
2019-12-14 19:11:19 +01:00
Michael Alexsander
af67e97445
Remove unused theme elements in H/VSlider
2019-12-13 21:17:51 -03:00
Rémi Verschelde
9f68626fb2
doc: Sync classref with current source
...
Also apply clang-format.
2019-12-13 10:41:06 +01:00
Rémi Verschelde
fdfe14c583
Merge pull request #34235 from timothyqiu/menu-scroll
...
Fixes long popup menu scroll behavior
2019-12-13 09:31:11 +01:00
Michael Alexsander
bd7cf87b8e
Make Button and co. take internal margins into account when clipping text
2019-12-12 18:46:04 -03:00
Haoyu Qiu
776ae18d64
Fixes crash after remove_line in RichTextLabel
...
`ItemFrame` always have a line.
2019-12-12 16:35:50 +08:00
Rémi Verschelde
37d164e24e
CharFXTransform: Drop unnecessary get_value_or()
...
See https://github.com/godotengine/godot/pull/23658#issuecomment-562706669
The method was implemented back when Dictionary.get(key, default) did not
exist, but now that it does we do not need a custom method in CharFXTransform.
It's a new feature in 3.2, so does not break compat with 3.1.x.
2019-12-12 07:47:08 +01:00
Tomasz Chabora
77a8657633
Scroll ScrollContainer to focused children
2019-12-11 14:29:36 +01:00
Rémi Verschelde
2845e6a21a
Merge pull request #34040 from qarmin/unused_variable_more_precise_numbers
...
Removed unused variables, add some constants numbers
2019-12-10 08:25:31 +01:00
Rafał Mikrut
ed1c4bc77d
Removed unused variables, add some constants numbers
2019-12-10 05:13:02 +01:00
Haoyu Qiu
5bf8e1e426
Fixes long popup menu scroll behavior
...
Popup menus longer than the viewport have stange behaviors before this
fix:
* They always have one pixel outside the viewport.
* You can scroll down the long menu even if bottom outside screen and
top inside the screen. (Only menus one pixel above the screen is limited
to scroll down.)
2019-12-10 09:49:02 +08:00
Tomasz Chabora
6e1dc7b2fe
Update minimum size of SpinBox on theme change
2019-12-10 02:11:22 +01:00
Rémi Verschelde
d7b2940eb6
Merge pull request #34203 from bruvzg/ime_placeholder
...
Hide LineEdit placeholder if IME composition string is not empty.
2019-12-09 09:09:42 +01:00
allkhor
2c559feb92
Fixed strange behaviour of scroll in the ItemList.
2019-12-09 01:54:10 +06:00
bruvzg
4937b21ce5
Hide LineEdit placeholder if IME composition string is not empty.
2019-12-08 18:24:30 +02:00
Michael Alexsander
d057007541
Add spaces after commas and strip extra ones in *FileDialog filter menu
2019-12-06 22:40:59 -03:00
Michael Alexsander
80dcd4423a
Remove extra spaces from parenthesis in *FileDialog's filter menu
2019-12-06 07:31:42 -03:00
Paulb23
b68703a35c
Fixed caret alignment with placeholder text
2019-12-01 14:27:39 +00:00
Paulb23
3df68b4fa6
Fixed LineEdit alignment when removing text or undo / redo
2019-12-01 13:54:09 +00:00
Rémi Verschelde
966c68badd
Range: Remove min/max check added in #33908
...
This wasn't a very good idea as it puts too strict requirements on how
to set `min` and `max` values. For example, since the default min and
max are 0 and 100, this triggers an error:
```
set_min(256)
set_max(16384)
```
Since `min` will be higher than `max` temporarily. It can be worked
around by setting max first, but it's not really intuitive. I'll relax
the requirement as it's only a problem in `get_as_ratio`, which already
has a check.
Fix another min == max occurrence.
2019-11-26 12:11:21 +01:00
Rémi Verschelde
bfd5e09879
Range: Fix cases where max was set to or below min value
...
It will now raise an error whenever this happens so that we can fix
these situations. `max == min` is not allowed as it could lead to
divisions by zero in ratios, and `max < min` doesn't make much sense.
Fixes #33907 .
2019-11-26 10:25:41 +01:00
Rémi Verschelde
5ddce7a9df
Merge pull request #33869 from jbuck3/dialog-resize-bug
...
Fix WindowDialog moving when resized from the left/top edge
2019-11-25 14:38:33 +01:00
James Buck
5f451e0fb2
Fix WindowDialog moving when resized from the left/top edge
...
get_combined_minimum_size() must be used in order to consider the min size
specified by the user when determining how far the left/top edge is allowed
to move. Otherwise the dialog may think it can shrink further than it
should, causing the right/bottom edge to move when the rect size is fixed in
set_size().
2019-11-24 23:39:55 -06:00
PouleyKetchoupp
8830e53fe1
Fixed index out of size error in TextEdit when opening scripts
2019-11-24 10:48:04 +01:00
Rémi Verschelde
083d088de3
Merge pull request #33583 from qarmin/fix_overflows_unitialized
...
Fix some overflows and unitialized variables
2019-11-20 21:31:12 +01:00
Rafał Mikrut
99d8626f4a
Fix some overflows and unitialized variables
2019-11-20 16:22:16 +01:00
lupoDharkael
268fe9dda5
GradientEdit: Fix index crashes
2019-11-19 22:05:37 +01:00
Hugo Locurcio
72b31aafc4
Make holding Ctrl toggle snapping in GraphEdit
...
This affects the visual script and visual shader editors as well.
2019-11-15 19:34:44 +01:00
PouleyKetchoupp
47a4ca0022
Fixed crash when pressing down key on empty Tree
...
Fixes #33554
2019-11-12 08:15:29 +01:00
Rémi Verschelde
2143f46df2
Merge pull request #33516 from qarmin/small_fixes
...
Memory leaks and crash fixes
2019-11-10 10:17:19 +01:00
Rafał Mikrut
7dda9309f9
Memory leak and crash fixes
2019-11-10 09:49:13 +01:00
PouleyKetchoupp
0fc0f0fc98
Fixed crash when using icon override in button
...
Missing change for PR #33495
2019-11-09 23:06:46 +01:00
PouleyKetchoupp
0c79bbeea3
Fixed crash when using icon override in button
...
Fixes #33457
2019-11-09 20:14:52 +01:00
Paulb23
25cba699f0
Fixed not being able to scroll ending wrapped line
2019-11-09 16:45:44 +00:00
Rémi Verschelde
31f327a4a9
Merge pull request #33052 from KoBeWi/naughty_sliders
...
Fix analog input in sliders
2019-11-08 09:55:11 +01:00
Tomasz Chabora
a7b202ef18
Fix analog input in sliders
2019-11-07 16:39:14 +01:00
codecustard
71e79af1f1
Fixes ItemList max column update
...
When setting the max column of an ItemList, the layout does not update until it is resized.
2019-11-06 12:26:51 -08:00
PouleyKetchoupp
13c88878c4
Fixed cases where labels with autowrap can overflow the editor ui
...
Fixes #33155
2019-11-04 10:12:36 +01:00
Rémi Verschelde
e684df08fc
Merge pull request #33286 from groud/fix_tree_edit_rect
...
Fixes the edit rect in TreeItems
2019-11-03 17:35:01 +01:00
Gilles Roudiere
8eb2eeae0f
Fixes the edit rect in TreeItems
2019-11-03 16:08:07 +01:00
Michael Alexsander
6348dfa948
Make the editor dimming even more smarter
2019-11-02 20:25:26 -03:00
Paulb23
362d38ea67
Update connection info on script validation rather then saved copy
2019-11-02 14:41:59 +00:00
Rémi Verschelde
5160d4f5ba
Merge pull request #33233 from hilfazer/dollar-quoted-autocomplete
...
$ autocompletion keeps quotation
2019-11-01 16:52:13 +01:00
hilfazer
c394ef7410
$ autocompletion keeps quotation
2019-11-01 14:52:13 +01:00
Rémi Verschelde
a49c8d4a2b
Merge pull request #33202 from nekomatata/text-edit-search-usability
...
Improved TextEdit search usability & documentation
2019-11-01 14:10:00 +01:00