Rémi Verschelde
fc18d637a8
Fix -Wimplicit-fallthrough warnings from GCC 8
...
Adds `FALLTHROUGH` macro to specify when a fallthrough is intentional.
Can be replaced by `[[fallthrough]]` if/when we switch to C++17.
The warning is now enabled by default for GCC on `extra` warnings level
(part of GCC's `-Wextra`). It's not enabled in Clang's `-Wextra` yet,
but we could enable it manually once we switch to C++11. There's no
equivalent feature in MSVC for now.
Fixes #26135 .
(cherry picked from commit fc370b3feb
)
2019-09-24 09:00:45 +02:00
qarmin
3b703d6707
Small fixes, mostly dupicated code
...
(cherry picked from commit 856a8226a5
)
2019-09-24 09:00:45 +02:00
Paul Trojahn
f5def1329e
Support UTF-8 in TextEdit and LineEdit navigation
...
This allows jumps over whole non ASCII words with Ctrl+Left/Right in
a LineEdit or TextEdit.
Fixes #25681
(cherry picked from commit 8851e16f75
)
2019-09-24 09:00:44 +02:00
Emmanuel Barroga
45e4f467e7
Fix ProgressBar Wrong Value with Border
...
Closes : #30969
The FG rectangle of the progressbar is incorrect when dealing with a non-zero border. This issue stems from wrong order of operations when drawing the rectangle: int p = r * get_size().width - mp;
(cherry picked from commit 7db96e22dd
)
2019-09-24 09:00:44 +02:00
Rémi Verschelde
4764e17970
Revert "Added the ability to change the default cursor property for the RichTextLabel component."
...
This reverts commit 4fda05e15f
.
2019-04-23 16:01:16 +02:00
groud
4be1343f3c
Enhance tree scrolling when dragging
...
(cherry picked from commit 14a901e88f
)
2019-04-20 22:00:35 +02:00
Robear Selwans
96222dedb5
Fixed an issue where changing the default_cursor on the RichTextLabel's meta_hover_ended caused the entire project to crash
...
(cherry picked from commit 84dfb3ff2d
)
2019-04-20 20:09:57 +02:00
Hugo Locurcio
67dc8cf252
Use the editor theme's accent color for 2D/3D selections and rotations
...
(cherry picked from commit d59b210aec
)
2019-04-06 21:18:20 +02:00
marxin
4889c65922
Fix -Wnon-virtual-dtor warnings.
...
Example of the warning:
./core/script_language.h:198:7: warning: 'class ScriptCodeCompletionCache' has virtual functions and accessible non-virtual destructor [-Wnon-virtual-dtor]
(cherry picked from commit f9f2413e69
)
2019-04-03 17:01:04 +02:00
Paulb23
4eefd2d581
Fixed not deselecting when clearing lineedit.
...
(cherry picked from commit bfba1e36bc
)
2019-04-03 17:00:45 +02:00
K. S. Ernest (iFire) Lee
804b68c981
Fix scaling issue for texture button focus texture.
...
(cherry picked from commit 1971c09e5e
)
2019-04-01 11:14:34 +02:00
qarmin
5650c1ecde
Fix inspector update after changing anchor via buttons
...
(cherry picked from commit 8b391b9ab0
)
2019-04-01 11:13:20 +02:00
Robear Selwans
4fda05e15f
Added the ability to change the default cursor property for the RichTextLabel component.
...
(cherry picked from commit b852a7a854
)
2019-04-01 11:10:04 +02:00
Bojidar Marinov
964152ed71
Fix cursor going to start while editing GraphNode's title
...
Fixes #26816
2019-03-10 12:22:15 +02:00
Rémi Verschelde
e28e849012
Merge pull request #21534 from volzhs/fix-scrollcontainer-size
...
Precise size calculation of ScrollContainer
2019-03-07 14:19:43 +01:00
Juan Linietsky
5f079e2ef9
-Make tileset and meshlibrary edit in a separate inspector, fixes #26671
...
-Made relationship lines appear based on theme settings, not previous hack
-Fix drawing of relationship lines (was broken)
-Fix double initialization of theme settings
2019-03-06 12:12:42 -03:00
Rémi Verschelde
4ab4ff67ff
Merge pull request #26642 from DrMoriarty/check_cursor_line
...
Check cursor line and column
2019-03-05 22:57:55 +01:00
Vasiliy Makarov
a3d9b7d916
Check cursor line and column
...
Added a trivial check if cursor.line and cursor.column are valid.
Fix #26245
2019-03-05 18:27:37 +03:00
Michael Alexsander Silva Dias
a292d1fefb
Fix general issues with filesystem-related UI components in the editor
2019-03-05 10:12:06 -03:00
Juan Linietsky
6b8b1cabae
Add a warning when using plain Container, as many users seem to misunderstand what this is.
2019-03-03 16:00:56 -03:00
Juan Linietsky
51b80f6857
Fixed some crashers, closes #26393
2019-03-01 17:24:57 -03:00
Rémi Verschelde
994bdc9adc
Merge pull request #26140 from karliss/meta-item
...
Use correct meta item in rich text.
2019-03-01 18:16:27 +01:00
Justin Vesper
079ed007c8
Fixed wrong method binding in control
...
Control.get_parent_area_size() is now bound to
Control::get_parent_area_size() instead of Control::get_size()
2019-03-01 14:16:19 +01:00
Bojidar Marinov
a7b564db6e
Fix minimum size of ProgressBar-s
...
Was a leftover from 0a1c1c660f
.
Fixes #21633 .
2019-02-27 15:56:49 +02:00
Bojidar Marinov
8dad5f1e10
Update controls when a stylebox or icon override changes; change to CONNECT_REFERENCE_COUNTED
...
Also, cleanup unnessesary calls to update() and NOTIFICATION_THEME_CHANGED.
Fixes #25904 .
2019-02-25 17:42:38 +02:00
Michael Alexsander Silva Dias
52abab5aa7
Make 'SplitContainer' update drawing only if actually needs to
2019-02-22 10:12:39 -03:00
Michael Alexsander Silva Dias
f2f09f00b7
Fix 'SplitContainer's showing their handles when they shouldn't
...
Fixes #25735 .
2019-02-21 23:01:30 -03:00
Kārlis Seņko
05f5774592
Use correct meta item in rich text.
...
Prevent incorrect static cast and unnecesarry meta_hover_ended/started
events.
2019-02-22 00:23:05 +02:00
Rémi Verschelde
47c4ec7f1d
Merge pull request #26105 from nekomatata/texture-button-mask-fix
...
TextureButton with click mask only can be clicked
2019-02-21 14:48:43 +01:00
PouleyKetchoupp
f07dfe8a3f
Fixed TextureButton click mask when no other texture is set
2019-02-21 01:11:56 +01:00
marxin
8d51618949
Add -Wshadow=local to warnings and fix reported issues.
...
Fixes #25316 .
2019-02-20 19:44:12 +01:00
Rémi Verschelde
9714f701c5
Merge pull request #26089 from ianb96/word_wrap_cutoff_fix
...
Fix word wrap cutoff and tab wrapping issue
2019-02-20 16:28:43 +01:00
Rémi Verschelde
6709ff6a96
Merge pull request #26049 from vixelz/textureprogress-nineslice-fill-fix
...
Truncate first segment in TextureProgress 9slices
2019-02-20 15:23:31 +01:00
ianb96
39f537e481
Fix word wrap cutoff and tab wrapping issue
2019-02-20 08:52:33 -05:00
Kārlis Seņko
86374c0431
Allow moving LineEdit visible window left by more than one symbol.
2019-02-19 23:59:09 +02:00
Vixelz
559b8fd236
Truncate first segment in TextureProgress 9slices
...
Much in the way that TextureProgress was truncating the last segment
of the nine slice when the value wasn't close to the end, perform
similar work on the beginning segment. This fixes the beginning segment
always being drawn, sometimes in the incorrect location.
2019-02-19 08:28:32 +00:00
Rémi Verschelde
a034cac583
Merge pull request #25953 from nekomatata/fix-radial-texture-progress
...
Fixed TextureProgress in Radial Mode when using center offset
2019-02-16 22:26:06 +01:00
PouleyKetchoupp
1974f6995f
Fixed radial progress with center offset by taking distance to edge into account in uv calculation
2019-02-16 21:02:29 +01:00
qarmin
7a254b303b
Fix copy text when TextEdit is readonly
2019-02-16 07:56:24 +01:00
Rémi Verschelde
fe7d2dc4d3
Revert "Fix MenuButton item label disappearing when setting shortcut."
2019-02-15 11:44:27 +01:00
Unknown
3236c9a0e7
Fix MenuButton item label disappearing when setting shortcut.
2019-02-14 23:17:29 +01:00
Rémi Verschelde
b340b7e804
Merge pull request #25422 from azagaya/optionbutton
...
Fix docs about item_selected and item_focused . Fixes #25273
2019-02-13 20:31:53 +01:00
Naoto Kondo
f48829d1a4
Fix button alignment of Package Installer on OSX
...
This problem occurs only in the HiDPI environment.
2019-02-13 23:52:14 +09:00
Rémi Verschelde
5fc86026ca
Fix typos with codespell
...
Using codespell 1.14.0.
Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
doubleclick
lod
nd
numer
que
te
unselect
EOF
$ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"
$ git diff // undo unwanted changes
```
2019-02-13 09:23:29 +01:00
Rémi Verschelde
c5dcbeb160
Scene: Ensure classes match their header filename
...
Also drop some unused files.
Renamed:
- `scene/2d/navigation2d.h` -> `navigation_2d.h`
- `scene/2d/screen_button.h` -> `touch_screen_button.h`
- `scene/3d/scenario_fx.h` -> `world_environment.h`
- `scene/audio/audio_player.h` -> `audio_stream_player.h`
- `scene/resources/bit_mask.h` -> `bit_map.h`
- `scene/resources/color_ramp.h` -> `gradient.h`
- `scene/resources/shape_line_2d.h` -> `line_shape_2d.h`
- `scene/resources/scene_format_text.h` -> `resource_format_text.h`
- `scene/resources/sky_box.h` -> `sky.h`
Dropped:
- `scene/resources/bounds.h`
2019-02-12 17:21:48 +01:00
azagaya
7051685a77
Fixes differences between docs and item_selected and item_focused signals in optionbutton
...
Description in docs about item_selected and item_focused signals in optionbutton is fixed to match the real behaviour. Also, get_item_index function is added.
2019-02-11 08:52:09 -03:00
Michael Alexsander Silva Dias
4fd7115e13
General cleanup of script and doc search bars
2019-02-10 14:18:08 -02:00
Paulb23
69374cd378
Fixed selection being activated when using scroll lines
2019-02-04 10:55:45 +00:00
Michael Alexsander Silva Dias
8d3ae29e8f
Small fixup on button toggle behaviour in ColorPicker
2019-01-28 15:51:57 -02:00
Michael Alexsander Silva Dias
182f26fe5e
Make some small enhancements to the ColorPicker
2019-01-27 12:44:39 -02:00