Rémi Verschelde
d9a74fd07f
Merge pull request #54372 from bruvzg/text_edit_ui
2021-11-09 00:13:25 +01:00
Rémi Verschelde
6c4737341d
Merge pull request #54649 from bruvzg/shadows
2021-11-09 00:07:41 +01:00
Hendrik Brucker
ed0337c0b9
Several Gradient improvements
2021-11-08 19:11:36 +01:00
bruvzg
5f9cd9ccbc
Fix Label and RichTextLabale text shadows and shadow outlines.
2021-11-06 10:22:09 +02:00
Rémi Verschelde
3abb5a9035
Add missing argument names for bindings in GDExtension
2021-11-04 15:27:23 +01:00
Hugo Locurcio
c012fbc8b2
Rename `PROPERTY_USAGE_NOEDITOR` to `PROPERTY_USAGE_NO_EDITOR`
...
This is consistent with other constants that include `NO`,
such as `PROPERTY_HINT_COLOR_NO_ALPHA`.
2021-11-03 23:06:17 +01:00
Rémi Verschelde
f00ba792b3
Merge pull request #54533 from rafallus/menubutton_items
2021-11-03 17:33:11 +01:00
Rémi Verschelde
a2803f3d86
Merge pull request #54072 from KoBeWi/hrcr_is_ded
2021-11-03 17:31:48 +01:00
rafallus
4554892223
Implement inspector property array for `PopupMenu` and `MenuButton`
2021-11-03 09:32:29 -06:00
floppyhammer
f9b1ce0922
Fix nine patch of circular TextureProgressBar
2021-11-01 14:14:49 +08:00
HungryProton
5869d053f9
Fix popup trying to emit a non existing signal when closed
2021-10-31 23:21:31 +01:00
bruvzg
3f33e1d7d6
Add functions for getting name and font style from dynamic and bitmap fonts.
...
Add font selection toolbar editor plugin.
2021-10-31 12:40:58 +02:00
Hendrik Brucker
231285b6fb
Fix CheckButton and CheckBox font hover pressed color
...
Co-authored-by: Kjetil Fosse <kjetil.fosse@outlook.com>
2021-10-31 02:10:45 +02:00
Hugo Locurcio
2ad6e11b78
Don't store and show current file/directory/path FileDialog properties
...
These properties are only useful at run-time, so they don't need
to be displayed in the editor and stored.
2021-10-29 20:16:45 +02:00
Max Hilbrunner
343414cba5
Merge pull request #54328 from YeldhamDev/tabbar_close_signal_rename
...
Rename `TabBar`'s `tab_closed` signal to `tab_close_pressed`
2021-10-29 13:21:09 +02:00
Michael Alexsander
4c563a51c3
Rename `TabBar`'s `tab_closed` signal to `tab_close_pressed`
2021-10-28 13:10:44 -03:00
Rémi Verschelde
3b11e33a09
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 15:19:35 +02:00
LeaoLuciano
f21b5e4d2f
Fix memory leak in RichTextLabel.remove_line
2021-10-28 07:51:48 -03:00
Rémi Verschelde
6d930bd270
Merge pull request #54342 from groud/remove_item_list_editor
2021-10-28 11:52:47 +02:00
Gilles Roudière
a51f92273a
Remove ItemList editor and replace it by a property array
2021-10-28 10:16:51 +02:00
kobewi
de4f29f458
Remove node_hrcr hack
2021-10-28 01:43:34 +02:00
Rémi Verschelde
3e26ad3a5f
Merge pull request #54320 from YeldhamDev/tabbar_close_last_fix
2021-10-27 22:24:43 +02:00
Michael Alexsander
96fdb030ec
Fix uninteractable singular tab in `TabBar`
2021-10-27 16:13:04 -03:00
Rémi Verschelde
21529c90f8
Merge pull request #54166 from ConteZero/unique_selection
2021-10-27 20:50:54 +02:00
ConteZero
fbee4efa5f
Add option to make selection unique
2021-10-27 19:45:52 +02:00
Yuri Sizov
12838bd99d
Add focus font color to Button and derivatives
2021-10-26 17:42:40 +03:00
bruvzg
ebbc25e89c
Ignore empty Font resources as theme override.
...
Add range hint to font_size properties.
Remove excessive `base_size` Font property.
2021-10-25 14:05:37 +03:00
Rémi Verschelde
b2ab5cb504
Merge pull request #54045 from ConteZero/primary_clipboard_linux_fix_warning
2021-10-23 19:13:34 +02:00
Rémi Verschelde
e0f887accd
Merge pull request #54120 from zaevi/fix_null-ref_crashes
2021-10-23 19:00:12 +02:00
Rémi Verschelde
e12fe670e6
Merge pull request #54145 from zedutch/Fix-tree-notification-crash
2021-10-23 18:33:12 +02:00
ConteZero
8c48b4a7e0
Fix primary clipboard warning
2021-10-23 15:50:01 +02:00
Anton Christoffersson
ee81979f90
Fixed crash in `ScrollContainer` _notification
2021-10-23 14:03:26 +02:00
Robin Arys
5c25497aa2
Fix possible crash when calling Tree.notification from _ready
2021-10-23 12:02:09 +02:00
Haoyu Qiu
4f8dfa1667
Make RichTextLabel's parse_bbcode and append_text return void
2021-10-23 14:25:39 +08:00
Zae
924c2078da
Fix unexpected crashes in `notification`
2021-10-23 13:01:52 +08:00
Rémi Verschelde
9f7218eb69
Merge pull request #54088 from madmiraal/remove-unimplemented-methods
2021-10-22 12:59:32 +02:00
Marcel Admiraal
87a4ba492e
Remove unimplemented methods
2021-10-21 18:44:25 +01:00
Rémi Verschelde
0264efe895
Merge pull request #54035 from Calinou/ctl-context-dialog-use-title-case
...
Use TitleCase for CTL dialog menu options
2021-10-21 19:32:35 +02:00
Hugo Locurcio
abbc8facc6
Use TitleCase for CTL dialog menu options
...
This is more consistent with other actions exposed in the dialog.
2021-10-21 17:47:39 +02:00
Robin Arys
2203670ccc
Fix Tabs crash where it still tries to detect the clicked tab even if there are none
2021-10-20 18:26:10 +02:00
Rémi Verschelde
8748247d6f
Merge pull request #53702 from ConteZero/primary_clipboard_linux
2021-10-20 16:35:04 +02:00
Rémi Verschelde
c942d567eb
Merge pull request #53926 from YeldhamDev/i_am_tabbar_now
2021-10-20 15:42:41 +02:00
Murilo Gonçalves
94cba835eb
Fix: typo in TextParagraph class and docs
2021-10-19 16:38:58 -03:00
Michael Alexsander
67acb7de6e
Rename `Tabs` to `TabBar`
2021-10-19 11:37:31 -03:00
Gilles Roudière
1a95f893c4
Implement TileMap patterns palette
2021-10-19 11:57:37 +02:00
ConteZero
838c9d37b4
Added primary clipboard for Linux
2021-10-18 14:01:06 +02:00
Haoyu Qiu
0a381137bc
Fix crash when executing CodeEdit._main_gutter_draw_callback
2021-10-18 19:26:47 +08:00
Ricardo Subtil
88985cbf3a
Fix null crash with TextEdit
2021-10-16 18:24:46 +01:00
Rémi Verschelde
ae74e78909
Remove WebM support (and deps libvpx and opus)
...
We've had many issues with WebM support and specifically the libvpx library
over the years, mostly due to its poor integration in Godot's buildsystem,
but without anyone really interested in improving this state.
With the new GDExtensions in Godot 4.0, we intend to move video decoding to
first-party extensions, and this would likely be done using something like
libvlc to expose more codecs.
Removing the `webm` module means we can remove libsimplewebm, libvpx and
opus, which we were only used for that purpose. Both libvpx and opus were
fairly complex pieces of the buildsystem, so this is a nice cleanup.
This also removes the compile-time dependency on `yasm`.
Fixes lots of compilation or non-working WebM issues which will be linked
in the PR.
2021-10-15 12:09:11 +02:00
floppyhammer
a238816f0b
Fix bilinear TextureProgressBar with nine patch enabled
2021-10-14 11:19:32 +08:00
bruvzg
19a0982d60
Fix inline IME input not working in the empty LineEdit with the placeholder.
2021-10-11 08:21:34 +03:00
kobewi
81c0fe836c
Fix Range property dependencies
2021-10-09 17:36:38 +02:00
Rémi Verschelde
5ae569560d
Fix missing argument names in bindings
...
While at it, tweak some boolean setters to use `p_enabled` for the bool.
Also renames `draw_minimap()` to `set_draw_minimap()`.
2021-10-09 00:20:10 +02:00
Michael Alexsander
3c5103ac1d
Fix invisible tabs not being ignored in `Tabs`
2021-10-07 22:40:11 -03:00
Hugo Locurcio
bcf4a56c74
Replace references to VisualServer in code comments with RenderingServer
...
VisualServer no longer exists in the `master` branch.
2021-10-07 15:49:41 +02:00
Rémi Verschelde
010e17b44f
Merge pull request #53476 from Paulb23/breakpoint-move-up-fix
2021-10-06 16:25:17 +02:00
Paulb23
0caab00d66
Fix breakpointed_lines out of sync when removing lines above
2021-10-06 14:23:37 +01:00
Rémi Verschelde
36de097577
Merge pull request #53460 from timothyqiu/tooltip-request-func
2021-10-06 10:11:46 +02:00
Haoyu Qiu
45e943f4fe
Fix crash when tooltip_request_func object is freed
2021-10-06 15:00:31 +08:00
Rémi Verschelde
9962c59dc5
Merge pull request #53446 from nekomatata/container-pre-sort-children
2021-10-06 08:25:06 +02:00
PouleyKetchoupp
1c0ebc85dd
Add pre-sort signal and notification in Container
...
Allows processing before children are sorted, useful for custom
containers inherited from existing ones like BoxContainer.
2021-10-05 13:09:01 -07:00
Eric M
ced7d51e23
Fix the "END" key behaving like "PAGE_DOWN" in code completion.
...
Before: behaved like page down.
After: goes to last item.
2021-10-06 01:28:29 +10:00
Rémi Verschelde
adc9500e54
Merge pull request #53330 from jmb462/fix-bad-caret-position-after-ctrl-x
...
Fix caret position and viewport centering after deleting line (Ctrl-X)
2021-10-04 18:18:32 +02:00
Rémi Verschelde
bb201c5887
Merge pull request #53303 from akien-mga/53295-gdscript-completion-quote-style
2021-10-04 17:17:27 +02:00
jmb462
fcb102a826
Fix caret position and viewport centering after deleting line (Ctrl-X)
2021-10-04 17:11:20 +02:00
Rémi Verschelde
11c7bac1ed
Merge pull request #53392 from YeldhamDev/tabs_offset_fix
2021-10-04 17:07:35 +02:00
Rémi Verschelde
b85dfd990e
GDScript completion: Handle quote style ad-hoc to remove editor dependency
...
`core` and `scene` shouldn't depend on `editor`, so they can't query this style
setting in `get_argument_options`. But we can handle it after the fact in
GDScript's completion code.
Also cleans up a couple extra unused invalid includes in `core`.
2021-10-04 16:16:05 +02:00
Michael Alexsander
0dd65fff3b
Fix `Tabs` offset overreaching when scrolling fast
2021-10-04 10:37:53 -03:00
Yuri Sizov
bdbb7b3999
Remove EDSCALE dependency from /scene/gui
2021-10-04 15:25:08 +03:00
Yuri Sizov
4a42a66cd9
Add the base scale factor to the Theme resource
2021-10-04 15:25:07 +03:00
Jean-Michel Bernard
9c375170e4
Fix deleting selection at the first line do not work with backspace
2021-10-01 20:23:52 +02:00
bruvzg
0c0b5c84b0
Implement TextServer GDExtension interface, remove TextServer GDNative interface.
2021-10-01 15:13:29 +03:00
Eric M
4baddc1126
Allow non-control Nodes to handle drag forwarding (e.g. Windows)
2021-10-01 18:03:51 +10:00
Rémi Verschelde
a28f44fa53
Merge pull request #53277 from YeldhamDev/tabs_renaming
2021-10-01 07:52:29 +02:00
Michael Alexsander
663e480f24
Rename some elements of `Tabs`
2021-09-30 20:18:23 -03:00
Lightning_A
c63b18507d
Use range iterators for `Map`
2021-09-30 15:09:12 -06:00
Rémi Verschelde
a662ca66aa
Merge pull request #53112 from EricEzaM/better-breakpoint-gutter
2021-09-30 14:57:23 +02:00
Eric M
e0f8410d16
Improved breakpoint gutter for CodeEdit.
...
Added preview of breakpoint placement on hover. Added override of icon for the Editor to use an SVG so it is no longer blurry.
2021-09-30 22:15:47 +10:00
Paulb23
7926d75d02
Fix TextOp setting to none when typing
2021-09-29 17:34:44 +01:00
Rémi Verschelde
6c0f44ca7e
Merge pull request #53000 from Chaosus/lineedit_expose_selection_methods
2021-09-29 10:31:37 +02:00
Rémi Verschelde
ad635567b1
Merge pull request #53189 from AnilBK/use-class-specific-funcs
2021-09-29 07:40:52 +02:00
Anilforextra
fc9767abb1
Use functions defined in the their classes.
2021-09-29 09:36:34 +05:45
jmb462
7fabbe2760
Fix tree title column size minimum width
2021-09-28 14:54:48 +02:00
Rémi Verschelde
c89c2878ef
Merge pull request #53001 from floppyhammer/fix-tree-item-width
2021-09-28 10:53:56 +02:00
jmb462
3f0fe0b8a3
Fix LineEdit and TextEdit double-click and triple-click selection
2021-09-26 19:56:48 +02:00
Rémi Verschelde
73668c59aa
Merge pull request #52824 from e8newallm/52680
...
Updated Tabs to not update excessively
2021-09-26 19:35:58 +02:00
Matthew Newall
082f924566
Updated Tabs to not update excessively
2021-09-26 17:05:44 +00:00
floppyhammer
53efc55409
Fix minimum size of TreeItem
2021-09-26 17:02:54 +08:00
Rémi Verschelde
9293c76636
Merge pull request #53049 from AnilBK/dont-construct-2
2021-09-25 12:26:08 +02:00
Anilforextra
cdd912c48e
Construct values only when necessary.
2021-09-25 14:46:45 +05:45
Yuri Sizov
873443756d
Correctly calculate position of the folding arrow in Tree
2021-09-25 02:01:14 +03:00
Rémi Verschelde
994c1201c1
Merge pull request #52996 from YeldhamDev/im_the_invisible_tab
2021-09-25 00:11:51 +02:00
Rémi Verschelde
46cc0af5c5
Merge pull request #53009 from Chaosus/fix_completion_results
2021-09-24 21:42:38 +02:00
Rémi Verschelde
01d505e507
Merge pull request #52993 from YeldhamDev/tabs_rename_fix
2021-09-24 21:40:23 +02:00
Michael Alexsander
edf3d225ce
Fix tab renaming not updating its size in `Tabs`
2021-09-24 10:44:04 -03:00
Yuri Roubinsky
e70a0d950a
Fix incorrect offsets of tooltip content in `CodeEdit`
...
Fix incorrect offsets of tooltip content in `CodeEdit`
2021-09-24 16:33:39 +03:00
Rémi Verschelde
32ab77ef8f
Merge pull request #52430 from AnilBK/vector2-replacements
2021-09-24 13:04:42 +02:00
Rémi Verschelde
b8a6eb6d9b
Merge pull request #38414 from theoway/Fix-GraphNode_offset_update
2021-09-24 13:01:20 +02:00
Yuri Roubinsky
4e0552a4ff
Add selection getter methods to `LineEdit`
2021-09-24 11:30:58 +03:00
Michael Alexsander
7ce02b642e
Expose `TabContainer`'s tab hidding for scripts
2021-09-24 01:26:59 -03:00
Anilforextra
cc51b045da
Construct values only when necessary.
2021-09-23 22:26:07 +05:45
Rémi Verschelde
88b347dc27
Merge pull request #51920 from jmb462/missing-sname-macro-optimization-in-some-functions
2021-09-23 13:14:20 +02:00
Umang Kalra
9aa0b3c46e
Fixes sync issue between position_offset and rect_position in GraphNode
...
Bleh
2021-09-23 10:53:45 +05:30
Eric M
baba971c81
Added option for spinbox to update it's value on line edit 'text_changed' rather than 'text_entered'
2021-09-21 23:24:33 +10:00
bruvzg
c931906af7
Add flag to connected grapheme. Apply RTL displacement FX only to the whole connected grapheme. Pass more glyph info to the custom RTL FX.
2021-09-21 13:51:38 +03:00
bruvzg
99dc2ec9e1
Fix RTL layout Label text, VBox child, 3D node editor controls, and popup menu alignment.
2021-09-21 10:35:23 +03:00
Rémi Verschelde
91294b4a21
Merge pull request #52519 from e8newallm/52497-Remove_Unused_Variable
...
Removed unused Ref<Font> font variables
2021-09-20 12:35:25 +02:00
Rémi Verschelde
1e93e3fc49
Merge pull request #52848 from Paulb23/code-edit-tests
2021-09-20 11:43:21 +02:00
Paulb23
35264d5782
Change completion prefixes to single char and unnecessary ui_cancel accept_event
2021-09-20 09:42:39 +01:00
bruvzg
9d0e3cff09
Fix `Label` and `RichTextLabel` `visible_characters` and `percent_visible` methods.
2021-09-20 09:35:24 +03:00
Rémi Verschelde
b334560f05
Merge pull request #49376 from menip/OptionButtonFix
2021-09-17 16:00:42 +02:00
HaSa1002
053b3b946c
Remove bbcode_text from RichTextLabel
...
Also renames:
- append_bbcode -> append_text
- get_bbcode -> get_text
- set_bbcode -> set_text
- get_text -> get_parsed_text
Property text is:
set_text
get_text
2021-09-16 22:27:08 +02:00
Rémi Verschelde
ed9fd36276
Merge pull request #52672 from KoBeWi/GraphError
...
Fix error when moving graph node
2021-09-15 13:22:54 +02:00
Rémi Verschelde
0a8e137c61
Merge pull request #52313 from groud/cache_tree_item_size
2021-09-15 13:21:56 +02:00
Rémi Verschelde
39e35ab6ee
Merge pull request #52353 from williamd67/documentation-view-scroll-to-end
...
Documentation view scroll to end
2021-09-14 22:25:58 +02:00
Rémi Verschelde
72c813630f
Merge pull request #52583 from e8newallm/52360
...
Removed updates that caused unnecessary window updates
2021-09-14 20:54:05 +02:00
kobewi
645dc40cba
Fix error when moving graph node
2021-09-14 16:09:33 +02:00
Rémi Verschelde
d039f4af14
Merge pull request #52185 from Paulb23/nested-complex-ops
...
Allow nested complex ops in TextEdit
2021-09-14 11:57:42 +02:00
Matthew Newall
09ea88572f
Removed updates that caused unnecessary window updates
2021-09-13 22:08:14 +00:00
Rémi Verschelde
0b60b9f75c
Merge pull request #52443 from Paulb23/code-edit-indext-fixes
...
Fix brace placement with space auto indent
2021-09-13 21:52:38 +02:00
Rémi Verschelde
655dec581c
Merge pull request #52346 from Paulb23/string-tracking-fixes
...
Fix getting deliminator start over empty lines and blank start keys
2021-09-13 21:52:28 +02:00
Rémi Verschelde
2a1807b12d
Merge pull request #52517 from Paulb23/block-comment-folding
...
Fix block deliminator not-folding at end of file
2021-09-13 21:51:41 +02:00
Rémi Verschelde
70ba366743
Merge pull request #50375 from Paulb23/code_edit_unit_tests
2021-09-13 21:51:20 +02:00
Tomasz Chabora
e1cc70309c
Fix error when click edge of the tree icon
2021-09-13 18:03:03 +02:00
Hugo Locurcio
f85426e8ad
Merge pull request #51805 from skysphr/scrollbar-icons-pressed
...
Added increment_pressed and decrement_pressed icons to scrollbars
2021-09-13 14:57:21 +02:00
Rémi Verschelde
c7455d9d42
Merge pull request #52012 from bruvzg/fix_label_outline
2021-09-13 14:23:52 +02:00
Juan Linietsky
729461b2a4
Merge pull request #51158 from YeldhamDev/potgen_enhancements
...
Make some enhancements to the POT generation
2021-09-09 20:21:29 -03:00
Matthew Newall
02cbf94022
Removed unused Ref<Font> font variables
2021-09-09 19:47:16 +00:00
Paulb23
d647ba3540
Fix block deliminator not-folding at end of file
2021-09-09 19:04:08 +01:00
Gilles Roudière
321ee7bda1
Merge pull request #52106 from Paulb23/text-edit-optimisation
...
Optimise TextEdit get line height and width
2021-09-08 14:04:41 +02:00
Max Hilbrunner
43c896ac6a
Merge pull request #52082 from williamd67/fix-custom-effects-dropdown-menu
...
RichTextLabel returns member (Array) for custom effects for Editor
2021-09-07 21:52:05 +02:00
Max Hilbrunner
3f6a01e848
Merge pull request #52145 from LeaoLuciano/linkbutton-translation-4.0
...
LinkButton's text now is automatically translated
2021-09-07 21:43:43 +02:00
Max Hilbrunner
99ffbbfc44
Merge pull request #52339 from jmb462/fix-fold-function-with-comment-fail
...
Fix wrong folding behaviour of last block if containing comment
2021-09-07 20:40:33 +02:00
Max Hilbrunner
da31873e2c
Merge pull request #52359 from williamd67/fix-autocomplete-merge
...
Fix incorrectly removing two characters by auto brace
2021-09-07 20:37:39 +02:00
Max Hilbrunner
06b4a48444
Merge pull request #52436 from daniel-mcclintock/fix-out-of-bounds-completion-crash
...
Fix crash during completion lookback
2021-09-07 19:25:40 +02:00
Gilles Roudière
88c3e3180a
Merge pull request #52050 from nobuyukinyuu/bind-get-tab-idx-at-point-40
...
Bind TabContainer::get_tab_idx_at_point() to ClassDB
2021-09-07 11:09:35 +02:00
Anilforextra
a1f616dcfc
Use builtin Vector2 functions for calculation of angles.
...
.
2021-09-07 08:30:26 +05:45
Paulb23
9785167b39
Fix brace placement with space auto indent
2021-09-06 17:10:39 +01:00
Gilles Roudière
1f97d57384
Merge pull request #35859 from Calinou/minimap-add-hover-pressed-feedback
...
Add visual feedback when hovering or dragging the code minimap grabber
2021-09-06 16:22:36 +02:00
daniel-mcclintock
8a8c172b93
Fix crash during completion lookback
2021-09-06 23:10:06 +10:00
Awkor
3aa2a7fc18
Prevent editing properties managed by parent container
2021-09-05 23:23:53 +02:00
jmb462
752e2bcee0
Fix comment causes content of folded methods to not hide
2021-09-05 12:30:27 +02:00
Silc 'Tokage' Renew
facf8f1883
Apply set_read_only() to child classes of EditorProperty elements
2021-09-05 18:22:17 +09:00
Hugo Locurcio
c8949f21e7
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:22 +02:00
William Deurwaarder
b92347c220
Fix incorrectly removing two characters by auto brace
...
In some situations when there were no braces auto brace still removed two
characters. This has been fixed by adding a test that a brace is found.
2021-09-03 00:33:50 +02:00
William Deurwaarder
b54b0bc580
Fix documentation viewer to scroll to end
...
Extra `line separation` height was not taken into account when the offset for
the different paragraphs (lines) was calculated.
2021-09-02 22:11:14 +02:00
Paulb23
dd0988f027
Fix getting deliminator start over empty lines and blank start keys
2021-09-02 18:22:49 +01:00
Michael Alexsander
ee4b0108e0
Make some enhancements to the POT generation
2021-09-02 11:12:54 -03:00
Paulb23
ce064348fa
Add CodeEdit breakpoint unit tests
2021-09-01 16:46:04 +01:00
Gilles Roudière
ace19bd4c6
Cache TreeItem minimum size for performance.
2021-09-01 16:26:41 +02:00
Gilles Roudière
c97afc033f
Merge pull request #38722 from KoBeWi/proposition
...
Add offset for TextureProgress progress texture
2021-09-01 16:20:05 +02:00
kobewi
e78ee616f7
Add offset for TextureProgress progress texture
2021-09-01 14:39:08 +02:00
kleonc
3311a5b593
TabContainer Fix drawing current tab when it's disabled
2021-09-01 03:59:45 +02:00
menip
4f4c9a5f57
Make Color Picker, Menu Button, Option Button consider camera position scale for popup position.
2021-08-30 08:42:33 -07:00
Juan Linietsky
72bf79186e
Merge pull request #30391 from KoBeWi/hiding_children
...
Add support for internal nodes
2021-08-29 19:36:30 -03:00
nobuyuki_nyuu
65d83cc99b
Bind TabContainer::get_tab_idx_at_point() to ClassDB
2021-08-29 09:10:44 -05:00
Michael Alexsander
565ba91d28
Merge pull request #51906 from requizm/fix/49077
...
Fix tooltips don't appear for PopupMenus
2021-08-28 15:43:02 +00:00
Paulb23
c5d7ae7920
Allow nested complex ops in TextEdit
2021-08-28 12:49:55 +01:00
Paulb23
de009cb5ae
Optimise TextEdit get height and width
2021-08-28 11:27:23 +01:00
kobewi
a913ae8d56
Add support for internal nodes
2021-08-28 02:07:23 +02:00
LeaoLuciano
c50c5b9bef
LinkButton's text now is automatically translated
2021-08-27 20:11:58 -03:00
Max Hilbrunner
701195937d
Merge pull request #52096 from kleonc/tree-item-drag-drop-drawing
...
Tree Fix line rendering when drag and dropping TreeItem
2021-08-27 20:55:37 +02:00
Ellen Poe
3598d300cb
Do all audio mixing in the AudioServer
2021-08-27 10:41:57 -07:00
bruvzg
4c3f7d1290
Makes FontData importable resource.
...
Adds multi-channel SDF font texture generation and rendering support.
Adds per-font oversampling support.
Adds FontData import plugins (for dynamic fonts, BMFonts and monospaced image fonts), font texture cache pre-generation and loading.
Adds BMFont binary format and outline support.
2021-08-27 15:43:18 +03:00
Haoyu Qiu
eba7265a1c
Fix misspelled "overriden"
...
In recent GDVIRTUAL PR and SkeletonModification3DJiggle doc.
2021-08-26 01:44:01 +08:00
kleonc
d35ef5fab0
Tree Fix line rendering when drag and dropping TreeItem
2021-08-25 13:29:54 +02:00
JFonS
c334989e00
Merge pull request #51821 from Calinou/builtin-shaders-add-comments
...
Add comments at the top of each built-in shader to ease debugging
2021-08-25 11:37:57 +02:00
William Deurwaarder
d875706e01
RichTextLabel returns member (Array) for custom effects for Editor
...
As RichTextLabel returned a copy of the member (Vector) the editor was notified
that the value had changed which caused the dropdown menu to be immediately
closed after opening.
The fix is to return the member (Array) in stead of a copy which is the same
instance and thereby does not notify the editor that the value has changed.
2021-08-24 22:02:24 +02:00
Haoyu Qiu
d12cceadd2
Make RichTextLabel honour default cursor shape property
2021-08-24 22:07:42 +08:00
Michael Alexsander
88db541705
Merge pull request #51947 from AnilBK/redundant-assignments
...
[cppcheck] Remove some redundant assignments.
2021-08-23 13:23:45 +00:00
bruvzg
54345f11fb
Fix label outline overlaps.
2021-08-23 14:13:13 +03:00
reduz
5cecdfa8af
Entirely removes BIND_VMETHOD in favor of GDVIRTUAL
...
* `_gui_input`, `_input`, `_unhandled_input` and `_unhandled_key_input` are now regular C++ virutal functions.
* Everything else converted to GDVIRTUAL
* BIND_VMETHOD is gone, always use the new syntax from now on.
Creating `_gui_input` method and using the binder to register events will no longer work, simply override the virtual function now.
2021-08-23 08:10:13 -03:00
Jummit
856d0b52e5
Fix GraphEdit connection colors
2021-08-22 21:09:16 +02:00
Michael Alexsander
2f8a58ad46
Merge pull request #51886 from Geometror/fix-layout-editor-file-dialog
...
Fix ItemList layout (+EditorFileDialog)
2021-08-22 16:47:11 +00:00
K. S. Ernest (iFire) Lee
7cbf5a547f
Merge pull request #51700 from Geometror/fix-color-picker
...
Reimplement ColorPicker presets
2021-08-22 08:23:09 -07:00
K. S. Ernest (iFire) Lee
51ec46e10f
Merge pull request #51975 from Jummit/consistent-graphedit-connections
...
Make GraphEdit connections consistent on zoom
2021-08-22 07:37:26 -07:00
reduz
3682978aee
Replace BIND_VMETHOD by new GDVIRTUAL syntax
...
* New syntax is type safe.
* New syntax allows for type safe virtuals in native extensions.
* New syntax permits extremely fast calling.
Note: Everything was replaced where possible except for `_gui_input` `_input` and `_unhandled_input`.
These will require API rework on a separate PR as they work different than the rest of the functions.
Added a new method flag METHOD_FLAG_OBJECT_CORE, used internally. Allows to not dump the core virtuals like `_notification` to the json API, since each language will implement those as it is best fits.
2021-08-22 08:23:58 -03:00
Jummit
7c1181116f
Make GraphEdit connections consistent on zoom
2021-08-22 11:08:37 +02:00
K. S. Ernest (iFire) Lee
51800eebc6
Merge pull request #51965 from theoway/fix_node_arranger_origin_bug
...
Fixes position offset of node groups set by arrange_nodes() in GraphEdit
2021-08-22 01:52:30 -07:00
Umang Kalra
aee3de7b79
Fixes position offset of node groups set by arrange_nodes() in GraphEdit
2021-08-22 03:57:58 +05:30
Jummit
e9ef6f9815
Refactor GraphEdit connections
...
Remove duplicate bezier code and use Curve instead.
Add an overridable method for retrieving the points of a connection line, which
makes it posible to create custom connections lines.
2021-08-21 22:15:26 +02:00
Anilforextra
c86db8b710
Remove redundant assignments.
...
Use used_in_transfer instead of used_in_compute twice.
2021-08-21 19:20:07 +05:45
Hendrik Brucker
72e49eadec
Fix ItemList layout (+EditorFileDialog)
2021-08-21 00:22:09 +02:00
Menderes
31face36e7
Fix line_separation working incorrectly in find_click of RichTextLabel
...
Apply suggestions from code review
Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
2021-08-21 00:59:44 +03:00
Hugo Locurcio
2daef0400a
Merge pull request #51866 from requizm/fix/49455
...
Fix `line_separation` working incorrectly in `RichTextLabel`
2021-08-20 23:24:42 +02:00
requizm
6f3d8fa228
Fix tooltip message working incorrectly in PopupMenu
...
fix
2021-08-20 23:06:00 +03:00
requizm
39b90802d0
Fix line_separation constant working incorrectly in RichTextLabel
2021-08-20 23:03:13 +03:00
jmb462
54de7114c5
Add missing SNAME macro optimization for StringName in some functions
2021-08-20 14:50:24 +02:00
Rémi Verschelde
93dac1c7db
Merge pull request #51804 from ThreeRhinosInAnElephantCostume/fixundoredo
2021-08-19 17:49:01 +02:00
ThreeRhinosInAnElephantCostume
0aa13ecd30
fixed popup_menu buttons getting triggered by lmb press instead of release.
2021-08-19 15:56:33 +02:00
Michael Alexsander
9819be7562
Minor tweaks/fixes for the Command Palette
2021-08-18 13:12:14 -03:00
Rémi Verschelde
a031579286
Merge pull request #50752 from Phischermen/indeterminate_checkmark_api
...
Added icons and API for indeterminate checkmarks for the Tree class.
2021-08-18 10:31:06 +02:00
Hugo Locurcio
a139e58f8c
Add comments at the top of each built-in shader to ease debugging
...
When a shader error is printed about a built-in shader, the origin
of the shader will now be recognizable immediately by looking at
the top of the printed shader code.
2021-08-18 03:09:22 +02:00
Hendrik Brucker
ff9901f51e
Reimplement ColorPicker presets
2021-08-18 02:09:48 +02:00
skysphr
e27ab2708f
Added increment_pressed and decrement_pressed icons to scrollbars
2021-08-17 22:09:29 +03:00
Haoyu Qiu
16c2d4ef22
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-17 21:11:10 +08:00
Rémi Verschelde
c4e03672e8
Merge pull request #51760 from requizm/fix/deleteallselection
...
Deletion occurs when all text is selected
2021-08-17 09:58:57 +02:00
requizm
37ad82a7f7
We can delete all text on TextEdit
...
While all text of TextEdit was selected, deletion with backspace did not occur. It can now be deleted.
2021-08-17 02:30:14 +03:00
Kevin Fischer
75866c81e7
Added icons and API for indeterminate checkmarks for the Tree class.
2021-08-16 10:13:06 -07:00
Rémi Verschelde
cfdac0973c
Merge pull request #51698 from Paulb23/text-editor-settings
...
Reorganise text editor settings
2021-08-16 18:48:58 +02:00
Paulb23
bcfc591f86
Reorganise text editor settings
2021-08-16 17:18:49 +01:00
Haoyu Qiu
6ca476b406
Fix MenuButton not emitting about_to_popup signal
2021-08-16 20:53:10 +08:00
Vignesh1-art
eb5b0d013f
Fixed crash executing TextEdit.new().set_draw_control_chars(true)
...
Fixes #51613 .
2021-08-16 12:36:14 +02:00
Rémi Verschelde
2edc47caea
Merge pull request #51249 from kleonc/tab_container-fix-disconnecting-errors
...
TabContainer: Fix error on removing top-level Control child, Remove _get_tab method
2021-08-16 10:35:20 +02:00
Rémi Verschelde
966559c3bd
Merge pull request #51512 from Bhu1-V/PR/cmd-fix
...
command palette improvements
2021-08-15 16:01:49 +02:00
Bhuvan Vemula
a0205e4f34
command palette improvements
2021-08-15 11:40:44 +05:30
Rémi Verschelde
14a2e59875
Merge pull request #51642 from akien-mga/cleanup-use_single_quotes
2021-08-13 21:49:06 +02:00
Rémi Verschelde
761eb7e06a
Merge pull request #51585 from Paulb23/theme-update-optimisation
2021-08-13 21:33:36 +02:00
Rémi Verschelde
84461a5c91
Merge pull request #50609 from bruvzg/te_block_caret
...
[TextEdit] Improve block/insert caret drawing.
2021-08-13 21:33:02 +02:00
Rémi Verschelde
81512a3732
Style: Cleanup code using `text_editor/completion/use_single_quotes`
2021-08-13 21:27:57 +02:00
Paulb23
273374957b
Only update TextEdit text cache when dirty
2021-08-13 17:47:53 +01:00
Paulb23
b6f5912174
Move CodeEdit theme overrides into EditorTheme
2021-08-13 17:47:53 +01:00
Yuri Roubinsky
6e87ff28ed
Fix incorrect completion popup size of `CodeEdit`
2021-08-13 19:34:18 +03:00
bruvzg
00381db2e7
[TextEdit] Improve block/insert caret drawing.
2021-08-13 19:28:47 +03:00
Paulb23
b73983340d
Add bulk theme overrides to Control
2021-08-13 16:41:36 +01:00
Aaron Franke
eb4902a455
Fix some unnecessary includes
2021-08-13 00:27:38 -05:00
Paulb23
a736fb8ce9
Fix breakpoint toggle signal not firing when expected
2021-08-12 14:47:10 +01:00
Rémi Verschelde
a695a6764e
Merge pull request #50371 from Paulb23/text_edit_cleanup
2021-08-12 15:30:12 +02:00
Paulb23
a4606c2806
Cleanup and complete TextEdit inspector and docs
2021-08-12 11:43:35 +01:00
Paulb23
ae4dcb8918
Cleanup and bind remaing methods in TextEdit
2021-08-12 11:43:35 +01:00
Yuri Roubinsky
810c30dc09
Merge pull request #51517 from Chaosus/precise_graphedit_port_handling
...
Better port handling connection for `GraphEdit`
2021-08-12 11:40:52 +03:00
Paulb23
0a32a6907b
Cleanup and expose viewport / scrolling methods
2021-08-12 09:29:58 +01:00
Paulb23
7dbb0f3233
Rename readonly to editable
2021-08-12 09:29:58 +01:00
Paulb23
b799e5583a
Rename insert mode to overtype mode
2021-08-12 09:29:58 +01:00
Paulb23
b700011314
Protect internal CodeEdit --> TextEdit API
2021-08-12 09:29:58 +01:00
Paulb23
9ec3e7f3d7
Cleanup TextEdit selection methods
2021-08-12 09:29:56 +01:00
Paulb23
7e70f9e0b9
Expose and cleanup TextEdit line wrap API
2021-08-12 09:29:16 +01:00
Paulb23
d5dcaee4c5
Cleanup and rename caret operations
2021-08-12 09:29:13 +01:00
Paulb23
e60900a353
Make TextEdit cut, copy and paste overridable
2021-08-12 09:27:10 +01:00
Paulb23
abbf14e7f5
Remove dead code from TextEdit
2021-08-12 09:27:10 +01:00
Rémi Verschelde
fba0c8e2e2
Merge pull request #51502 from codecat/fix-caret-selection
...
Move cursor to edge of selection when moving caret left/right
2021-08-12 10:07:12 +02:00
Yuri Roubinsky
61904d56ea
Better port handling connection for `GraphEdit`
2021-08-12 09:09:24 +03:00
Melissa Geels
408401a642
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 .
2021-08-11 21:49:26 +02:00
Melissa Geels
ed4c3eb7b3
Move cursor to edge of selection when moving caret left/right
...
This is to mimic the behavior of many third party text editors. The
reason it's not doing it when moving by word is due to that behavior
being mostly the same on other editors.
2021-08-11 13:27:12 +02:00
Rémi Verschelde
c00303ff55
Merge pull request #47378 from aaronfranke/use-input-enums
...
Use key enum instead of plain integers for input code
2021-08-11 11:20:45 +02:00
Rémi Verschelde
2c88e1c15d
Merge pull request #51178 from Geometror/layout-options-textline-textparagraph
...
Various text layout improvements (TextLine, TextParagraph, Label, TextServer)
2021-08-11 07:51:57 +02:00
Hendrik Brucker
403f4902d0
Various text layout improvements (TextLine, TextParagraph, Label, TextServer)
2021-08-11 00:09:48 +02:00
Aaron Franke
fa3a32a2d6
Use Key enum instead of plain integers
2021-08-10 16:26:55 -05:00
K. S. Ernest (iFire) Lee
18bd0fee5a
Merge pull request #49343 from theoway/node_auto_arrangement_graph_edit
...
Node Auto Arrangement in GraphEdit/VisualScript/VisualShader
2021-08-10 15:42:04 -04:00
Umang Kalra
12fc3f1eef
Automatic arrangement of nodes in VisualScript/VisualShaders editors
...
This PR and commit adds the functionality to arrange nodes in VisualScript/VisualShader editor. The layout generated by this
feature is compact, with minimum crossings between connections
& uniform horizontal & vertical gaps between the nodes.
This work has been sponsored by GSoC '21.
Full list of additions/changes:
• Added arrange_nodes() method in GraphEdit module.
• This method computes new positions for all the selected
nodes by forming blocks and compressing them.
The nodes are moved to these new positions.
• Adding this method to GraphEdit makes it available for
use in VisualScript/VisualShaders editors and its other
subclasses.
• Button with an icon has been added to call arrange_nodes() in GraphEdit.
• This button is inherited by VisualScript/VisualShaders editors
to invoke the method.
• Undo/redo is functional with this method.
• By using signals in arrange_nodes(), position changes are registered
in undo/redo stack of the subclass that is using the method.
• Metadata of the method has been updated in ClassDB
• Method description has been added to class reference of GraphEdit
2021-08-11 00:44:28 +05:30
Rémi Verschelde
dce488d8f7
Merge pull request #49417 from Bhu1-V/gsoc-cmd-plt
...
Command Palette For Godot
2021-08-10 18:55:22 +02:00
Rémi Verschelde
536950f9f3
Merge pull request #21922 from aaronfranke/double
...
Some work on double-precision support
2021-08-10 07:41:46 +02:00
Nathan Franke
b57b8453b1
Follow-Up Add SNames to get theme icon
2021-08-09 17:50:26 -05:00
Aaron Franke
430ad75963
Some work on double support
2021-08-09 17:43:48 -05:00
Aaron Franke
84f720966c
Use doubles for time in many other places
2021-08-09 14:05:42 -05:00
Rémi Verschelde
0a38d5c8f7
Merge pull request #43158 from nathanfranke/fix-gradient-and-draw-tile
...
Fix Gradient and Color Picker checkerboard, Fix tile parameter for CanvasItem.draw_texture_rect
2021-08-09 16:47:58 +02:00
Bhuvan Vemula
a0a019a998
Added EditorCommandPalette
2021-08-09 17:41:50 +05:30
bruvzg
7c3c5603d0
[Text Server] Improve object (image/table) inline alignment.
2021-08-08 22:35:47 +03:00
Nathan Franke
051234e84e
Fix Gradient, Color Picker BG, Fix CanvasItem::draw_texture_rect p_tile
2021-08-07 16:40:50 -05:00
Paulb23
738b0fdae5
Redraw on item list custom bg/fg colour change
2021-08-07 12:08:46 +01:00
Rémi Verschelde
de2c2be19b
Shortcut: Rename `shortcut` property to `event`
...
Having a property which has the same name as its class leads to confusing
situations (e.g. `BaseButton` has a `shortcut` property of type `Shortcut`
which has a `shortcut` property of type `InputEvent`).
Also renames `is_event` to `matches_event`, and `is_valid` to `has_valid_event`
to better reflect what the methods check.
2021-08-05 13:48:43 +02:00
kleonc
fd483c729f
TabContainer: Fix error on removing top-level Control child, Remove _get_tab method
2021-08-04 21:13:10 +02:00
Rémi Verschelde
e0b560fb6f
Merge pull request #51177 from kleonc/tab_container-drop-tab-index-fix
...
TabContainer Fix moving dropped tab to incorrect child index
2021-08-03 09:34:51 +02:00
Hugo Locurcio
3ea3addc79
Improve CodeEdit's callhint highlight visibility
...
This makes the currently edited parameter more visible in the
script editor's code completion hint.
2021-08-02 23:16:16 +02:00
Rémi Verschelde
c620ede327
Merge pull request #50122 from Paulb23/code_edit_auto_brace_completion
2021-08-02 20:44:39 +02:00
kleonc
a5a4532378
TabContainer Fix moving dropped tab at incorrect child index
2021-08-02 14:15:51 +02:00
Gilles Roudière
ad8b5cd5a4
Implements TileMap layers and move TileSetPlugins's functions to the TileMap node instead
2021-08-02 13:54:39 +02:00
Paulb23
809a32c045
Clean up and complete CodeEdit inspector and docs
2021-08-01 12:24:19 +01:00
Paulb23
dd5a37f556
Move symbol lookup into CodeEdit
2021-08-01 12:06:33 +01:00
Paulb23
8f900ac178
Move line length guidelines into CodeEdit
2021-08-01 12:06:33 +01:00
Paulb23
d1a1ad127e
Move brace matching into CodeEdit
2021-08-01 12:06:33 +01:00
Paulb23
12f0053555
Move auto brace completion to CodeEdit
2021-08-01 12:06:33 +01:00
Yuri Sizov
7137ebdaf6
Make theme item overrides more obvious in the Inspector
2021-07-31 23:46:24 +03:00
Michael Alexsander
b70b9c4ede
Fix "Custom *" theme sections being inside "Auto Translate"
2021-07-30 13:55:07 -03:00
Michael Alexsander
94a64d557e
Add `auto_translate` toggle for automatic translation
2021-07-29 18:30:34 -03:00
Michael Alexsander
79fc188fc4
Multiple cosmetic fixes for embedded windows
2021-07-27 23:55:06 -03:00
Michael Alexsander
478b6d6a13
Make `switch_on_hover` work on embedded windows
2021-07-26 14:45:26 -03:00
Rémi Verschelde
738205d923
Merge pull request #50835 from bruvzg/optimize_is_rtl
...
Optimise `is_layout_rtl`.
2021-07-25 12:55:46 +02:00
Rémi Verschelde
ff0b5f8fa1
Merge pull request #50809 from akien-mga/iterators-const-references
2021-07-25 12:52:58 +02:00
Rémi Verschelde
ac3322b0af
Use const references where possible for List range iterators
2021-07-25 12:22:25 +02:00
luz paz
3564c16cb8
Fix various typos with codespell
...
Found via `codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,fave,findn,hist,inout,leapyear,lod,nd,numer,ois,ony,paket,seeked,sinc,switchs,te,uint`
2021-07-25 11:21:51 +02:00
bruvzg
9bb03e60d9
Optimise `is_layout_rtl` by caching its return value.
2021-07-25 10:33:00 +03:00
Aaron Franke
4e6efd1b07
Use C++ iterators for Lists in many situations
2021-07-23 17:38:28 -04:00
jfons
944b5ee639
Fix popup submenu in single-window mode
...
The internal processing code only works for OS windows, since it takes
the mouse position relative to the window and not the viewport. Now we
make sure it's not called in single-window mode.
2021-07-23 19:45:30 +02:00
Michael Alexsander
a690cd9251
Make `MenuButton`'s `switch_on_hover` work again
2021-07-22 14:27:30 -03:00
PouleyKetchoupp
0b4037fe64
Fix logic for Popup closing when parent is focused
...
The member popped_up is used to avoid closing a Popup before it had a
chance to be focused. It wasn't reset properly when the popup is hidden,
causing the Popup to close right after showing in some random cases
(spotted on X11, might not happen on Windows).
2021-07-21 12:03:03 -07:00
Rémi Verschelde
693f9b4e20
Merge pull request #50655 from JFonS/sname_opt
...
Editor StringName and Viewport optimizations
2021-07-20 21:49:32 +02:00
Joan Fons
a6adb58493
Editor StringName and Viewport optimizations
...
* Added explicit return type to the SNAME macro.
* Add some extra SNAME usages.
* Change some ClassDB methods to use const StringName & arguments.
* Cache the Window parent in Control because it's used in
is_layout_rtl(), which is called often.
* Only enable internal processing for viewports that need it.
* Change CanvasItem::group to be a StringName because it's only used as
that.
2021-07-20 20:35:41 +02:00
Rémi Verschelde
394191c02f
Merge pull request #50605 from Calinou/tweak-shader-code-style
...
Use C++11 raw literals for shader code to improve readability
2021-07-20 10:05:13 +02:00
Rémi Verschelde
a0bc2f359d
Merge pull request #50588 from bruvzg/menu_gen
...
Optimize LineEdit and TextEdit menu item generation.
2021-07-19 22:56:53 +02:00
Rémi Verschelde
dfc1ec7fb9
Merge pull request #50606 from Chaosus/textedit_fix_guttertype
...
Fixed typos in `TextEdit::GutterType` enum
2021-07-19 16:40:42 +02:00
Yuri Roubinsky
1597045b09
Fixed typos in `TextEdit::GutterType` enum
2021-07-19 11:18:54 +03:00
Hugo Locurcio
abc38b8d66
Use C++11 raw literals for shader code to improve readability
...
In files that have lots of branching, `\t` was replaced with a
tab character instead.
2021-07-19 08:19:50 +02:00
bruvzg
1ac7a126f1
Optimize LineEdit and TextEdit menu item generation.
2021-07-19 08:19:09 +03:00
reduz
6631f66c2a
Optimize StringName usage
...
* Added a new macro SNAME() that constructs and caches a local stringname.
* Subsequent usages use the cached version.
* Since these use a global static variable, a second refcounter of static usages need to be kept for cleanup time.
* Replaced all theme usages by this new macro.
* Replace all signal emission usages by this new macro.
* Replace all call_deferred usages by this new macro.
This is part of ongoing work to optimize GUI and the editor.
2021-07-18 21:20:02 -03:00
reduz
a3fb76cd45
Create many types of popups on demand
...
* LineEdit popups created on demand.
* TextEdit popups created on demand.
* SpinSlider popups created on demand.
* ResourcePicker popups created on demand.
Improves editor responsiveness.
2021-07-17 10:57:14 -03:00
Rémi Verschelde
29c56f33a4
Merge pull request #48502 from KoBeWi/visual_button
...
Add set_pressed_no_signal method to BaseButton
2021-07-14 15:05:50 +02:00
kobewi
f4b361dd15
Add header theme type variations to labels
2021-07-13 15:42:09 +02:00
Rémi Verschelde
b44b277f6f
Merge pull request #50169 from pycbouh/theme-type-variations
2021-07-13 15:13:00 +02:00
kobewi
50c63bdc4c
Add set_pressed_no_signal method to BaseButton
2021-07-13 13:57:26 +02:00
Rémi Verschelde
aab6dc301c
Merge pull request #50086 from Geometror/label-improve-layout-options
...
Improvements to Label's layout options
2021-07-13 13:10:42 +02:00
Rémi Verschelde
3adb129a54
Merge pull request #50135 from KoBeWi/ 🌲 .update()
...
Update Tree when modified
2021-07-13 09:03:40 +02:00
Yuri Sizov
4ee0e6ddf5
Add type variations to Theme
2021-07-13 02:26:28 +03:00
Francois Belair
94a464f555
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 14:17:44 -04:00
Rémi Verschelde
e4c940ee6a
Merge pull request #50208 from kleonc/accept_dialog-remove_button
...
Add AcceptDialog::remove_button method
2021-07-07 09:12:03 +02:00
Hugo Locurcio
ce941397e5
Merge pull request #49890 from voxelv/fix_tree_range_click_timeout_crash_46648
...
Avoid using a nullptr root in Tree._range_click_timeout().
2021-07-07 01:21:32 +02:00
kleonc
714e6a595d
Add AcceptDialog::remove_button method
2021-07-06 18:14:20 +02:00
Rémi Verschelde
9a1ce8e6c3
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>
2021-07-06 18:03:03 +02:00
reduz
f4379cbc82
Clean up Tree
...
Fixes some problems introduced by #49917
* Tree used minimum size as a stretch ratio, so it forced a minimum size of 1.
* Minimum size redone, stretch ratio moved to a separate setting
* Fitting to contents was enforced, this is more intuitive, but in many situations this is undesired.
* Added a clip content option for situations where fit to contents does not apply.
* Icon would scroll with the item, making it invislbe if the item is too long.
* Made icon always appear to the right (or left if RTL is enabled) of the visible item space.
2021-07-04 13:13:53 -03:00
Hendrik Brucker
56a8d3f30c
Improvements to Label's layout options
...
- Added options to trim the text in case it overruns
- Added more autowrap modes
- Improved line breaking, which ignores trailing spaces
2021-07-04 16:43:55 +02:00
kobewi
9569729888
Update Tree when modified
2021-07-04 15:28:39 +02:00
Rémi Verschelde
a525e77740
Merge pull request #49468 from menip/FixGetScreenPosition
...
Fix Control::get_screen_position() not considering viewport scale
2021-07-03 14:29:20 +02:00
Michael Alexsander
e4d56e4c62
Make invisible `SplitContainer` nodes correctly calculate the minimal size of its children
2021-07-02 14:39:50 -03:00
reduz
75688772b3
Fix editor suffixes and degrees conversion
...
* Functions to convert to/from degrees are all gone. Conversion is done by the editor.
* Use PROPERTY_HINT_ANGLE instead of PROPERTY_HINT_RANGE to edit radian angles in degrees.
* Added possibility to add suffixes to range properties, use "min,max[,step][,suffix:<something>]" example "0,100,1,suffix:m"
* In general, can add suffixes for EditorSpinSlider
Not covered by this PR, will have to be addressed by future ones:
* Ability to switch radians/degrees in the inspector for angle properties (if actually wanted).
* Animations previously made will most likely break, need to add a way to make old ones compatible.
* Only added a "px" suffix to 2D position and a "m" one to 3D position, someone needs to go through the rest of the engine and add all remaining suffixes.
* Likely also need to track down usage of EditorSpinSlider outside properties to add suffixes to it too.
2021-06-30 12:38:25 -03:00
voxelv
f17f3f8830
Avoid using a nullptr root in Tree._range_click_timeout().
...
Fixes #46648
2021-06-30 00:27:44 -07:00
Rémi Verschelde
90982d60cb
Merge pull request #37181 from jitspoe/master.button_icon_alignment
2021-06-29 13:31:53 +02:00
Rémi Verschelde
9c6d7f840f
Merge pull request #49970 from trollodel/graphnode_fix_port_position
...
Fix GraphNode port position when the control has the Expand flag
2021-06-29 12:41:58 +02:00
jitspoe
e192eb05db
Add alignment options to icons on buttons.
...
They can now be centered and right-aligned.
Fixes #11380 .
2021-06-29 12:31:40 +02:00
Rémi Verschelde
8fb7a9f023
Merge pull request #49719 from LightningAA/rename-node-is-ancestor-of
...
Rename `is_a_parent_of()` to `is_ancestor_of()`
2021-06-29 12:07:25 +02:00
Gilles Roudière
c5b65236d8
Fixes crash in case no column in tree is expanded and has minimum size
2021-06-29 11:27:09 +02:00
trollodel
07c3b40aa2
Fix GraphNode port position when the control has the Expand flag
2021-06-28 18:52:13 +02:00
Rémi Verschelde
89f270f4c5
Merge pull request #49917 from groud/tree_disable_scroll
...
Allow disabling scrolling in Tree and implement horizontal scrolling
2021-06-28 18:41:23 +02:00
Gilles Roudière
d7d32ced5b
Implement Tree's internal minimum width calculation
2021-06-28 15:54:31 +02:00
reduz
b1d15c51bc
Implement native extension system
...
* Deprecates GDNative in favor of a simpler, lower level interface.
* New extension system allows registering core engine classes.
* Simple header interface in gdnative_interace.h
2021-06-25 17:32:45 -03:00
Gilles Roudière
b2dddc3c82
Allow disabling scrolling in Tree
2021-06-25 21:19:46 +02:00
Rémi Verschelde
c8444c3ee0
Merge pull request #49908 from KoBeWi/ 📎 🔫
...
Remove clips_input() method and use clip_content
2021-06-25 16:53:00 +02:00
kobewi
452e10ba7b
Remove clips_input() method and use clip_content
2021-06-25 15:46:37 +02:00
Eric M
cfbdaa2eb7
Fix RichTextLabel custom_effects export to be properly filtered in the Editor
2021-06-25 22:58:46 +10:00
Rémi Verschelde
b9bf01a9b0
Merge pull request #49798 from pycbouh/tree-lines-items-draw-order
...
Make relationship lines draw on top of `TreeItem`s
2021-06-21 20:54:51 +02:00
Lightning_A
899e5f8685
Rename `is_a_parent_of()` to `is_ancestor_of()`
2021-06-21 08:39:28 -06:00
Yuri Sizov
483f8ffbe4
Make relationship lines draw on top of TreeItems
2021-06-21 16:46:43 +03:00
Haoyu Qiu
a57a51750a
Update min size on Label::set_text
2021-06-21 19:54:40 +08:00
Rémi Verschelde
9da7f06900
Merge pull request #49665 from Paulb23/code_edit_indent
...
Move indentation into CodeEdit
2021-06-21 09:13:15 +02:00
floppyhammer
b08dc1ea35
Improve nine patch behavior of TextureProgressBar
2021-06-21 10:07:49 +08:00
Paulb23
1a0cfc219b
Move indent management to CodeEdit
2021-06-20 20:00:54 +01:00
Rémi Verschelde
953de68cfc
Merge pull request #35608 from golfinq/master
2021-06-20 18:51:15 +02:00
Aaron Franke
0ce49800ac
Use mouse and joypad enums instead of plain integers
...
Also MIDIMessage
2021-06-20 11:54:24 -04:00
golfinq
0c1d10d1ca
Rich Text Label now allows for foreground colors and background colors
2021-06-20 11:29:37 -04:00
Lightning_A
e28fd07b2b
Rename `instance()`->`instantiate()` when it's a verb
2021-06-19 20:49:18 -06:00
Rémi Verschelde
60dcc4f39c
Merge pull request #49742 from Paulb23/remove_keywords_textedit
...
Remove redundant keywords from TextEdit
2021-06-20 00:39:18 +02:00
Rémi Verschelde
4effadc0ba
Merge pull request #48696 from madmiraal/fix-48692
...
Fix `InputMap.action_erase_event()` failing to erase events correctly.
2021-06-20 00:29:42 +02:00
Paulb23
ab49ea032c
Remove redundant keywords from TextEdit
2021-06-19 13:56:54 +01:00
Aaron Franke
8b692e8872
Add PROPERTY_USAGE_NONE and use it
2021-06-17 19:10:26 -04:00
Lightning_A
13ba788b63
Scrollwheel (w/o ctrl) to zoom, mouse warping when panning
...
Now uses Ctrl + Scrollwheel for vertical scrolling
Ctrl + Shift Scrollwheel for horizontal scrolling
Also converts some macros to constants
2021-06-17 08:21:32 -06:00
Rémi Verschelde
74850b3511
Merge pull request #38261 from pycbouh/adjust-graph-edit-zoom-levels
...
Make zoom limits and step adjustable in `GraphEdit`
2021-06-17 12:12:34 +02:00
Rémi Verschelde
bb4c464fec
Merge pull request #49258 from megalobyte/editor-fix
...
Fixes for documentation search
2021-06-17 02:25:41 +02:00
Rémi Verschelde
341cb8da31
Merge pull request #49238 from Paulb23/code_edit_code_folding
...
Move code folding into CodeEdit and hide line hiding API
2021-06-16 20:11:39 +02:00
Gregory Basile
8ab13f8ace
Documentation search fixes
...
Updates rich_text_label so that the built-in documentation can be searched
Previously, it would only find the first result and would not select other results
Renames "_entered" functions to "_submitted"
2021-06-16 09:43:34 -07:00
Haoyu Qiu
bf5f13e6a0
Fix typo in CodeEdit methods
2021-06-16 22:15:29 +08:00
Yuri Sizov
0a82a669e3
Make zoom limits and step adjustable in GraphEdit
2021-06-16 16:39:18 +03:00
Rémi Verschelde
1129439f09
Merge pull request #49011 from KoBeWi/totally_h
...
Fix valign with stylebox borders
2021-06-15 16:25:49 +02:00
Rémi Verschelde
e479abeb98
Merge pull request #49437 from Calinou/graphedit-allow-higher-lower-zoom-values
...
Allow higher and lower maximum zoom values in GraphEdit
2021-06-15 15:18:17 +02:00
Rémi Verschelde
7efde449b2
Merge pull request #49508 from kleonc/texture_button-updating-min_size
...
TextureButton Update min size on any texture change
2021-06-15 15:01:16 +02:00
Rémi Verschelde
5da885e1f7
Merge pull request #49582 from timothyqiu/codeedit-update-cache
...
Update cache after clearing delimiters in CodeEdit
2021-06-15 00:05:59 +02:00
Rémi Verschelde
16027e7cf4
Merge pull request #49572 from azagaya/fix_grabber_area
...
Fix vertical slider grabber_area height calculation
2021-06-14 19:22:25 +02:00
Haoyu Qiu
a1db7088ed
Update cache after clearing delimiters in CodeEdit
2021-06-14 21:23:01 +08:00
azagaya
be8667944d
Fix vertical slider grabber_area height calculation
2021-06-13 11:23:26 -03:00
Rémi Verschelde
ef7974f3d9
Merge pull request #49526 from Chaosus/fix_textureregion_errors
2021-06-13 14:44:50 +02:00
Yuri Roubinsky
19afaa0203
Fixed a bunch of connection errors in TextureEditorPlugin
2021-06-12 08:01:02 +03:00
kobewi
7ff135b015
Consistently prefix bound virtual methods with _
2021-06-12 00:55:52 +02:00