Rémi Verschelde
6f4858f184
Modules: Make sure to include modules_enabled.gen.h
where needed
...
Fixes #51677 .
Co-authored-by: Arkadiusz Marcin Kołek <aksoftware91@gmail.com>
2021-11-12 13:45:33 +01:00
Haoyu Qiu
936832d59c
Add methods to remove theme overrides
2021-11-11 18:23:37 +08:00
Michael Alexsander
d5adb9e4b4
Fix uninteractable singular tab in TabBar
...
(cherry picked from commit 96fdb030ec
)
2021-10-31 23:10:47 +01:00
Rémi Verschelde
14ef65e49b
Merge pull request #54348 from akien-mga/3.x-clang-format-dont-align-operands
2021-10-28 15:43:15 +02:00
Rémi Verschelde
1b65550ec7
clang-format: Various fixes to comments alignment from clang-format
13
...
All reviewed manually and occasionally rewritten to avoid bad auto formatting.
2021-10-28 14:50:32 +02:00
Rémi Verschelde
42d385b312
clang-format: Disable alignment of operands, too unreliable
...
Sets `AlignOperands` to `DontAlign`.
`clang-format` developers seem to mostly care about space-based indentation and
every other version of clang-format breaks the bad mismatch of tabs and spaces
that it seems to use for operand alignment. So it's better without, so that it
respects our two-tabs `ContinuationIndentWidth`.
2021-10-28 13:23:38 +02:00
Lenny Critchley
3d1249a520
Add error condition for Control EXIT_TREE notif
2021-10-28 00:26:57 +01:00
Haoyu Qiu
23c64fc43c
Fix RichTextLabel underline appearance when inside fill tag
2021-10-27 21:04:20 +08:00
Yuri Sizov
b3fc278dcf
Ignore property groups and categories in GDScript code completion
2021-10-26 20:01:49 +03:00
Yuri Sizov
7fe0dab69b
Add focus font color to Button and derivatives
2021-10-26 17:40:51 +03:00
Rémi Verschelde
8ff437822a
Control: Rename Input
group that confuses GDScript completion
...
Fixes #47926 .
2021-10-25 22:07:20 +02:00
Anton Christoffersson
35eeafdb0c
Fixes crash in caused by calling ColorPickerButton.propagate_notification(33)
2021-10-25 08:47:44 +02:00
Rémi Verschelde
62f56af694
Merge pull request #54146 from akien-mga/3.x-cherrypicks
2021-10-23 18:34:23 +02:00
Rémi Verschelde
5a48cba649
Merge pull request #54152 from bjauny/fix_treenotification
2021-10-23 18:33:32 +02:00
Bastien JAUNY
e74db1de23
#54143 Fix potential null pointer dereference
2021-10-23 14:47:02 +02:00
Robin Arys
0dcf1e3a45
Fix Tabs crash where it still tries to detect the clicked tab even if there are none
...
(cherry picked from commit 2203670ccc
)
2021-10-23 11:53:58 +02:00
Haoyu Qiu
5366743454
Fix RichTextLabel meta link detection when used inside a fill tag
2021-10-22 16:20:56 +08:00
Haoyu Qiu
7e6e6c871b
Make RichTextLabel honor content margin when drawing font shadow
2021-10-21 11:30:45 +08:00
Haoyu Qiu
37ef6036d0
Add missing cache clear in RichTextLabel::_process_line
2021-10-20 23:46:57 +08:00
floppyhammer
0b5724514d
Fix bilinear TextureProgressBar with nine patch enabled
...
(cherry picked from commit a238816f0b
)
2021-10-15 12:51:42 +02:00
Michael Alexsander
eeb6652436
Fix invisible tabs not being ignored in Tabs
...
(cherry picked from commit 3c5103ac1d
)
2021-10-10 12:27:51 +02:00
Haoyu Qiu
52a840b9c9
Fix crash when tooltip_request_func object is freed
2021-10-06 15:33:31 +08:00
Michael Alexsander
a5214f437f
Fix Tabs
offset overreaching when scrolling fast
...
(cherry picked from commit 0dd65fff3b
)
2021-10-05 10:53:06 +02:00
Yuri Sizov
98cf645258
Expose API to retrieve Theme's default font
2021-10-04 17:44:53 +03:00
Rémi Verschelde
2b642d68c1
Merge pull request #52752 from Pineapple/fix-richtextlabel-character-offsets
2021-10-04 08:52:26 +02:00
Haoyu Qiu
eab1e228c8
Fix LineEdit undo crash
...
Make sure all related member variables are initialized before creating
the first undo state.
2021-09-29 13:52:40 +08:00
Matthew Newall
e01d609c02
Updated Tabs to not update excessively
...
(cherry picked from commit 082f924566
)
2021-09-27 18:09:47 +02:00
Michael Alexsander
b4d6afb7ad
Expose TabContainer
's tab hidding for scripts
...
(cherry picked from commit 7ce02b642e
)
2021-09-27 18:06:36 +02:00
Yuri Sizov
020807dc0f
Correctly calculate position of the folding arrow in Tree
2021-09-25 02:01:35 +03:00
skysphr
f53294f874
Added increment_pressed and decrement_pressed icons to scrollbars
...
(cherry picked from commit e27ab2708f
)
2021-09-21 17:14:59 +02:00
kobewi
44a56c9742
Add offset for TextureProgress progress texture
...
(cherry picked from commit e78ee616f7
)
2021-09-21 17:14:59 +02:00
Rémi Verschelde
d92405de74
Merge pull request #52728 from jmb462/ninepatchrect_node_warning
2021-09-17 20:22:10 +02:00
jmb462
a9d0baa4f4
Add a node warning using NinePatchRect's Tile or Tile Fit modes in GLES2
2021-09-17 06:29:10 +02:00
Bartłomiej T. Listwon
903765f94d
Fix RichTextLabel character horizontal offset calculation
2021-09-16 21:44:17 +02:00
PouleyKetchoupp
ab55c33c20
Fix TextEdit cursor update when adding or deleting text
...
Updating the viewport while setting the line index before the column is
set could wrongly cause the text to be scrolled down.
2021-09-16 09:14:22 -07:00
Ed Swartz
c79898a7b8
Use left/right arrow to move cursor when unselecting in LineEdit
...
-- useful for rename dialog (the filename portion is selected by
default, and usually, want to change the end of the name, not the
beginning)
2021-09-14 20:26:10 -05:00
Yuri Roubinsky
b36b81cbdd
Better port handling connection for GraphEdit
...
(cherry picked from commit 61904d56ea
)
2021-09-14 13:41:27 +02:00
Haoyu Qiu
930a1ea746
Make RichTextLabel honour default cursor shape property
...
(cherry picked from commit d12cceadd2
)
2021-09-14 13:41:26 +02:00
Gilles Roudière
cf48297ea2
Merge pull request #52047 from nobuyukinyuu/bind-get-tab-idx-at-point
...
[3.x] Bind TabContainer::get_tab_idx_at_point() to ClassDB
2021-09-07 11:10:27 +02:00
Hugo Locurcio
85ebe8e3f6
Add visual feedback when hovering or dragging the code minimap grabber
...
This makes it more obvious that the minimap grabber can be dragged
to scroll.
2021-09-04 02:25:44 +02:00
kleonc
8004678d57
TabContainer Fix drawing current tab when it's disabled
2021-09-01 04:01:07 +02:00
nobuyuki_nyuu
522af5c614
Bind TabContainer::get_tab_idx_at_point() to ClassDB
2021-08-29 09:11:41 -05:00
Max Hilbrunner
17e61fa0af
Merge pull request #52095 from kleonc/tree-item-drag-drop-drawing-3x
...
[3.x] Tree Fix line rendering when drag and dropping TreeItem
2021-08-27 20:55:58 +02:00
LeaoLuciano
9cecabb186
LinkButton's text now is automatically translated
2021-08-26 17:56:34 -03:00
kleonc
92ea0f7dd9
Tree Fix line rendering when drag and dropping TreeItem
2021-08-25 12:03:05 +02:00
Hugo Locurcio
43da1790c8
Remove deprecation warning for BaseButton.enabled_focus_mode
...
There were too many instances of false positives that are difficult
to fix. The note in the class reference has been clarified instead.
2021-08-22 21:47:53 +02:00
Anas Saifi
4874270592
Removed unused variable
2021-08-22 15:58:45 +05:30
Anas Saifi
9b06355488
Update scene/gui/rich_text_label.cpp
...
Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
2021-08-22 15:18:52 +05:30
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