Rémi Verschelde
dd2aba021c
Merge pull request #18853 from YeldhamDev/gui_cppcheck_fixes
...
Fixed some warnings found with Cppcheck
2018-05-14 07:39:54 +02:00
Michael Alexsander Silva Dias
7f72d6476b
Fixed some warnings found with Cppcheck.
2018-05-14 02:14:56 -03:00
Hugo Locurcio
814989e106
Add support for bilinear bars in TextureProgress
...
These bars will extend from the center to the left and right of
the node, or from the center to the top and bottom of the node
depending on the option selected.
The Clockwise and Counter Clockwise mode will expand the progress
bar both ways in a circular fashion.
2018-05-12 10:23:06 +02:00
toger5
d927e972d1
fixed a input not registered in osx script editor
2018-05-11 04:30:05 +02:00
Gabriel Gavilan
b0069bb118
Apply viewport scale to selection update methods. Changed to propper fix sugested by reduz
2018-05-09 20:37:50 +02:00
Charly Mourglia
b09e0454bb
Consider TextEdit paste operation complex.
...
Not considering a paste operation as a complex one ends up
adding an unneeded extra step when pasting over a selection.
This fixes issue #18325
2018-05-09 14:07:06 +02:00
Deluvi
215150cfbf
get_word_at_pos considers simple and double quotes
...
When using the get_word_at_pos function in TextEdit, the function would
return a full string only if this string is surrounded by double quotes
and not by simple quotes.
With this fix, get_word_at_pos will return the full string, whether be a
string surrounded by simple or double quotes.
Fixes #17437
2018-05-09 08:33:57 +02:00
Guilherme Silva
d63cc11bee
Change from "search dialog" to "search bar" on help screen
2018-05-08 12:19:32 +00:00
Rémi Verschelde
9dbfe5dc61
Merge pull request #17578 from endragor/ft-outlines
...
Perfect FreeType-based outlines for DynamicFonts
2018-05-08 15:37:00 +02:00
Juan Linietsky
47db64ac00
Merge pull request #15258 from RyanStein/bugfix-15241
...
Use exact positioning for the ItemList::get_tooltip method.
2018-05-08 10:36:22 -03:00
Ruslan Mustakov
863dd9aa46
Always emit dynamic font change in update_oversampling
...
Fixes #15787 .
The issue occurred when two (or more) separate DynamicFont instances
used the same DynamicFontAtSize instance due to having equal
properties. The first instance updated its data_at_size and emitted
"changed" signal, but the second did not because it considered the
data_at_size to be up to date, even though it has just been updated.
2018-05-08 19:01:15 +07:00
Ruslan Mustakov
5cd12f6649
Perfect FreeType-based outlines for DynamicFonts
...
- Implement outlines based on FreeType Stroker API. This allows
artifact-free results, similar to what you will see in Web or any text
editing tools. Outline is a part of DynamicFont rather than Label,
because outlines have to be baked into the font's atlas. Font has a
default outline_color and a Label can specify font_outline_modulator
that will be multiplied with the Font's color to get the final result.
- draw_char now has to be called twice to fully render a text - first
with p_outline == true for each character and then with
p_outline == false for each character.
- Number of draw-calls is reduced from 5 to 2 per outlined character.
- Overall cleanup of DynamicFont code, extracted duplicated code pieces
into separate methods.
- The change is backward-compatible - Labels still have outline
properties that work exactly as they worked before.
Closes #16279 .
2018-05-08 13:45:24 +07:00
Max Hilbrunner
b808798772
Merge pull request #18700 from GodotExplorer/fix-#18686
...
Add default paramater value for OptionButton::add_icon_item
2018-05-08 08:15:59 +02:00
Geequlim
9ee8ddcd8d
Add default paramater value for OptionButton::add_icon_item
2018-05-08 13:40:52 +08:00
Rémi Verschelde
64cb61619a
Merge pull request #15928 from StateOff/feature_batch_rename
...
Implements "Batch Rename" editor tool.
2018-05-08 07:36:24 +02:00
Juan Linietsky
7811156c4f
Merge pull request #17451 from Goutte/feat-base-button-mask
...
Allow configuration of which mouse buttons the BaseButton responds to
2018-05-07 18:24:17 -03:00
Juan Linietsky
2ba8b5b27c
Merge pull request #17828 from bojidar-bg/17779-progressbar-minimum-size
...
Fix StyleBox ignoring region rect and ProgressBar using center size
2018-05-07 16:33:12 -03:00
Juan Linietsky
dff3a2f378
Merge pull request #18003 from sherjilozair/patch_macosx_shortcuts
...
Add additional macos shortcuts for going to start/end of line
2018-05-07 15:59:22 -03:00
Max Hilbrunner
fb4e9526e8
Merge pull request #18122 from olivergs/wip/rtl-content-height
...
RichTextLabel, doc: Added new method to get total content height
2018-05-07 14:53:43 +02:00
Max Hilbrunner
fc9fad925b
Merge pull request #18146 from mjtorn/gh-mjtorn-rtl-shadow
...
Implement font shadows for RichTextLabel
2018-05-05 07:01:04 +02:00
Max Hilbrunner
f9733b5cee
Merge pull request #18397 from KidRigger/working_te
...
Support of CMD+Backspace and CMD+Delete on MacOS.
2018-05-04 11:19:09 +02:00
Unknown
4e26e5e268
Script Editor now displays positional column
...
This solves #17931 and makes the script editor consistent with other text editors(Sublime, Gedit, Vim) in displaying the position rather than the raw number of characters.
2018-05-03 18:03:20 +01:00
Rémi Verschelde
b774156729
Merge pull request #18514 from neikeq/api-hash-fixes
...
API hash fixes
2018-05-03 14:36:32 +02:00
robfram
c17de1f70f
Fix placeholders position in `LineEdit` when editing inside the Editor
...
Editing the `Text` property through the editor causes a wrong
placement of the placeholder, as it calls `LineEdit::clear_internal`,
which was wrongly reseting the cached placeholder width.
Fix #18184 .
2018-05-02 21:15:46 +02:00
Rémi Verschelde
b6a7c5693f
Merge pull request #16977 from SASUPERNOVA/master
...
Created a new function named get_element in GridContainer. This funct…
2018-05-01 16:32:30 +02:00
Rémi Verschelde
204de5e6dc
Merge pull request #18348 from rfht/master
...
fix clang6 assignment error
2018-05-01 09:31:29 +02:00
Rémi Verschelde
7663d65a10
Merge pull request #18382 from groud/fix_gridcontainer_children_visibility
...
Fix GridContainer's children visibility breaking the layout
2018-05-01 08:47:41 +02:00
Max Hilbrunner
613a8bee41
Merge pull request #18370 from KidRigger/master
...
Adds support for CMD+Left and CMD+Right on MacOS
2018-04-30 19:02:20 +02:00
Max Hilbrunner
f1bbb59653
Merge pull request #18489 from Calinou/tweak-property-hint-ranges
...
Tweak the property hint ranges of caret blink and line length guideline
2018-04-30 18:19:09 +02:00
Hugo Locurcio
c118a0ee5e
Make the LineEdit "secret" character customizable
2018-04-30 02:25:17 +02:00
Ignacio Etcheverry
7034d48032
Fix binding some core API methods only in tools builds
2018-04-29 19:49:26 +02:00
Hugo Locurcio
0eb2f6c223
Tweak the property hint ranges of caret blink and line length guideline
...
This allows for more precise adjustments.
2018-04-28 19:13:30 +02:00
Anish
515f2200fb
Support of CMD+Backspace and CMD+Delete on MacOS.
...
Adds support for CMD+Backspace, to delete all text
before the cursor in the line and CMD+Delete to delete
all text after the cursor in line following the typical
MacOS text editing workflow
Fixes : #18059
2018-04-24 18:53:04 +05:30
groud
c3f982156d
Fix GridContainer's children visibility breaking the layout
2018-04-23 20:00:06 +02:00
Anish
a126876cc8
Adds support for CMD+Left and CMD+Right on MacOS
...
CMD+Left and CMD+Right are hotkeys used on MacOS for
moving cursor to start and end of the text, respectively.
They are now supported, alongside ALT+key.
Fixes : #17631
2018-04-23 16:09:20 +05:30
Hugo Locurcio
1c419531a0
Change ".." punctuation for "..." in editor strings ( #16507 )
2018-04-22 19:36:01 +02:00
thfrwn
f48ff4dc64
fix clang6 assignment error
2018-04-21 22:26:43 -07:00
sersoong
a1cfc89108
Fixed context menu TTR bugs
2018-04-19 15:31:38 +08:00
Rémi Verschelde
67cf812e45
Merge pull request #18161 from flashyincceo/fixing-bug-#18128
...
Add popup_closed signal for ColorPickerButton
2018-04-18 15:09:57 +02:00
SASUPERNOVA
d8d329883e
Updated fork to match current version of Godot.
2018-04-15 14:53:28 +03:00
ShyRed
cbcb96ae85
ItemList selection: Check against item count
...
ItemList needs to check against the number of items available when the user moves the selection via "ui_right" action.
2018-04-14 14:36:53 +02:00
Peter Folkins
3f837a623f
Add popup_closed signal for ColorPickerButton
...
Fixes #17688
2018-04-13 15:55:10 -05:00
Juan Linietsky
1d15c5d726
Merge pull request #17502 from groud/2Deditor_rect
...
Remove the rect surrounding 2D nodes in 2D editor when it's not pertinent
2018-04-13 10:21:44 -03:00
Markus Törnqvist
1c6ea572ca
Implement font shadows for RichTextLabel
2018-04-12 15:09:48 +03:00
Oliver Gutierrez
63a472aea4
RichTextLabel, doc: Added new method to get total content height
2018-04-11 14:53:13 +01:00
Rémi Verschelde
fbc61374ca
Use internal physics processing for Nodes' internal logic
2018-04-11 09:28:14 +02:00
Poommetee Ketson
72aa87758a
Update classref and docs, fix missing parameters' name
2018-04-11 10:20:22 +07:00
Paulb23
aba4247910
Fixed color region calculation for the first line
2018-04-10 20:42:28 +01:00
Rémi Verschelde
cb996d7169
Merge pull request #18095 from robfram/fix-lineedit-17113
...
LineEdit placeholder alignment, content margins, and overflow bugs
2018-04-10 08:18:16 +02:00
Rémi Verschelde
a360a9b348
Merge pull request #18091 from RandomShaper/icon-radio-item
...
Add support for radio-looking items with icon
2018-04-10 08:09:18 +02:00
Rémi Verschelde
7e2782e177
Merge pull request #17081 from endragor/no-press-when-scroll
...
Make Button not emit press when container is scrolled
2018-04-10 07:56:37 +02:00
robfram
53b51f68bf
LineEdit placeholder alignment, content margins, and overflow bugs
...
LineEdit doesn't correctly uses style margins nor use placeholders
width correctly, causing multiple rendering bugs.
2018-04-09 23:57:23 +02:00
Rémi Verschelde
24c2efc0f5
Merge pull request #16473 from ianb96/move_tab
...
Drag to Rearrange Editor Docks
2018-04-09 21:45:06 +02:00
Pedro J. Estébanez
b964a9e678
Add support for radio-looking items with icon
...
Letting users of `PopupMenu` use them. `OptionButton` was one of those interested and is updated in this commit.
Fixes #18063 .
2018-04-09 19:55:54 +02:00
Rémi Verschelde
36552c2c90
Merge pull request #18040 from Paulb23/color_region_cache
...
Fixed colour regions and added local colour region cache
2018-04-09 16:05:26 +02:00
Ruslan Mustakov
dcf5be92a3
Make BaseButton not emit press when container is scrolled
...
This fixes the problem described in #13996 in a proper way.
This also adds "deadzone" property to ScrollContainer. It can be used
on mobile, where taps are not as precise as mouse clicks. Player could
slightly move their finger when tapping, in which case we still want
the button to be pressed rather than the container to be scrolled.
2018-04-09 20:34:52 +07:00
ianb96
9ac3c474b8
Drag to rearrange Tabs and TabContainer
2018-04-08 20:23:37 -04:00
Juan Linietsky
24cf58f917
Merge pull request #16574 from isaacremnant/better_grow_direction
...
Added GROW_DIRECTION_BOTH for controls
2018-04-08 16:42:16 -03:00
Juan Linietsky
6eb0c74e9d
Merge pull request #17443 from Noshyaar/tilesetcrash
...
Fix converting to tileset crashes Godot if existing file is not tileset
2018-04-08 09:31:54 -03:00
Juan Linietsky
187b14ae24
Merge pull request #17730 from RandomShaper/radio-buttons-in-menus
...
Radio buttons in menus
2018-04-07 16:41:39 -03:00
Juan Linietsky
51f689de3c
Merge pull request #17744 from robfram/fix-rtl-table
...
Fix `RichTextLabel` column size growing beyond its calculated `max_width`
2018-04-07 16:36:50 -03:00
Juan Linietsky
644ada1aac
Merge pull request #17752 from nikibobi/texture-progress-tint
...
Add tint property to TextureProgress
2018-04-07 16:35:49 -03:00
Juan Linietsky
7dedb22f0b
Merge pull request #17809 from RandomShaper/menu-item-on-release
...
Improve popup menus usability
2018-04-07 16:22:00 -03:00
Paulb23
b571a29df5
Fixed color regions and added local color region cache
2018-04-07 14:14:19 +01:00
Pedro J. Estébanez
259ed1d400
Improve popup menus usability
...
It seems that popups were intended to "grab" the mouse click that triggered them, but their intent was being lost. This commit does the necessary changes to let it happen and updates items that were trying to get advantage of it, because the semantics of `Control::grab_click_focus()` have changed a bit. Namely, it must be called **before** showing the modal.
This allows to popup a menu and activate an item in it in a single click-point-release cycle, instead of having to click once to open the menu and once more to pick an item.
This ability is extended even to context menus activated with the RMB (or any other mouse button, for that matter). The editor benefits from this in the context menu of the tree dock, which has been patched to opt-in for this feature.
This improves UX a bit by saving unnecessary clicks.
From now on, `PopupMenu` always grabs the click and also invalidates the first button release unless the mouse has moved (that's what `set_invalidate_click_until_motion()` was doing and now it's removed), so there is no longer the need of doing both things at every point a pop-up menu is shown.
2018-04-07 01:06:02 +02:00
Sherjil Ozair
166c7fdc9d
Add additional macos shortcuts for going to start/end of line
2018-04-05 15:44:25 -04:00
Rémi Verschelde
5ede505f14
Merge pull request #17923 from Paulb23/add_abstract_syntax_highlighter
...
Abstracted the syntax highlighter from text edit.
2018-04-04 09:50:51 +02:00
Gilles Roudiere
72ed1e4244
Remove the selection rect for nodes that do not require it
2018-04-03 22:04:19 +02:00
Paulb23
f7c727e6c3
Abstracted the syntax highlighter from text edit
2018-04-02 12:41:44 +01:00
Wilson E. Alvarez
747c65272d
Added signal to VideoPlayer to notify when the video finished playing
2018-04-01 23:40:26 -04:00
bosak
90918ff5ab
add tint for under, progress and over and tint group
2018-04-01 19:22:51 +03:00
Bojidar Marinov
91eb80041d
Fix StyleBox ignoring region rect and ProgressBar using center size
...
ProgressBar used the center size of the stylebox to calculate its minimum size, thus disallowing certain setups.
If the old behaviour is wanted, it can be forced by providing a custom minimum size, or by giving proper margins to the stylebox.
Fixes #17779 .
2018-03-28 20:56:09 +03:00
Pedro J. Estébanez
a6dc160d5c
Use radio-button-like menu entries where applicable
2018-03-27 19:19:45 +02:00
Pedro J. Estébanez
ab3b1d9f3e
Add radio-button-looking entries to PopupMenu
...
They work exactly the same as current checkbox-decorated items, but in order to preserve compatibility, separate methods are used, like `add_radio_check_item()`. The other option would have been to add a new parameter at the end of `add_check_item()` and the like, but that would have forced callers to provide the defaults manually.
`is_item_checkable()`, `is_item_checked()` and `set_item_checked()` are used regardless the item is set to look as check box or radio button.
Keeping check in the name adds an additional clue about these facts.
Closes #13055 .
2018-03-27 19:19:45 +02:00
robfram
ef2b7b090c
Fix `RichTextLabel` column size growing beyond its calculated `max_width`
...
When `RichTextLabel` calculated the actual width of columns, it let
them grow to sizes greater than its calculated `max_width`. Now this
PR ensures no columns grows beyond `max_width`, and the excess width
is distributed among the columns which can still grow.
It should fix #17731 .
2018-03-24 18:09:35 +01:00
Poommetee Ketson
ed3b080ca6
Fix converting to tileset crashes Godot if existing file is not tileset
...
also make TileSetEditorPlgn tile list updates the preview modulate
2018-03-23 21:27:30 +07:00
Rémi Verschelde
5f0ea4ddcf
Merge pull request #17612 from robfram/fix-richtextlabel-bbcode
...
Fix bad rendering of BBCode tables in `RichTextLabel`
2018-03-23 10:22:33 +01:00
bosak
1fa69c24a0
add tint property to TextureProgress changes progress color
2018-03-21 22:33:48 +02:00
Rémi Verschelde
cc8f7c78af
Merge pull request #17618 from groud/fix_gridcontainer
...
Fixes wrong calculation of gridcontainer's children size
2018-03-19 10:12:20 +01:00
Gilles Roudiere
896e5a64d3
Fixes wrong calculation of gridcontainer's children size
2018-03-18 22:33:17 +01:00
robfram
5358befb41
Fix bad rendering of BBCode tables in `RichTextLabel`
...
Text overflowed canvas as tables didn't calculate correctly the width
of their columns. They used the whole table width available for each
column. Also, the `cell` parameter was wrongly parsed if used with its
optional argument (expand ratio).
This PR fixs the parsing of `cell` parameter (i.e. `cell=e`) and the
distribution of the full table width between columns, but it overrides
automatically the `expand` flag if the column is smaller than it could
be, to allow a better UX out-of-the-box. It keeps the `expand_ratio`
flag to let the user customize how every column grows in relation to
the rest.
Partially fix #6289 .
2018-03-18 18:06:24 +01:00
Fabio Alessandrelli
c531262190
Merge pull request #16947 from Faless/ui_actions
...
GUI elements ui_action usage, improvements
2018-03-16 20:55:11 +01:00
Hein-Pieter van Braam
64b336b367
Merge pull request #17293 from bncastle/basebutton_fix_pressed
...
Fix "ui_accept" action not calling _pressed() function in GDScript Button
2018-03-15 22:58:49 +01:00
Goutte
ed69345a19
Add a binary mask to allow configuration of which mouse buttons the BaseButton will respond to.
2018-03-13 23:59:53 +01:00
Rémi Verschelde
fe93459ef9
Merge pull request #17345 from AlexHolly/expose-itemlist-move-item
...
expose Itemlist.move_item and optimize functionality
2018-03-13 20:05:00 +01:00
Alexander Holland
a3d2f59dbe
expose itemlist.unselect_all()
2018-03-13 16:46:25 +01:00
Alexander Holland
73146af740
expose Itemlist.move_item and optimize functionality
2018-03-13 15:19:43 +01:00
Rémi Verschelde
88c1430613
Merge pull request #17314 from robfram/complete-path-15813
...
Fix bad autocomplete of partially written node paths when using syntactic sugar notation ($)
2018-03-13 12:16:51 +01:00
Rémi Verschelde
6d97fbdfc1
Merge pull request #17359 from AlexHolly/completion-edge-jump
...
Auto completion edge jump
2018-03-13 12:01:14 +01:00
Rémi Verschelde
6e491ff283
Merge pull request #17383 from poke1024/colorpicker-tweaks
...
Better tab support for color picker
2018-03-13 11:42:51 +01:00
Rémi Verschelde
ada1357dfd
Merge pull request #17422 from robfram/fix-radial-textureprogress
...
Implement line clipping for `TextureProgress` to avoid bad rendering
2018-03-13 11:25:49 +01:00
Rémi Verschelde
b1c9a7c757
Merge pull request #17410 from groud/fix_grid_container
...
Fixes infinite loop in GridContainer
2018-03-13 10:34:31 +01:00
Rémi Verschelde
c446231a6e
Merge pull request #17191 from garyo/fix_grid_cont
...
Fix infinite loop in GridContainer layout
2018-03-13 10:34:20 +01:00
Bernhard Liebl
8277bf29a4
Various ui tweaks for color picker
2018-03-12 13:58:31 +01:00
Alexander Holland
11e40d3700
expose Itemlist.is_anything_selected
2018-03-11 03:01:16 +01:00
robfram
7991bd168d
Implement line clipping for `TextureProgress` to avoid bad rendering due to imprecise UV mapping
...
Original code used a quick aproximation for simulating the
correspondent texel in the `TextureProgress` texture as radial
progress indicator. This lead to visualization errors. Changed it for
a Liang-Barsky line clipping algorithm stripped to its minimum for
this specific use case.
Fix #17364 .
2018-03-10 20:51:42 +01:00
Gary Oberbrunner
561e57df13
Fix infinite loop in GridContainer layout
...
I had a grid container and tried to set rect.min_height larger in the
editor; that caused an infinite loop in GridContainer::_notification
at line 118. The reason is max_index was being set to the *height* of
the row, not the *index* of the row. So later when it tried to erase
that row and try again, there was nothing to erase.
I applied the same fix to the width code.
2018-03-10 14:38:35 -05:00
Gilles Roudiere
44cb8eb3a2
Fixes infinite loop in GridContainer
2018-03-10 14:01:20 +01:00
Alexander Holland
e36dd4282b
auto-completion edge jump
...
arrow up/down jumps to end/start on edges
2018-03-09 17:31:07 +01:00
Leon Krause
38623e07ac
Prevent division by zero in GridContainer
2018-03-07 17:36:28 +01:00
robfram
95f186b621
Fix bad autocomplete of partially written node paths when using syntactic sugar notation ($)
...
If you had a tree like Node2D->Sprite->Camera2D and you write a
code like $Node2D/Spr and chose the autocompletion sugested
Node2D/Sprite, the resulting string was $Node2D/Node2D/Sprite
instead $Node2D/Sprite. If you chose Node2D/Sprite/Camera2D, then
you ended with $Node2D/Node2D/Sprite/Camera2D.
Fix #15813 .
2018-03-06 19:25:14 +01:00
bncastle
ceb079fa35
Fix BaseButton not always calling _pressed()
...
Fix "ui_accept" action in BaseButton.cpp not calling _pressed() func in
GDScript
2018-03-05 20:37:10 -05:00
Bernhard Liebl
0e1e95c41f
Fix more regressions in RichTextLabel from PR 15711
2018-03-02 19:19:46 +01:00
poke1024
89f607604e
Fix regression through fa98637aca
2018-03-01 18:03:53 +01:00
Hein-Pieter van Braam
d702d7b335
Fix various valgrind reported uninitialized variable uses
2018-02-28 21:55:13 +01:00
Rémi Verschelde
6093660bfb
Merge pull request #16656 from JFonS/fix_gradient_crash
...
Fix weird editor crash when switching from editing one gradient to another keeps 'grabbing' variable to true
2018-02-27 11:38:19 +01:00
Fabio Alessandrelli
920d2bfdfa
Add two new default actions ui_end, ui_home
...
Used by Slider and Scrollbar
2018-02-23 13:01:28 +01:00
Fabio Alessandrelli
ff122a7e1f
Add item_focused signal to OptionButton
...
And id_focused to Popupmenu.
2018-02-23 13:01:28 +01:00
Fabio Alessandrelli
59c23c1369
Scrollbar now uses UI actions instead of keys
2018-02-23 13:01:28 +01:00
Fabio Alessandrelli
e15fe296bd
Line edit up/down focus pass through
...
When line edit receive a up/down and the cursor is at beginning/end it
will not set the input as handled
2018-02-23 13:01:28 +01:00
Fabio Alessandrelli
e3eb686906
Tree now uses UI actions instead of keys
2018-02-23 12:58:35 +01:00
Fabio Alessandrelli
4a71483a65
Popupmenu now uses UI actions instead of keys
2018-02-23 12:58:16 +01:00
luz.paz
612ab4bbc6
Fix typos with codespell
...
Found via `codespell -q 3 --skip="./thirdparty,./editor/translations" -I ../godot-word-whitelist.txt`
Whitelist consists of:
```
ang
doubleclick
lod
nd
que
te
unselect
```
2018-02-21 19:46:06 +01:00
Max
6a48f952ca
Fixed disappearing text on filedialog buttons
2018-02-21 16:04:51 +02:00
Michael Alexsander Silva Dias
db80d56388
Fixed "Open" button being enabled when nothing is selected in a FileDialog while in "Open folder" mode.
2018-02-20 12:19:06 -03:00
Rémi Verschelde
55f00d9655
Merge pull request #16455 from volzhs/close-docs
...
Keep to show current script when closing all docs
2018-02-20 09:40:29 +01:00
volzhs
df84290a7e
Keep to show current script when closing all docs
...
also fix error when removing multiple tabs from TabContainer at same frame.
like closing multiple docs at once.
Fix #16403
2018-02-20 14:39:52 +09:00
Rémi Verschelde
6ee4298ee3
Merge pull request #16652 from aragar/FixQuotationInString
...
Fix quotation in string
2018-02-19 22:12:53 +01:00
Rémi Verschelde
d5daaa72fa
Merge pull request #15306 from poke1024/item-list-draw-speed
...
Boost drawing speed of ItemLists with many items
2018-02-19 21:53:59 +01:00
Alexander Alekseev
66c39b1426
Fixes OptionButton selection index being reset to zero at instanciation
...
Bug: engine tries to set selected item before items were added during save scene/run project, because of wrong properties order.
Fixes #10213 .
2018-02-19 20:25:34 +01:00
Rémi Verschelde
b93d6a001b
Merge pull request #16566 from groud/gui_input_rework
...
2D Editor GUI input rework
2018-02-19 20:05:35 +01:00
isaacremnant
cc902cf9ab
Force controls to save rect_clip_content since they do not all default to false.
2018-02-18 22:24:05 -05:00
Artem Varaksa
d35e486228
Clean up some bad words from code comments
2018-02-17 16:00:39 +03:00
Gilles Roudiere
8dad41e395
2D editor GUI input rework. Changes are:
...
- The input handling is done into several distinct functions, and the
code is more consistent.
- The actions' history is more precise ("Edited CanvasItem"
is now "Rotated CanvasItem","Moved CanvasItem",etc...)
- Fixed a little bug about input key events not forwarded correctly to plugins
- IK is followed by default when you move a bone node, the alt-key allow
you to move it normally
2018-02-16 10:14:52 +01:00
JFonS
f68594a525
Fix weird editor crash when switching from editing one gradient to another keeps 'grabbing' variable to true
2018-02-14 16:48:13 +01:00
Rémi Verschelde
2551db44e1
Merge pull request #15618 from ianb96/fold_comment
...
TextEdit folding over unindented comments
2018-02-14 16:36:42 +01:00
Rémi Verschelde
f1ee573ebe
Merge pull request #15711 from poke1024/fix-rtl-descent
...
Fixes wrong vertical font layout in RichTextLabel
2018-02-14 16:28:16 +01:00
Rémi Verschelde
e777751958
Merge pull request #15855 from mrcdk/texture_button_mask_fixes
...
The TextureButton's bitmask takes into account the stretch mode selected
2018-02-14 16:16:10 +01:00
Rémi Verschelde
1f17881d5d
Merge pull request #15903 from groud/fix_minsize
...
Fixes GridContainer and SplitContainer wrong layouting
2018-02-14 16:04:06 +01:00
Michael Alexsander Silva Dias
4dbf6ac1b8
Added "allow_reselect" property to ItemList and enabled it for the method/help lists.
2018-02-14 03:38:07 -02:00
Rémi Verschelde
8944773934
Merge pull request #16422 from synasius/fixed-line-edit-text-changed-signal
...
Fixed #15082 : line edit emits two "text_changed" signals when pasting while text is selected
2018-02-13 22:14:25 +01:00
Rado'sPC\aRaGaR
f38e819fc1
Fix quotation in string
...
fix for #16404
2018-02-12 23:01:36 +02:00
isaacremnant
4ef11eb3ed
Implements #16546 by adding GROW_DIRECTION_BOTH which allows a control to grow from its center.
2018-02-12 01:39:18 -05:00
Ovnuniarchos
fe1ca3c6e6
SpinBoxes calculate correctly their width before first redraw.
2018-02-05 22:42:30 +01:00
Federico Frenguelli
9cd3ed4ace
Fixed #15082 : line edit emits two "text_changed" signals when pasting while text is selected
2018-02-05 16:22:34 +01:00
binbitten
331cfc1d18
Fix wrong property type for fixed icon size in ItemList
2018-02-03 10:02:27 +01:00
Rémi Verschelde
9247f2de37
Merge pull request #16249 from binbitten/fix-highlight-ofs
...
Fix TextEdit current line highlight horizontal offset
2018-02-01 15:25:02 +01:00
binbitten
ba8c5bff69
Fix TextEdit current line highlight horizontal offset
2018-01-31 19:04:50 +01:00
George Marques
b80bc73a17
Expose a few GraphEdit methods to script languages
2018-01-30 22:09:41 -02:00
Hein-Pieter van Braam
713f190a30
Allow focus on disabled buttons
...
This behavior better matches other gui toolkits. A selected disabled
button still can't be interacted with but it can now be selected. This
seems to be what QT and GTK do also.
This fixes #16131
2018-01-28 18:49:22 +01:00
Blazej Floch
e58b10c883
Implements "Batch Rename" editor tool.
2018-01-22 00:43:19 -05:00
Gilles Roudiere
30e1e42175
Fixes a bas resizing with SplitContainer
2018-01-20 21:03:20 +01:00
Gilles Roudiere
d1f32708b7
Fixes a Gridcontainer wrong children fitting with expanded+non-zero minisize
2018-01-19 00:56:30 +01:00
MrCdK
9927b70efb
The TextureButton's bitmask takes into account the stretch mode selected
...
When the stretch is tile the mask gets applied to each tile.
2018-01-19 00:01:23 +01:00
Rémi Verschelde
9f479f096c
Fix typos in code and docs with codespell
...
Using v1.11.0 from https://github.com/lucasdemarchi/codespell
2018-01-18 22:01:42 +01:00
Ian
1b837125ce
TextEdit fix get_mouse after many folds
2018-01-18 12:18:06 -05:00
Rémi Verschelde
6c46787749
doc: Replace some more "val" with "value" + sync
2018-01-17 10:43:23 +01:00
Gilles Roudiere
b06c6602c8
Changes the keep_margin parameter to true by default, so that people are not suprised that set_anchor changes the margins values
2018-01-15 10:37:13 +01:00
Fabio Alessandrelli
765051e104
ViewportContainer passes input down to children viewports
2018-01-15 00:36:57 +01:00
Bernhard Liebl
77b1320fb4
Fixes wrong vertical font layout in RichTextLabel
2018-01-14 19:29:04 +01:00
Rémi Verschelde
a1a67e6e84
Merge pull request #15708 from Paulb23/current_line_clipping_issue_15427
...
Fixed current line highlighting with horizontal clipping, issue 15427
2018-01-14 17:22:09 +01:00
Paulb23
386c57cfad
Fixed current line highligting with horizontal clipping, issue 15427
2018-01-14 16:06:27 +00:00
Rémi Verschelde
892568abee
Merge pull request #15670 from poke1024/fix15588
...
Fixes hangs with Tree in multi selection mode (issue 15588)
2018-01-13 17:45:03 +01:00
Bernhard Liebl
363980519c
Fixes hangs with Tree in multi selection mode (issue 15588)
2018-01-13 17:34:12 +01:00
Rémi Verschelde
69452fbc37
Merge pull request #15657 from paulloz/fix-textedit-undo-redo-selection
...
TextEdit: Fix selection issue with undo/redo
2018-01-13 17:05:46 +01:00
Paul Joannon
8ae0624c80
Deselect on undo/redo in TextEdit
2018-01-13 11:46:53 +01:00
Ruslan Mustakov
0b632be4a9
Fix get_parent_range to return 0 when there is no parent
...
Fixes #15635
2018-01-13 16:48:07 +07:00
letheed
524ee14054
Small fix for Control bindings
2018-01-13 09:40:42 +01:00
Juan Linietsky
419705db6e
Add special coloring to members, to make shadowing more obvious.
2018-01-12 11:01:09 -03:00
Juan Linietsky
a26e6c8215
Renamed tree_exited to tree_exiting. tree_exited is now used for actual out of tree notification.
...
Updated doc accordingly.
2018-01-12 08:29:24 -03:00
Ian
d327f75392
TextEdit folding over unindented comments
2018-01-12 00:25:04 -05:00
Bojidar Marinov
9b8e8b2220
Bind many more properties to scripts
...
Notable potentially breaking changes:
- PROPERTY_USAGE_NOEDITOR is now PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_NETWORK, without PROPERTY_USAGE_INTERNAL
- Some properties were renamed, and sometimes even shadowed by new ones
- New getter methods (some virtual) were added
2018-01-12 00:58:14 +02:00
Gilles Roudiere
00473e0897
Fixes nodes being resized or moved when changing an anchor
2018-01-11 23:39:49 +01:00
poke1024
c1db81b9ed
Fixes empty line selection when scrolling
2018-01-11 06:51:20 +01:00
Rémi Verschelde
4b6bef6524
Fix signal arguments shadowing member variables
...
Fixes #10212 .
2018-01-09 16:51:19 +01:00
Bernhard Liebl
3af5dfbbf3
Fix whole word search missing occurences
2018-01-08 22:50:33 +01:00
Marcelo Fernandez
6fc1801b6a
Fix Video Player issue with audio mix_rate when different than 44100
2018-01-07 12:57:48 -03:00
Bernhard Liebl
249521670d
Corrects wrong scrolling for short popups broken in 15405
2018-01-07 02:19:11 +01:00
Ian
b3ad2538d0
fix center viewport out of size error, #15411
2018-01-06 18:06:09 -05:00
Rémi Verschelde
b6989d0b51
Merge pull request #15412 from poke1024/fix-tree-get-rect-crash
...
Fix crash when calling tree API before NOTIFICATION_ENTER_TREE
2018-01-06 19:56:29 +01:00
Rémi Verschelde
b77c6d43a8
Merge pull request #15405 from poke1024/fix-popup-scroll
...
Allow popup menu scrolling without mouse wheel
2018-01-06 19:55:36 +01:00
Bernhard Liebl
4cbe726cf5
Fix crash when calling tree API before NOTIFICATION_ENTER_TREE
2018-01-06 19:48:54 +01:00
Bernhard Liebl
3f9a7da857
Allow popup menu scrolling without mouse wheel
2018-01-06 16:21:27 +01:00
volzhs
13af5e8878
Remove button from button_group when free
2018-01-06 06:06:22 +09:00
Fabio Alessandrelli
a63a82d5e5
Fix theme inheritance
2018-01-05 18:30:40 +01:00
Bernhard Liebl
85ecd79012
Boost drawing speed of ItemLists with many items
2018-01-05 17:40:53 +01:00
Rémi Verschelde
e4213e66b2
Add missing copyright headers and fix formatting
...
Using `misc/scripts/fix_headers.py` on all Godot files.
Some missing header guards were added, and the header inclusion order
was fixed in the Bullet module.
2018-01-05 01:22:23 +01:00
Rémi Verschelde
92e114edfd
Merge pull request #15335 from volzhs/popup-menu
...
Fix PopupMenu to show & detect properly hover area
2018-01-04 19:54:19 +01:00
Rémi Verschelde
32bb236f24
Merge pull request #15334 from poke1024/textedit-mousepos
...
Fix TextEdit::_get_mouse_pos rounding errors
2018-01-04 19:53:43 +01:00
volzhs
f2d531bd43
Fix PopupMenu to show & detect properly hover area
...
Fix #15275
2018-01-05 02:37:46 +09:00
Bernhard Liebl
cc64679a20
Fix TextEdit::_get_mouse_pos rounding errors
2018-01-04 18:30:15 +01:00
Rémi Verschelde
94bda27659
Merge pull request #15317 from poke1024/fix-rtl-underline
...
RichTextLabel: don't draw underline character-wise
2018-01-04 13:30:00 +01:00
Bernhard Liebl
e74e2763bd
RichTextLabel: don't draw underline on single characters
2018-01-04 12:10:29 +01:00
Rémi Verschelde
465d66be67
Merge pull request #15314 from poke1024/tree-rlines
...
Tree: only draw visible relationship lines
2018-01-04 10:33:55 +01:00
Bernhard Liebl
e9aa6f2943
Tree: only draw visible relationship lines
2018-01-04 10:03:46 +01:00
Rémi Verschelde
59ce175767
Merge pull request #15312 from poke1024/fix-rtl-table-wrap
...
Fixes word wrapping in tables in RichTextLabel
2018-01-04 09:07:31 +01:00
Bernhard Liebl
c6c016e95a
Fix word wrapping in tables in RichTextLabel
2018-01-04 08:22:41 +01:00
firefly2442
f066991aa7
found via cppcheck:
...
remove code that will never run
make definition and declaration names for parameters match
change floats that were being set to bool values
remove pointer that is never used
2018-01-03 21:23:48 -07:00
Rémi Verschelde
023c04689e
Merge pull request #15308 from ianb96/horizontal_scrolling
...
TextEdit horizontal scrolling with shift
2018-01-04 01:35:38 +01:00
Rémi Verschelde
d65ac7378c
Fix crash in OS::execute on FreeBSD
...
As spotted by @robfram, closes #15288 .
Also reviewed other uses of `if (String.find(.*))` for potential similar mistakes, found a wrong (and useless) one in ScriptEditorDialog.
2018-01-04 01:20:20 +01:00
Rémi Verschelde
f9f6f250e6
Merge pull request #15191 from Jerome67000/z_renaming
...
renames "z" Node2D property to "z_index"
2018-01-04 00:41:45 +01:00
Ian
ae6b7c0b41
TextEdit horizontal scrolling with shift
2018-01-03 17:21:54 -05:00
Jerome67000
42ae3525a3
#15078 renamed "z" -> "z_index" property in Node2D
2018-01-03 13:02:26 +01:00
Rémi Verschelde
e3c744f9f1
Merge pull request #15127 from poke1024/smooth-scroll-play
...
Remove some lagginess from TextEdit's smooth scrolling
2018-01-03 11:34:42 +01:00
Rémi Verschelde
fd5f193da5
Merge pull request #15103 from poke1024/lineedit-key-up-down
...
Support KEY_UP and KEY_DOWN in LineEdit
2018-01-03 11:32:31 +01:00
Rémi Verschelde
592b0fc068
Merge pull request #15063 from poke1024/textedit-select-last-line
...
Fix key down on last line in TextEdit
2018-01-03 10:30:51 +01:00
Rémi Verschelde
6cd33f17f7
Merge pull request #14792 from Krakean/enh-1
...
A few small Debugger->Errors tab enhancements:
2018-01-03 10:26:55 +01:00
Rémi Verschelde
d7d8fc6c20
Merge pull request #14983 from Paulb23/keyboard_selection_issue_14675
...
Fixed keyboard word selection when at the start/end of line, issue 14675
2018-01-02 11:19:34 +01:00
Ryan Stein
3c9ee75e26
Use exact positioning for the ItemList::get_tooltip method.
2018-01-01 22:46:32 -05:00
Rémi Verschelde
b50a9114b1
Update copyright statements to 2018
...
Happy new year to the wonderful Godot community!
2018-01-01 14:40:47 +01:00