Rémi Verschelde
6fa24729ae
Merge pull request #45571 from aaronfranke/node2d-real_t
...
Use real_t in 2D nodes
2021-03-23 00:10:53 +01:00
Rémi Verschelde
4bacb86f56
Merge pull request #46735 from fabriceci/fix-dialog-translation
...
Fix translations update in window & Dialogs (AcceptDialog/ConfirmationDialog/FileDialog) (Fix 39320, 39258 & 45887)
2021-03-23 00:03:31 +01:00
Rémi Verschelde
bb8340302c
Merge pull request #47180 from YeldhamDev/popupmenu_width_fix
...
Fix wrong width with PopupMenus on first opening in the editor
2021-03-22 23:51:57 +01:00
Juan Linietsky
97a3a66220
Improved 3D Scene Importer
...
* Added option for importers to show an Advanced settings dialog
* Created advanced settings dialog for Scene Importer
* Cleaned up importers (remove many old/unused options)
* Added the ability to customize every node, material, mesh and animation individually
* Saving to animations and meshes to files is now a manual process, making it more predictable
* Added the ability for materials to be replaced by external files (or to be made external, up to you).
* When doubleclicking an impoted scene in the filesystem dock, it automatically shows the import settings instead of asking to open it.
WARNING: Lightmap UV unwrap is not working, it needs to be re-made.
2021-03-22 12:16:40 -03:00
Rémi Verschelde
7e86b4c0e4
Merge pull request #46280 from floppyhammer/AdjustCompletionPanelPosition
...
Improve Completion Panel Position in Shader Editor
2021-03-21 00:17:35 +01:00
jmb462
045f55ec00
Prevent resizing minimap bigger than GraphEdit ( Fix #47189 )
...
Minimap size couldn't be resized back after been resized bigger than GraphEdit cause the grabber was out of GraphEdit.
This commit prevents resizing minimap bigger than GraphEdit and fix this issue.
2021-03-20 15:09:50 +01:00
Michael Alexsander
1bece0da7c
Fix wrong width with PopupMenus on first opening in the editor
2021-03-20 00:37:09 -03:00
Aaron Franke
6811a45b59
Use real_t in non-physics 2D nodes
2021-03-19 13:04:45 -04:00
Rémi Verschelde
3b380f4cdc
Merge pull request #47156 from LightningAA/graph-edit-scroll-zoom-4.0
...
Enable zooming in graph_edit with Ctrl + scrollwheel
2021-03-19 09:19:41 +01:00
Lightning_A
d752482e7a
Enable zooming graph_edit with scrollwheel
2021-03-18 18:34:29 -06:00
Justin Ho
fa6fd3a2d0
Check for null pointer in get_column_width(0)
2021-03-18 10:25:55 -07:00
Rémi Verschelde
888051889e
Merge pull request #46674 from cmd410/fix-tab-container
...
Fix TabContainer _get_tab_width for localized node names
2021-03-17 21:05:20 +01:00
Rémi Verschelde
e57f6e2cca
Merge pull request #47050 from jmb462/fix-bbcode-tables-overlap-with-bottom-text
...
Fix BBCode tables overlap with bottom text (Fix #47012 )
2021-03-17 17:54:01 +01:00
Rémi Verschelde
4c56fcd6cd
Merge pull request #39810 from christinoleo/master
...
Make GraphNode handle children with EXPAND flag
2021-03-16 18:10:08 +01:00
jmb462
25af026d9e
Fix BBCode tables overlap with bottom text
...
New row height was added only if all the column was full.
2021-03-16 10:45:16 +01:00
Rémi Verschelde
6eef187a81
Merge pull request #46993 from gongpha/check-if-edit-called-via-editor
...
Check if _edit_set_position and _edit_set_rect was used outside an editor
2021-03-15 08:57:45 +01:00
Kongfa Waroros
b80406770f
Check if _edit_set_position and _edit_set_rect was used outside an editor
2021-03-15 14:34:24 +07:00
Yuri Sizov
0c41411fe8
Fix stale tab names in TabContainer
2021-03-14 22:54:46 +03:00
bruvzg
48698ccb9f
Fix RTL BBCode range regression and selection issues.
2021-03-14 19:54:48 +02:00
Pop0p
c8538153b0
trims_whitespaces_when_creating_folder_windows
...
When creating a Windows folder via a Godot's dialog, the extra spaces are not removed which causes problems with Windows. We now remove leading and trailing whitespace when creating a dir.
2021-03-13 17:09:25 +01:00
fabriceci
697c594cd8
fix translation not updating in ConfirmationDialog (and Window by inheritance)
2021-03-12 17:51:33 +01:00
Anshul7sp1
91181c2086
Fixes small typos and grammar correction
2021-03-12 19:05:16 +05:30
Rémi Verschelde
08767a16fd
Merge pull request #46913 from Faless/js/4.x_vk
...
[HTML5] Experimental (opt-in) virtual keyboard support.
2021-03-12 09:48:34 +01:00
Rémi Verschelde
02ae0afe63
Merge pull request #46699 from sps1112/fix-control.edit_set_state-crash
...
Add size and dictionary check in Control::_edit_set_state() to fix crash
2021-03-12 09:46:03 +01:00
Fabio Alessandrelli
eda5ae9d75
Add IME support checks in LineEdit/TextEdit.
...
Avoid spamming "IME is unsupported" when the DisplayServer report it as
such.
2021-03-11 23:04:22 +01:00
Kongfa Waroros
d295d53b4a
Add interpolation bar on each channel in ColorPicker
2021-03-09 14:58:19 +07:00
Leonardo Christino
5d574d980d
Make GraphNode handle children with EXPAND flag
2021-03-08 13:52:19 -04:00
jmb462
3bd44f3cb6
fix Label visible_characters bad precision
2021-03-07 23:18:16 +01:00
Rémi Verschelde
9b853d7a7b
Merge pull request #46572 from jmb462/fix-selection-error-after-commenting-or-indenting
...
Fix selection error after commenting or indenting text (Fix #46477 issue)
2021-03-07 17:03:54 +01:00
Rémi Verschelde
dc2207d8e8
Merge pull request #46627 from jmb462/fix-incorrect-autoindentation-in-multiline-brackets
...
Fix incorrect auto-indentation in multiline brackets (fix #46384 )
2021-03-07 16:55:32 +01:00
Rémi Verschelde
c487f1e854
Merge pull request #46643 from YeldhamDev/hide_all_the_things
...
Hide more options of disabled properties
2021-03-07 15:12:15 +01:00
kobewi
83f6c6b360
Release mouse when SpinBox leaves scene tree
2021-03-06 22:22:24 +01:00
sps1112
05f5a43cad
Fix Control._edit_set_state crash
2021-03-05 21:52:34 +05:30
Crystal Melting Dot
89baf02fb6
Fix TabContainer _get_tab_width
...
Now it translates node name before calculating tab width
2021-03-04 22:10:28 +03:00
Rémi Verschelde
372b1b8f68
Revert "Add size check in Control._edit_set_state to prevent crash"
...
This reverts commit ef1d58f034
.
2021-03-04 12:06:58 +01:00
Rémi Verschelde
dd1881ae19
Merge pull request #46524 from kuruk-mm/lineedit_triple_click
...
LineEdit: Now double click to select a word, and triple click to sele…
2021-03-04 10:18:20 +01:00
Rémi Verschelde
8ff25ffb78
Merge pull request #46620 from sps1112/fix-control.edit_set_state-crash
...
Add size check in Control::_edit_set_state() to fix crash
2021-03-04 07:46:16 +01:00
sps1112
ef1d58f034
Add size check in Control._edit_set_state to prevent crash
2021-03-04 10:55:42 +05:30
Michael Alexsander
4be282a269
Hide more options of disabled properties
2021-03-03 20:51:35 -03:00
kobewi
5cd5722f6a
Deselect column only if belongs to deselected item
2021-03-03 19:39:29 +01:00
jmb462
f05d6f66b0
fix incorrect iauto-indentation in mutliline bracket ( fix #46384 )
2021-03-03 18:59:59 +01:00
jmb462
5c58d3731c
fix selection error after commenting or indenting text
2021-03-01 21:57:26 +01:00
Rémi Verschelde
09b5d6886f
Merge pull request #46563 from pycbouh/graph-edit-hide-minimap-properly
...
Properly hide GraphEdit's minimap
2021-03-01 17:26:50 +01:00
Yuri Sizov
2ff1c48e0c
Properly hide GraphEdit's minimap
2021-03-01 18:19:48 +03:00
Rémi Verschelde
ec7053259b
Merge pull request #41437 from KoBeWi/put_it_here
...
Allow to create a node at specific position
2021-03-01 15:48:53 +01:00
Mateo Kuruk Miccino
a3db2fd46b
LineEdit: Now double click to select a word, and triple click to select all the content using the new TextServer
...
TextEdit: Update the method to search words with the new TextServer
2021-03-01 08:38:08 -03:00
kobewi
5e4ab20296
Warn about changing size only when it's relevant
2021-02-27 19:24:59 +01:00
Yuri Roubinsky
e3131adc1c
Fix GraphEdit connects when graph is zoomed/unzoomed
2021-02-27 20:26:35 +03:00
Tomasz Chabora
8df22a03c4
Allow to create a node at specific position
2021-02-26 14:40:28 +01:00
Rémi Verschelde
494e1cb148
Merge pull request #38918 from EricEzaM/fix-slider-focus-on-scroll-input
...
Fixed issue with slider focus and scroll input
2021-02-25 18:09:04 +01:00
Eric M
d91e915d79
Fixed 'nonexistent action' errors spammed at startup on OSX
2021-02-24 23:16:22 +10:00
reduz
d6a9cff8b7
Add preview Sun and Environment
...
* Adds both a preview sun and preview environment to the 3D editor.
* They are valid as long as a DirectionalLight3D and WorldEnvironment are not in the scene.
* If any is added to the scene, the respective preview is disabled.
* Changed WorldEnvironment to better handle multiple node versions.
* Added a function in SceneTree to get the first node in a group.
* Fixed button minimum size to also consider font height if no text is there, this broke with the TextSever PR.
2021-02-22 16:56:29 -03:00
Rémi Verschelde
cb29e6c49c
Merge pull request #45994 from Jummit/expose-edit-selected
...
Expose edit_selected in Tree
2021-02-22 16:29:03 +01:00
Jummit
13fb24cb6f
expose edit_selected in Tree
2021-02-22 15:50:21 +01:00
floppyhammer
e927a9fef0
ImproveCompletionPanelPositionInShaderEditor
2021-02-22 11:08:51 +08:00
Rémi Verschelde
14f6f92a72
Merge pull request #46230 from gongpha/keep-hue-value
...
Keep Hue value when Saturation or Value is zero
2021-02-21 23:36:19 +01:00
kleonc
d7bb7cad47
Label::set_lines_skipped Fail if passed a negative value
2021-02-21 14:23:57 +01:00
Tomasz Chabora
84da090a69
Warn when setting Control size inside ready()
2021-02-19 18:32:24 +01:00
Kongfa Waroros
27749711b2
Keep Hue value when Saturation or Value is zero
2021-02-19 23:53:00 +07:00
Eric M
49714b0963
Removed hardcoded shortcuts from /scene and converted to input actions
...
This removes hardcoded actions from things like LineEdit and TextEdit.
Previously, things like copy, paste, etc were all hardcoded to Ctrl+C, Ctrl+V, etc. They could not be changed. This allows the possibility of them being changed, by making them use the action map. This has the added benefit of greatly simplifying the input handling logic in those controls. The logic which was previously in a huge and hard to follow switch statement has been extracted to individual methods.
2021-02-18 16:22:51 +01:00
reduz
64140eaf42
Reorganize Project Settings
...
-Advanced Settings toggle also hides advanced properties when disabled
-Simplified Advanced Bar (errors were just plain redundant)
-Reorganized rendering quality settings.
-Reorganized miscelaneous settings for clean up.
2021-02-18 11:23:34 -03:00
Kongfa Waroros
7c6646c8ac
Avoid signal methods in ColorPicker to access the tree when it isn't in the tree
2021-02-18 20:30:22 +07:00
Rémi Verschelde
bab06c9d06
Merge pull request #46081 from YeldhamDev/popupmenu_fixes
...
Fix various small issues with PopupMenu
2021-02-16 13:59:30 +01:00
Rémi Verschelde
ba8b95a2a1
Merge pull request #46088 from groud/fix_line_edit
...
Fix minimum_character_width in LineEdit
2021-02-16 11:11:03 +01:00
Rémi Verschelde
584240b0d7
Merge pull request #45899 from nekomatata/richtextlabel-get-selection
...
Expose RichTextLabel selection to script
2021-02-16 10:56:37 +01:00
Gilles Roudière
737dd5ee8c
Fix minimum_character_width in LineEdit
2021-02-16 10:51:17 +01:00
Michael Alexsander
96fa719026
Fix various small issues with PopupMenu
2021-02-16 01:12:08 -03:00
kobewi
282639d653
Select TreeItem if none is selected
2021-02-16 01:36:16 +01:00
PouleyKetchoupp
4586357dde
Expose RichTextLabel selection to script
...
Expose existing get_selection_text and add methods to get the current
selection index from and index to.
2021-02-15 17:26:58 -07:00
Eric M
26c29cc0d7
Improved PopupMenu visuals. Removed x-y margin, made it 'padding' instead.
2021-02-15 15:45:25 +10:00
kleonc
a4afdd4a77
RichTextLabel::add_image Fail if passed image has no area
2021-02-14 16:09:55 +01:00
Rémi Verschelde
cdfd3ffe15
Merge pull request #44747 from bruvzg/missing_outlines
...
[CTL] Add missing theme properties for outlines, fix underline scaling, and RTL cell padding.
2021-02-14 13:49:14 +01:00
bruvzg
1f60ac1e08
[CTL] Fix RichTextLabel cell horizontal padding.
2021-02-14 14:11:49 +02:00
bruvzg
d78336c65e
[CTL] Add missing font outline drawing routines and theme constants.
2021-02-14 14:11:44 +02:00
Rémi Verschelde
6fb1ed2bca
Merge pull request #45942 from YeldhamDev/label_height_empty
...
Keep Label's min height when empty
2021-02-14 13:10:54 +01:00
Rémi Verschelde
7128f09a5d
Merge pull request #45858 from nekomatata/text-edit-style-content-margins
...
TextEdit respects content margin from StyleBox
2021-02-13 17:41:53 +01:00
Rémi Verschelde
48e7cced9f
Merge pull request #45881 from nekomatata/textedit-wrap-autoscroll
...
Fix TextEdit autoscroll with wrapped lines
2021-02-13 17:41:20 +01:00
Michael Alexsander
85dc55a82c
Keep Label's min height when empty
2021-02-12 21:13:49 -03:00
PouleyKetchoupp
121030940c
Fix TextEdit autoscroll with wrapped lines
...
Index to find the last line wrap index was off by one, which prevented the first wrapped line to trigger autoscroll.
2021-02-12 13:44:46 -07:00
PouleyKetchoupp
100fc26f39
TextEdit respects content margin from StyleBox
...
Now TextEdit adjusts x & y offset according to the corresponding
StyleBox when in normal or read-only mode.
In order to handle bottom content margin, wrapped lines that are entirely outside the stylebox content area are not drawn.
2021-02-12 13:22:06 -07:00
reduz
28537d8c84
Fix LineEdit minimum width
...
-Changed theme setting name to make more sense of what it does
-Reduced amount of minimum characters, so minimum size is smaller.
2021-02-12 17:04:38 +01:00
bruvzg
6c9e608a34
Use get_char_size(' ') to calculate space width.
2021-02-12 15:06:50 +02:00
Rémi Verschelde
604188c411
Merge pull request #45870 from gongpha/graphedit-connection-update
...
Update GraphEdit when GraphNode's slot is updated
2021-02-11 13:11:50 +01:00
reduz
1aa2823fa3
Removed _change_notify
...
-For inspector refresh, the inspector now detects if a property change by polling a few times per second and then does update the control if so. This process is very cheap.
-For property list refresh, a new signal (property_list_changed) was added to Object. _change_notify() is replaced by notify_property_list_changed()
-Changed all objects using the old method to the signal, or just deleted the calls to _change_notify(<property>) since they are unnecesary now.
2021-02-10 19:31:24 -03:00
Kongfa Waroros
fe6c8d48e6
Update GraphEdit when GraphNode's slot is updated
2021-02-11 01:07:54 +07:00
Rafał Mikrut
7961a1dea3
Initialize class variables with default values in scene/ [2/2]
2021-02-09 18:24:36 +01:00
Rémi Verschelde
df9c98e107
Merge pull request #45812 from RandomShaper/keep_selected_visible
...
Keep selected node visible after filter change
2021-02-09 10:43:21 +01:00
Rémi Verschelde
59924a09e8
Merge pull request #45806 from KoBeWi/forest_of_deselection
...
Set selected Tree item to null when deselected
2021-02-08 22:22:52 +01:00
Kanabenki
03d4ebf129
Update ColorPicker controls when entering tree
2021-02-08 19:25:50 +01:00
Pedro J. Estébanez
177b804f30
Expose Tree::scroll_to_item()
2021-02-08 02:19:13 +01:00
kobewi
ef8ec59f2f
Set selected Tree item to null when deselected
...
Co-authored-by: Brody Eller <wviper3@gmail.com>
2021-02-07 22:12:52 +01:00
Oliver Dick
8d598693fc
TextEdit: When left mouse is pressed to place the cursor, do not immediately adjust the viewport when cursor_set_line is called, but afterwards on cursor_set_column (effectively when the cursor reached its final position)
...
Fixes #45770
2021-02-07 00:28:57 +01:00
Rémi Verschelde
69152af45d
doc: Don't bind argument names with p_ prefix
...
This prefix is used in the C++ codebase, not in the scripting API.
2021-02-04 14:45:06 +01:00
Rémi Verschelde
264504d76d
Merge pull request #45110 from fmazan/completion-panel-positioning
...
Fixed completion and hint panel positioning in TextExit
2021-02-01 20:50:17 +01:00
Rémi Verschelde
c4811ab525
Merge pull request #45549 from flyingpimonster/graphnode-icon
...
GraphNode: Add properties for custom icons
2021-02-01 20:49:19 +01:00
bruvzg
c75923498e
Use integer coordinates for the font glyphs rendering.
2021-01-31 20:10:50 +02:00
James Westman
08e1453d7f
GraphNode: Add properties for custom icons
...
Add properties for the slots' icon textures, so they can be set easily
in the editor.
Fixes #45487 .
2021-01-28 21:22:25 -06:00
Volka
ae2cf8eb38
Fix unintended SpinBox mouse capture
2021-01-26 21:17:31 -05:00
Rémi Verschelde
eda5f4ea31
Merge pull request #44349 from KoBeWi/drop_the_data!
...
Allow to override drop data in LineEdit
2021-01-26 16:03:07 +01:00
Rémi Verschelde
b84729f848
Merge pull request #45220 from Calinou/range-ratio-equal-min-max-no-error
...
Make Range return 1.0 ratio if minimum and maximum values are equal
2021-01-26 15:24:58 +01:00
Rémi Verschelde
bdfc7a6b40
Merge pull request #45369 from naithar/fix/line_edit_clear-4.0
...
[4.0] [GUI] Fix LineEdit clearing
2021-01-26 12:30:34 +01:00
Sergey Minakov
ba6aa76992
[GUI] Enforce virtual keyboard redisplay on clear
2021-01-26 13:17:20 +03:00
Nils Reid
3e94c23fa5
Exposed find_next_valid_focus and find_prev_valid_focus.
2021-01-26 08:19:20 +01:00
Rémi Verschelde
6cba658934
Merge pull request #44194 from madmiraal/fix-font_selected_color
...
Change themes font_color_selected to font_selected_color
2021-01-26 00:03:40 +01:00
Yuri Sizov
9d9d0f0bc9
Fix minimap capturing events and improve its theme
...
Add an editor setting for minimap opacity in visual editors
2021-01-25 21:49:07 +03:00
Marcel Admiraal
8eb39f4e8b
Change themes *_color_* to *_*_color
...
Changed:
font_color_accel -> font_accelerator_color
font_color_bg -> font_unselected_color
font_color_disabled -> font_disabled_color
font_color_fg -> font_selected_color
font_color_hover -> font_hover_color
font_color_hover_pressed -> font_hover_pressed_color
font_color_pressed -> font_pressed_color
font_color_readonly -> font_readonly_color
font_color_selected -> font_selected_color
font_color_shadow -> font_shadow_color
font_color_uneditable -> font_uneditable_color
icon_color_disabled -> icon_disabled_color
icon_color_hover -> icon_hover_color
icon_color_hover_pressed -> icon_hover_pressed_color
icon_color_normal -> icon_normal_color
icon_color_pressed -> icon_pressed_color
Also includes:
font_outline_modulate -> font_outline_color
tab_fg -> tab_selected
tab_bg -> tab_unselected
2021-01-24 06:28:49 +00:00
bruvzg
e4651a44ab
RichTextLabel: adds separate get_total_x_count
, get_visible_x_count
and scroll_to_x
functions for wrapped lines and paragraphs (newlines).
2021-01-18 11:26:55 +02:00
Hugo Locurcio
44204ec32d
Make Range return 1.0 ratio if minimum and maximum values are equal
...
An error message is also no longer printed.
This matches the behavior found in most UI frameworks where having
equal minimum and maximum values is considered acceptable.
This closes #43179 .
2021-01-15 23:14:50 +01:00
Rémi Verschelde
1ffe3ed47a
Merge pull request #33685 from Scony/improve-item-lists-add-item-methods
...
ItemList's add_(icon_)item method returns id of added item
2021-01-15 16:24:20 +01:00
Rémi Verschelde
86e2d4c593
Merge pull request #45196 from Paulb23/text_edit_draw_behind_gutter
...
Fix TextEdit drawing Caret and icons out of bounds
2021-01-15 16:08:45 +01:00
Rémi Verschelde
274db4aa64
Merge pull request #45149 from pycbouh/ge-disconnect-crash
...
Prevent signal disconnection attempts on invalid references
2021-01-15 12:48:56 +01:00
Rémi Verschelde
64ba83a096
Merge pull request #44870 from alexpech12/fix-rich-text-label-set-visible-characters
...
Keep RichTextLabel visible character properties in sync
2021-01-15 00:59:26 +01:00
Paulb23
7666c1caf3
Fix TextEdit drawing Caret and icons out of bounds
2021-01-14 22:19:57 +00:00
Yuri Sizov
5e8e9fc601
Prevent signal disconnection attempts on invalid references
2021-01-14 15:19:32 +03:00
Alexander Pech
463e2002ab
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.
2021-01-14 21:32:41 +11:00
Rafał Mikrut
56734f44e5
Fix errors when removing non Control node from TabContainer
2021-01-12 10:48:18 +01:00
Filip
de9e1e4540
Fixed completion and hint panel positioning in TextExit
2021-01-11 22:05:38 +01:00
Rémi Verschelde
50f7314329
RichTextLabel: Fix build after #35505
...
Should have rebased before merging.
2021-01-08 09:18:19 +01:00
Rémi Verschelde
9349a5507f
Merge pull request #35505 from dalexeev/rtl_colors
...
Unified named colors in RichTextLabel
2021-01-08 09:03:55 +01:00
gongpha
bb867d41ee
Blocking updating in SceneTreeEditor when editing an item
2021-01-06 14:46:48 +07:00
David Kennedy
715cf48f81
Makes script editor not draw non existent spaces.
...
Fixes #44775 Editor is incorrectly drawing non existent space.
2021-01-05 20:20:41 -03:00
Rémi Verschelde
8b7f582f22
Revert "solved ctrl + alt + special character Issue #6851 "
2021-01-05 14:41:35 +01:00
Rémi Verschelde
321a4d5e79
Merge pull request #44906 from EricEzaM/PR/popup-menu-fix-not-matching-button-size
...
Fixed PopupMenu not matching parent MenuButton/OptionButton width
2021-01-04 14:47:32 +01:00
Eric M
056fcf3d75
Fixed PopupMenu not matching parent MenuButton/OptionButton width
2021-01-04 18:47:09 +10:00
Eric M
e5aaa7d890
Fixed hover highlight style rect of items being cut off.
...
This was caused by an incorrect calculation of the height of each item when determining the minimum size, plus a few things which were leftover after the PopupMenu rework.
2021-01-04 18:35:40 +10:00
Rémi Verschelde
b5334d14f7
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 🎆
2021-01-01 20:19:21 +01:00
Rémi Verschelde
3a9777cb3f
Merge pull request #44724 from Chaosus/popup_separator
...
Added optional id parameter to `PopupMenu::add_separator`
2020-12-29 17:39:44 +01:00
Rémi Verschelde
09212fba1e
Fix missed renamings from empty() to is_empty()
...
Those were missed in #44401 or added by later PRs.
2020-12-29 09:55:07 +01:00
Rémi Verschelde
c6e9d912e1
Merge pull request #44781 from mrushyendra/scroll_container_ready_fix
...
Allow ScrollBar params of a ScrollContainer to be modified from _ready()
2020-12-29 09:44:08 +01:00
Rémi Verschelde
652bdd573e
Merge pull request #43691 from bruvzg/ctl_dropcap
...
[Complex Text Layouts] Add drop-cap support to RTL.
2020-12-29 09:14:46 +01:00
Maganty Rushyendra
b8610dbd31
Allow ScrollBar params of a ScrollContainer to be modified in _ready()
...
Initializes the sizes of the ScrollContainer and its associated
ScrollBars in _ready() to allow scroll values to be set in GDScript
initially.
2020-12-29 13:02:02 +08:00
Rémi Verschelde
6cebb8c117
Merge pull request #44586 from madmiraal/rename-stepify
...
Rename Math::stepify to snapped
2020-12-28 21:46:43 +01:00
Rémi Verschelde
feb4e5ed2c
Merge pull request #44569 from madmiraal/rename-unselect-deselect
...
Rename unselect to deselect
2020-12-28 14:53:43 +01:00
Rémi Verschelde
891b1cdf28
Merge pull request #44607 from madmiraal/rename-control-rotation
...
Rename Control rotation to rotation_degrees
2020-12-28 14:42:06 +01:00
Marcel Admiraal
b743a2ef3c
Rename Math::stepify to snapped
2020-12-28 13:01:30 +00:00
Marcel Admiraal
5b937d493f
Rename empty() to is_empty()
2020-12-28 10:39:56 +00:00
Yuri Roubinsky
ca8c794d04
Added optional id parameter to PopupMenu::add_separator
2020-12-27 15:18:47 +03:00
Marcel Admiraal
dc8c29ee95
Update GraphEdit connection to reflect new signal name
2020-12-26 09:48:40 +00:00
Rémi Verschelde
c4c211c3b7
Merge pull request #44605 from madmiraal/rename-control-margin
...
Rename Control margin to offset
2020-12-23 18:24:00 +01:00
Marcel Admiraal
b832003c6b
Rename Control rotation to rotation_degrees
2020-12-23 07:06:30 +00:00
Marcel Admiraal
4b8b803931
Rename Control margin to offset
2020-12-23 06:25:56 +00:00
Marcel Admiraal
7b293eddfb
Rename unselect to deselect
2020-12-21 10:26:41 +00:00
bruvzg
784f869f0f
Fix RichTextLabel content height and scrollbar calculations.
2020-12-21 07:49:27 +02:00
bruvzg
1adea98d07
Use integer text position in scroll container, TextEdit and canvas editor, to ensure sharp text rendering.
...
Use integer font align/advance with any font scaling, to ensure sharp text rendering.
2020-12-21 07:49:27 +02:00
Rémi Verschelde
f7ddcbf446
Merge pull request #44328 from gongpha/tabs-label-incorrect
...
Refresh TextLine buffer when moving a tab
2020-12-21 00:26:08 +01:00
Rémi Verschelde
153c132a7e
Merge pull request #44300 from KoBeWi/ 🧹 🧹
...
Move initialization of some classes to headers
2020-12-21 00:24:36 +01:00
Yuri Roubinsky
52e44ed3ef
Added GraphEdit properties to control lines thickness and antialiasing
2020-12-18 16:41:45 +03:00
Yuri Sizov
f5bcbd8325
FIx visual issues with GraphEdit minimap
2020-12-17 22:59:04 +03:00
Rémi Verschelde
c83d1b2526
Merge pull request #43416 from pycbouh/graph-minimap
...
Add a minimap to the GraphEdit
2020-12-17 17:34:36 +01:00
Rémi Verschelde
3d7b01723b
Merge pull request #44412 from DanielZTing/rename
...
Rename neighbour in Control to neighbor
2020-12-16 14:16:28 +01:00
Sergey Minakov
efeb9e4d08
GUI: use cursor in TextEdit for non selected text.
2020-12-16 05:41:14 +03:00
Daniel Ting
aea7fde241
Rename neighbour in Control to neighbor
...
This keeps things consistent with the rest of Godot, which uses the
American English spelling of Color.
2020-12-15 16:42:21 -06:00
Rémi Verschelde
7e3424e3ab
Merge pull request #44377 from Calinou/rename-textureprogressbar
...
Rename the TextureProgress node to TextureProgressBar
2020-12-15 13:34:32 +01:00
Hugo Locurcio
57dcc83152
Rename the TextureProgress node to TextureProgressBar
...
Advantages:
- When searching for "progressbar", you'll see both nodes in the
search results.
- More consistent with Button/TextureButton.
2020-12-14 21:35:13 +01:00
Marcel Admiraal
8509c8c8fc
Rename AcceptDialog get_ok() to get_ok_button()
...
Also renames:
- AcceptDialog add_cancel() to add_cancel_button()
- ConfirmationDiaglog get_cancel() to get_cancel_button()
2020-12-14 18:43:52 +00:00
bruvzg
62927383ed
[Complex Text Layouts] Add drop-caps support to TextParagraph and RTL.
2020-12-13 22:20:02 +02:00
kobewi
a3a31591b5
Allow to override drop data in LineEdit
2020-12-13 20:16:56 +01:00
Rémi Verschelde
bbf7bb3838
Merge pull request #42595 from bruvzg/ctl_rich_text
...
[Complex Text Layouts] Refactor RichTextLabel.
2020-12-13 13:42:00 +01:00
gongpha
0394ff3c99
Refresh TextLine buffer when moving tab
2020-12-13 02:38:53 +07:00
Tomasz Chabora
31cb04fbdd
Move initialization of some classes to headers
2020-12-11 18:20:03 +01:00
Yuri Roubinsky
2d4ef1c193
Fixed mouse scrolling in TextEdit's
2020-12-11 12:51:10 +03:00
bruvzg
6b6f101983
[Complex Text Layouts] Refactor RichTextLabel.
2020-12-11 09:48:49 +02:00
Michael Alexsander
bb39088201
Allow to circle back in 'PopupMenu' even if the first/last item is non-selectable
2020-12-10 09:32:02 -03:00
Rémi Verschelde
2a325f3888
Merge pull request #44233 from YeldhamDev/popupmenu_circle_back
...
Re-add circle back scrolling to 'PopupMenu'
2020-12-10 11:16:38 +01:00
Rémi Verschelde
67259d07db
Merge pull request #44070 from YeldhamDev/popupmenu_separator_font_color
...
Add "font_color_separator" theme property to 'PopupMenu'
2020-12-10 11:13:07 +01:00
Rémi Verschelde
70c435272a
Merge pull request #44124 from volzhs/tabs-in-front
...
Add option to draw all tabs in front
2020-12-10 07:55:41 +01:00
volzhs
814f9015f8
Add option to draw all tabs in front
2020-12-10 07:47:10 +09:00
Michael Alexsander
e8e0abc331
Re-add circle back scrolling to 'PopupMenu'
2020-12-09 13:25:00 -03:00
Rémi Verschelde
114f97ff11
Merge pull request #44128 from KoBeWi/ 🧹
...
Cleanup unused engine code
2020-12-09 13:01:50 +01:00
Tomasz Chabora
2c048ea164
Cleanup unused engine code
2020-12-09 12:12:36 +01:00
Rémi Verschelde
9a8e123593
Fix connections to CanvasItem and Tabs signals
...
Follow-up to #44188 and #44189 .
2020-12-09 12:04:02 +01:00
bruvzg
644f739660
Static analyzer fixes:
...
Removes unused code in OS.
Fixes return types.
Fixes few typos.
2020-12-09 10:17:53 +02:00
Marcel Admiraal
a65e609e21
Rename Tabs close and hover signals to tab_closed and tab_hovered
2020-12-08 09:51:06 +00:00
bruvzg
0ef483e9a9
[Complex Text Layouts] Performance optimizations.
2020-12-07 08:53:02 +02:00
bruvzg
a41f1c67e5
[Complex Text Layouts] Fix missing ItemList item text buffer init in add_icon_item
.
2020-12-06 20:31:00 +02:00
bruvzg
c3cc9d82b4
[Complex Text Layouts] Align glyph offsets and advances to the pixel grid.
2020-12-06 20:31:00 +02:00
bruvzg
a458e90179
[Complex Text Layouts] Adds missing Font::SPACING_* to the Label, LineEdit, TextEdit, TextLine and TextParagraph.
...
Fixes oversized editor control height (default editor spacing is negative) and control size changing when text is set.
2020-12-06 20:30:59 +02:00
Rémi Verschelde
1a001ad964
doc: Sync classref with current source
...
And fixups:
- Add missing bindings in RenderingServer
- Remove duplicate ArrayMesh enum bindings (they're in Mesh already)
- Remove redundant _unhandled_key_input binding in Control (it's in Node
already)
2020-12-04 22:28:08 +01:00
Michael Alexsander
383e8919e0
Add "font_color_separator" theme property to 'PopupMenu'
2020-12-03 11:36:03 -03:00
volzhs
d89677442b
Update page value properly of ScrollContainer
2020-12-01 11:52:37 +09:00
Yuri Sizov
999ce610a2
Add a minimap to the GraphEdit
2020-11-30 16:48:52 +03:00
Rémi Verschelde
72366c1858
Merge pull request #43971 from volzhs/fix-tab-container
...
Fix TabContainer crashes
2020-11-30 09:41:30 +01:00
FIF15
96fb9eeca4
fix #43695 by revert part of #41576
...
Note that #42109 already reverted the change of MenuButton,
and actually fixed #43695 .
As a result, this commit only reverts the change to LinkButton,
in order to prevent unpredictable consequences.
2020-11-30 12:28:45 +08:00
volzhs
f1eab4afbd
Fix TabContainer crashes
2020-11-30 11:05:59 +09:00
Eric M
12ded391f5
Exposed shortcut_context property to scripting and added documentation.
...
I didn't expose this as a property or add documentation in the original PR #42109 .
2020-11-30 00:11:40 +10:00
Yuri Roubinsky
4a3588a51a
Merge pull request #43828 from Chaosus/restore_line_antialiasing
...
Restored antialiased lines by emulation using triangle strips
2020-11-28 11:32:16 +03:00
Rémi Verschelde
a09846e015
Merge pull request #42109 from EricEzaM/PR/input-and-shortcuts-rework
...
Shortcuts rework - fixed issues with input propagation and triggering of unwanted shortcuts.
2020-11-28 09:04:25 +01:00
Yuri Roubinsky
3ec972fc95
Restored antialiased lines by emulation using triangle strips
2020-11-27 20:45:59 +03:00
bruvzg
3be31c4960
[Complex Text Layouts] Refactor TextEdit and CodeEdit controls.
2020-11-26 14:25:50 +02:00
bruvzg
d66eb77c9c
[Complex Text Layouts] Refactor Label and LineEdit controls.
2020-11-26 14:25:49 +02:00
bruvzg
99666de00f
[Complex Text Layouts] Refactor Font class, default themes and controls to use Text Server interface.
...
Implement interface mirroring.
Add TextLine and TextParagraph classes.
Handle UTF-16 input on macOS and Windows.
2020-11-26 14:25:48 +02:00
Rémi Verschelde
a8c2cc9028
Merge pull request #43807 from Xrayez/aspect-ratio-container
...
Add `AspectRatioContainer` class
2020-11-26 12:20:15 +01:00
Eric M
4d10524f7f
Removed unused property 'pending_resize' from Control
2020-11-26 15:30:13 +10:00
Andrii Doroshenko (Xrayez)
ba68383706
Add AspectRatioContainer
class
...
Co-authored-by: Ugis Brekis <ugis.brekis@productmadness.com>
2020-11-25 15:06:40 +02:00
Rémi Verschelde
8c713fa9bf
Merge pull request #43833 from volzhs/fix-scrollcontainer-bar-max-value
...
Fix to update scroll bar has correct max value in ScrollContainer
2020-11-25 13:27:36 +01:00
Tomasz Chabora
836b78f329
Update clear button when clicked
2020-11-25 00:42:07 +01:00
volzhs
67c2f2445f
Fix to update scroll bar has correct max value in ScrollContainer
2020-11-25 05:30:55 +09:00
Eric M
7941235e06
Add is_valid() check for InputEventKey in CanvasItemEditor.
2020-11-23 21:52:15 +10:00
Eric M
efe5c250d5
Implement new shortcuts system.
...
unhandled_key_input changed to unhandled_button_input. Controls can set a 'shortcut_context' which they can then use to determine if their shortcuts should be triggered or not, based on if the viewport's focused GUI control is a child of their 'shortcut context'.
2020-11-23 21:14:26 +10:00
Eric M
9d7d20a978
Added accept_event() calls for SceneTreeDock and BaseButton
2020-11-23 21:14:25 +10:00
Aaron Franke
02161aad5a
Remove empty lines around braces with the formatting script
2020-11-16 23:38:11 -05:00
Danil Alexeev
01d0addf56
Unified named colors in RichTextLabel
...
Now the BB tag `[color]` uses the color names from the `Color` class.
Also, the use of the `#` symbol in an HTML color code has become optional.
2020-11-17 02:55:36 +03:00
Rémi Verschelde
fc70f986b9
Merge pull request #42008 from Calinou/theme-rename-node-type
...
Rename the `type` parameter to `node_type` in Theme and Control
2020-11-16 13:20:24 +01:00
Rémi Verschelde
94875f5f48
Merge pull request #41851 from EricEzaM/PR/popup-menu-hysteresis
...
Added hysteresis for popup sub-menus
2020-11-16 09:34:28 +01:00
Sergey Minakov
8894c64e54
GUI: send cursor data from TextEdit
2020-11-15 16:03:21 +03:00
Rémi Verschelde
acb7d99fce
Merge pull request #43449 from nekomatata/line_edit_window_pos
...
Expose LineEdit scroll offset to scripts
2020-11-11 13:18:55 +01:00
PouleyKetchoupp
4775db1600
Expose LineEdit scroll offset to scripts
2020-11-11 10:07:31 +01:00
Eric M
c482e8ec85
Added hysteresis for popup sub-menus
...
This adds a small lag effect when opening submenus which allow the user to move directly to an item on the submenu without worrying about avoiding the autohide regions.
2020-11-08 13:28:23 +10:00
reduz
127458ed17
Reorganized core/ directory, it was too fatty already
...
-Removed FuncRef, since Callable makes it obsolete
-Removed int_types.h as its obsolete in c++11+
-Changed color names code
2020-11-07 20:17:12 -03:00
Rémi Verschelde
52c1b5fc41
Merge pull request #43283 from Calinou/color-remove-contrasted
...
Remove `Color.contrasted()` as its behavior is barely useful
2020-11-06 10:17:12 +01:00
Hugo Locurcio
7adb6b91b3
Remove Color.contrasted()
as its behavior is barely useful
...
Returning the most contrasting color isn't a trivial task, as there
are often many possible choices. It's usually best left for the user
to implement using a script.
2020-11-03 04:46:08 -05:00
Rémi Verschelde
c5d8dafec4
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 .
2020-11-03 09:19:03 +01:00
volzhs
8a588343db
Fix crash in TabContainer in case of no content at all
2020-10-29 19:52:21 +09:00
Yuri Roubinsky
c3df61a602
Removed redundant line from TextEdit
...
introduced in https://github.com/godotengine/godot/pull/43026
2020-10-28 12:56:20 +03:00
Rémi Verschelde
60ad64a101
Merge pull request #42766 from volzhs/tab-container
...
Put unselected tabs back in TabContainer control
2020-10-28 09:51:41 +01:00
Hugo Locurcio
c3b246e6af
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.
2020-10-27 14:58:52 +01:00
Devin Curry
b9c35af15d
ScriptEditor: Fix line number gutter drag select
...
Fixes issue #42722
2020-10-25 12:13:54 -07:00
Aaron Franke
961ee3a1d7
Rename button group property to button_group
2020-10-24 01:30:18 -04:00
Yuri Roubinsky
4c65dc975c
Shows ColorRect in Color constants autocompletion
2020-10-23 19:03:50 +03:00
Rémi Verschelde
f0f8864c9c
Merge pull request #42907 from Xrayez/add-ref-rect-border-width
...
Add `border_width` to `ReferenceRect`
2020-10-22 15:58:12 +02:00
Yuri Roubinsky
f2b98b4106
Remove printing of windowpos/screenpos in MenuButton
2020-10-21 09:58:37 +03:00
Andrii Doroshenko (Xrayez)
aef00021a9
Add border_width
to ReferenceRect
...
Exposes a hidden parameter behind `CanvasItem.draw_rect()`.
2020-10-20 13:58:50 +03:00
Yuri Roubinsky
4f4287243c
Removed underscore from GraphEdit begin/end_node_move signals
2020-10-20 09:22:40 +03:00
Rémi Verschelde
970d0d433b
Merge pull request #42891 from gvaneyck/graph-begin-node-move-timing
...
Fix emit_signal timing for GraphEdit's begin/end node move
2020-10-20 07:48:06 +02:00
Gabriel Van Eyck
fbc095dc78
Fix emit_signal timing for GraphEdit's begin/end node move
2020-10-19 18:25:07 -07:00
Rémi Verschelde
ff48a6a3bc
Merge pull request #42874 from dreamsComeTrue/text-edit-bounds-fix
...
TextEdit - fix valid bounds in 'set_line'.
2020-10-19 22:37:41 +02:00
Andrii Doroshenko (Xrayez)
9c3a33a4e8
Fixup ColorRect
and TextureRect
renames
2020-10-19 19:34:35 +03:00
reduz
ee06a70ea6
Refactor MethodBind to use variadic templates
...
Removed make_binders and the old style generated binders.
2020-10-18 12:28:44 +02:00
Dominik 'dreamsComeTrue' Jasiński
99c8a07919
TextEdit - fix valid bounds in 'set_line'. Fixes #41967
2020-10-17 17:59:15 +02:00
Paulb23
0d0a856ad5
Fixed main gutter not drawing on item toggle
2020-10-13 18:01:59 +01:00
volzhs
9eaa5ffab5
Put unselected tabs back in TabContainer control
2020-10-13 22:05:26 +09:00
FIF15
0e7e25d488
Remove redundant property "enabled_focus_mode"
...
Fixes #41529 .
2020-10-13 10:04:37 +02:00
volzhs
cac4fedb2a
Respect Tree.set_icon_max_width size for drawing selection box
2020-10-13 10:38:32 +09:00
Duroxxigar
4834e14493
Updated getters and setters names for toplevel
2020-10-02 19:09:01 -04:00
Rémi Verschelde
19f72beebb
Merge pull request #42451 from Duroxxigar/rename-toplevel
...
Renamed toplevel to be top_level
2020-10-02 10:57:23 +02:00
Rémi Verschelde
12091b39d2
Merge pull request #38743 from arrowinaknee/node-config-warnings
...
Update all get_configuration_warning() to retrieve warnings from the parent
2020-10-01 14:03:29 +02:00
Duroxxigar
b687ace7f9
Renamed toplevel to be top_level
2020-10-01 03:17:33 -04:00
Rémi Verschelde
c217498aa6
Merge pull request #41895 from 11thPenguin/master
...
Fix minor typo, gui_hid -> gui_hide
2020-09-29 10:35:12 +02:00
Rémi Verschelde
77ca3c20d8
Merge pull request #42092 from DashCell/dropping_file_on_parrent_directory_fix
...
Dropping file on parent directory fixed
2020-09-28 10:36:47 +02:00
Rémi Verschelde
915ac7360a
Merge pull request #42066 from dalexeev/output_copy
...
Improvement for the Copy button in the Output Log
2020-09-24 15:18:59 +02:00
PouleyKetchoupp
54eaaf456f
Fix popup menu item selected when opening the menu
...
In order to allow selecting items by either holding left click, or click
to open and click again to select, mouse button release was invalidated
based on the amount of mouse motion.
This was causing issues in some scenarios where an item could be
selected while opening the menu if the mouse moved enough between button
press and release.
This case could happen in the language selection of the project manager,
especially on linux, because of the order and timing of the mouse
events on x11.
This change invalidates mouse release based on a timing condition rather
than moved distance to handle any case from the display server properly.
2020-09-18 20:45:59 +02:00
Dashcell
1ac936f035
Dropping file on parrent dirrectory fixed
2020-09-16 14:53:22 -03:00
Rémi Verschelde
6f0fa8519f
Merge pull request #41776 from EricEzaM/PR/tooltip-bugfixes
...
Tooltip flickering and targeting fixes.
2020-09-15 10:24:17 +02:00
Eric M
07cb95bbda
Tooltip flickering and targeting fixes.
2020-09-15 17:34:29 +10:00
Danil Alexeev
fb6eb21afc
Improvement for the Copy button in the Output Log
...
Now if no text is selected, pressing the Copy button copies the entire text.
2020-09-14 21:57:54 +03:00
Rémi Verschelde
463879db56
Merge pull request #41995 from Rubonnek/disconnect-item-rect-changed
...
Disconnect item_rect_changed removing a child of GraphEdit
2020-09-12 15:26:46 +02:00
Wilson E. Alvarez
d370ae9e1f
Disconnect item_rect_changed when removing a child of GraphEdit
2020-09-11 17:37:20 -04:00
Marcel Admiraal
1bb65b2618
Remove bit fields and use fixed width integers instead.
2020-09-11 11:02:00 +01:00
Rémi Verschelde
9d9ee2d4c2
Merge pull request #41971 from nekomatata/richtextlabel-align-pointer
...
Fix RichTextLabel alignment for clickable regions
2020-09-11 09:39:48 +02:00
PouleyKetchoupp
b783fa1416
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.
2020-09-11 08:14:26 +02:00
Paulb23
33ab9cd621
Move safe line color into editor
2020-09-10 20:35:28 +01:00
Paulb23
d18a90b8f0
Move ConnectionGutter to editor code_editor
2020-09-10 20:35:28 +01:00
Paulb23
7829fdc1d0
Add folding gutter to code_edit
2020-09-10 20:35:28 +01:00
Paulb23
4d7df24d46
Add main_gutter (breakpoints, bookmarks, execution lines) to code_edit
2020-09-10 20:35:28 +01:00
Paulb23
907f9f2a84
Changed line_edited_from(from) to lines_edit_from(from, to)
2020-09-10 20:35:28 +01:00
Paulb23
1353ed5e44
Added Line numbers to CodeEdit
2020-09-10 20:35:28 +01:00
Paulb23
c13d9eb6e5
Added gutter system to TextEdit
2020-09-10 20:35:28 +01:00
Paulb23
a0b409cb14
Add and convert editor to use CodeEdit
2020-09-10 20:35:27 +01:00
Rémi Verschelde
1d70912080
Merge pull request #41890 from YeldhamDev/tabs_previous
...
Add 'get_previous_tab()' to 'Tabs'
2020-09-10 11:20:11 +02:00
Rémi Verschelde
0942af841c
Merge pull request #41920 from Chaosus/fix_colorpicker
...
Fix ColorPickerButton to apply changes after picker popup closed
2020-09-10 10:02:14 +02:00
Hugo Locurcio
3e0226515e
Rename ShortCut to Shortcut which is more grammatically correct
...
See https://github.com/godotengine/godot/issues/16863#issuecomment-685236980 .
2020-09-09 21:54:54 +02:00
Yuri Roubinsky
993ae871c7
Fix ColorPickerButton to apply changes after picker popup closed
2020-09-09 21:38:29 +03:00
Jonah Stich
f6b14238c7
Fixed minor typo, gui_hid -> gui_hide.
2020-09-08 18:08:21 -07:00
Michael Alexsander
2b319889cb
Add 'get_previous_tab()' to 'Tabs'
2020-09-08 17:35:49 -03:00
Marcel Admiraal
79802b31a9
Check if old mouse column is still available.
2020-09-08 10:24:57 +01:00
Rémi Verschelde
0a8c5845e3
Merge pull request #41870 from nekomatata/fix-line-edit-enter-regression
...
Fix LineEdit not consuming enter events
2020-09-08 11:14:33 +02:00
PouleyKetchoupp
5c63dec36e
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
)
2020-09-08 10:22:37 +02:00
Marcel Admiraal
f515e72348
Use != 0 instead of > 0 when checking bit mask.
2020-09-07 10:36:22 +01:00
Eric M
13fd60572b
Fixed get_usable_parent_rect() errors when initialising popup menus.
2020-09-06 13:59:40 +10:00
Rémi Verschelde
ff9195a905
Merge pull request #40649 from themvl/master
...
Fix bug where leading and trailing spaces werent taken into account with center and right allignment
2020-09-05 12:38:26 +02:00
Rémi Verschelde
21da779aee
Merge pull request #41689 from nathanfranke/fix-popupmenu-unresponsive
...
Fix PopupMenu unresponsive on right side of menu
2020-09-04 13:53:37 +02:00
bruvzg
80b8eff6aa
[Complex Test Layouts] Change String
to use UTF-32 encoding on all platforms.
2020-09-03 19:56:24 +03:00
Rémi Verschelde
2a8531cc56
Merge pull request #41456 from nekomatata/x11-fix-popups
...
Popup fixes for X11 display server
2020-09-03 00:09:19 +02:00
Nathan Franke
034e123c1d
Fix PopupMenu unresponsive on right side of menu
2020-09-02 01:24:10 -05:00
Rémi Verschelde
7844775a76
Revert "Updated LineEdit to address #41278 "
...
This reverts commit 71febfd6e2
.
2020-09-01 14:04:37 +02:00
EricEzaM
73c7fb2118
PopupMenu rework and enhancements
...
Many scrolling behaviour improvements and the ability to limit popup size.
2020-09-01 17:56:38 +10:00
mvl
4318ad94ac
Fix bug where leading and trailing spaces werent taken into account with center and right allignment.
2020-08-31 20:09:28 +02:00
Tony-Goat
71febfd6e2
Updated LineEdit to address #41278
...
Updated set_max_length() function to actually pull a substring of the current text so it's not all thrown away when the new max length is shorter than the current length.
2020-08-26 11:19:24 -06:00
PouleyKetchoupp
6d1ef8efac
Fix popup closed when an ancestor window is focused
...
Previously, only the direct parent were taken into account.
Popups like contextual menus could stay open if an ancestor which is
not a direct parent was focused.
Reproduction steps (any platform):
- Select a node in the scene tree
- Left click the node to start renaming
- Right click to open the copy/paste contextual menu
- Left click in the scene tree to deselect the node
Also closing popup when focusing out of the application, without waiting
for the parent to get focus to do so.
2020-08-22 18:42:42 +02:00
Cheeseness
1f159306ed
Skip indentation of empty lines when indenting a selection.
2020-08-14 23:53:34 +10:00
Rémi Verschelde
044b3d0ed3
Merge pull request #37769 from HellonLegs/master
...
solved ctrl + alt + special character Issue #6851
2020-08-14 13:03:07 +02:00
Rémi Verschelde
fac2bb99ac
Merge pull request #38223 from EricEzaM/spinbox-update-lineedit-after-bad-input
...
Fixed bug where spinbox would not update to it's actual value after non-numeric input
2020-08-14 12:16:32 +02:00
Umang Kalra
cec21ab82c
Fix RichTextLabel center alignment bug
...
Fixes #40207 .
2020-08-11 12:11:38 +02:00
PouleyKetchoupp
095331fae4
Add option to disable virtual keyboard for TextEdit
...
Adding support for disabling virtual keyboard on mobile platforms, in
order to make it consistent with LineEdit.
It allows implementing a custom virtual keyboard.
2020-08-09 11:06:36 +02:00
Paulb23
51dd4792d7
Fix TextEdit line width cache not being updated
2020-07-29 21:42:38 +01:00
Aaron Franke
56e2c6c704
Make all String float conversion methods be 64-bit
2020-07-27 18:38:53 -04:00
PouleyKetchoupp
8c05dadcff
Fix Return key events in LineEdit & TextEdit on Android
...
Depending on the device implementation, editor actions could be
received with different action ids or not at all for multi-line.
Added a parameter to virtual keyboards to properly handle single-line
and multi-line cases in all situations.
Single-line:
Input type set to text without multiline to make sure actions are sent.
IME options are set to DONE action to force action id consistency.
Multi-line:
Input type set to text and multiline to make sure enter triggers new lines.
Actions are disabled by the multiline flag, so '\n' characters are
handled in text changed callbacks.
2020-07-26 20:06:07 +02:00
Sergey Minakov
6e550e90bf
GUI ScrollBar: possible fix for scrolling
...
Use of unmodified value returned by 'screen_is_touchscreen' to be used in determening if scroll bar should be scrolled
2020-07-25 21:54:56 +02:00
Rémi Verschelde
27d1209282
Merge pull request #38088 from YeldhamDev/name_tooltips_tweaks
...
Small naming and tooltip tweaks
2020-07-24 13:57:13 +02:00
Rémi Verschelde
513b39882a
Merge pull request #40436 from DanielZTing/master
...
Evenly distribute stretched Nodes in BoxContainer
2020-07-24 13:47:18 +02:00
Michael Alexsander
5643d2e3fe
Small naming and tooltip tweaks
2020-07-23 20:17:43 -03:00
Rémi Verschelde
a30bac94cc
Merge pull request #39737 from Cevantime/add_force_caret_displayed_to_line_edit
...
add force caret display to line edit
2020-07-23 18:02:51 +02:00
Rémi Verschelde
1ab0644532
Merge pull request #40217 from theoway/visible_line_count_fix
...
Fixes the get_visible_line_count() of rich text label
2020-07-22 09:50:26 +02:00
Rémi Verschelde
d8c3fba1d4
Merge pull request #40588 from nekomatata/virtual-keyboard-disable
...
Add option to disable virtual keyboard for LineEdit
2020-07-22 09:33:47 +02:00
PouleyKetchoupp
0aa56e3ab8
Add option to disable virtual keyboard for LineEdit
...
Co-authored-by: Alexander Holland <alexander.holland@live.de>
2020-07-22 08:19:05 +02:00
Rémi Verschelde
a5fb445121
Merge pull request #40450 from asmaloney/spelling
...
Fix spelling & grammar in comments, docs, and messages
2020-07-21 22:14:04 +02:00
Andy Maloney
4dda62f591
Fix spelling & grammar in comments, docs, and messages
2020-07-21 15:17:23 -04:00
Tomasz Chabora
c0479496fa
Prevent infinite loop in Tree incremental search
2020-07-20 13:22:00 +02:00
Daniel Ting
04ea6ec88d
Evenly distribute stretched Nodes in BoxContainer
...
Add any leftover fractional pixels to an error accumulator. When the
accumulator is greater or equal to one, add one pixel to the current
Node's size and subtract one from the accumulator.
Closes #36522
2020-07-16 12:24:57 -05:00
Cevantime
dc46bc8857
add force caret display to line edit
2020-07-15 13:00:25 +02:00