Sean Bohan
ee670f3724
Implemented scrolling factor for smooth trackpad scrolling
...
Working platforms platform: OSX, Windows.
Support for almost all ui elements, including project list.
Ported from 304a1f5b5a
(#7864 ).
Fixes #492 and #3913 .
2017-05-15 06:44:00 +08:00
Rémi Verschelde
d8ae244d51
Revert "Respect style boxes for Button states other than "normal""
...
This reverts commit 98f01f9143
.
This made icons in the editor "jumpy" on hover.
2017-04-11 19:45:39 +02:00
Rémi Verschelde
e9b045d9e5
Add "Godot Engine contributors" copyright line
2017-04-08 00:45:24 +02:00
CrazyGuy108
10119f7b04
List Control::has_point as a virtual method
...
According to Issue #8018 , a BIND_VMETHOD macro wasn't present in scene/gui/control.cpp, while it was declared to be a virtual method in scene/gui/control.h.
classes.xml was updated to also list this method in Control.
(cherry picked from commit 9589936d6e
)
2017-03-19 00:42:34 +01:00
Rémi Verschelde
f8db8a3faa
Bring that Whole New World to the Old Continent too
...
Applies the clang-format style to the 2.1 branch as done for master in
5dbf1809c6
.
2017-03-19 00:36:26 +01:00
Rémi Verschelde
1b0e2b0c39
Refactoring: rename tools/editor/ to editor/
...
The other subfolders of tools/ had already been moved to either
editor/, misc/ or thirdparty/, so the hiding the editor code that
deep was no longer meaningful.
(Manual redo of 49c065d29c
)
2017-03-18 23:45:45 +01:00
Rémi Verschelde
dbf0137576
Style: Fix statements ending with ';;'
...
(cherry picked from commit f44ee891be
)
2017-03-18 21:14:33 +01:00
volzhs
5ac097a035
Fix wrong TreeItem reference after reconstructing
...
(cherry picked from commit 66b7586fb0
)
2017-03-18 20:21:05 +01:00
volzhs
db6d9cdc22
Fix crash when click icon while editing node name
...
(cherry picked from commit 3ae0ffa182
)
2017-03-18 20:17:13 +01:00
Vincent
02d711eb61
RichTextLabel add function remove_line
...
(cherry picked from commit c20b186e73
)
2017-03-18 20:11:42 +01:00
Andreas Haas
674a090e59
Spinbox: don't ignore double clicks.
...
Fixes the problem with spinboxes not updating when clicking too fast.
(cherry picked from commit dd4c2709e4
)
2017-03-18 20:09:55 +01:00
kbake
31260bb720
Selected text is now deselected on ctrl+home/end
...
This fixes Issue #7694 and also the error mentioned in the comments of that issue.
(cherry picked from commit 1169f4e040
)
2017-03-18 19:58:13 +01:00
Ray Koopa
98f01f9143
Respect style boxes for Button states other than "normal"
...
(cherry picked from commit 2baeb531e6
)
2017-03-18 19:31:43 +01:00
Rémi Verschelde
eeca4a3aa3
Merge pull request #7933 from RebelliousX/2.1
...
TabContainer's signal changes (v2.1)
2017-03-05 12:03:38 +01:00
Thaer Razeq
886f150b4a
- Added `tab_selected` signal which has same behavior as `tab_changed`
...
lest breaking current API, though, it is noted in the documentation of TabContainer
class, of the upcoming Godot (v3.0+) changes in behavior, that is, `tab_selected` will be
emitted for selecting any tab, while `tab_changed` only if a tab changes.
- Added `get_previous_tab()`. Which returns the previous shown tab. **Note:** In Godot v3.0+, only `tab_changed` can modify previous tab index.
- Add documentation for the added function and signals. Fix a typo too.
2017-03-05 03:26:53 -06:00
volzhs
4a8d2b676e
Fix wrong TreeItem reference after reconstructing
2017-03-03 03:51:23 +09:00
Rémi Verschelde
ee9f31a5cc
Merge pull request #7716 from GodotExplorer/pr-resizable-texturebutton
...
[2.1] Enhance TextureButton and TextureFrame with resize
2017-02-27 23:30:53 +01:00
volzhs
3d817ac73a
Fix crash when click icon while editing node name
2017-02-23 02:16:49 +09:00
geequlim
a7ec7dcd12
Add scale property back for backwards compatibility
...
now we have a choice
Fix textureframe modulate doesn't work with STRETCH_KEEP_ASPECT_CENTERED and STRETCH_KEEP_ASPECT
2017-02-13 20:04:21 +08:00
Rémi Verschelde
f50b4f5cb2
Merge pull request #7754 from volzhs/tr-buttonarray
...
Translate ButtonArray text
2017-02-12 23:19:52 +01:00
Rémi Verschelde
4e9f88b649
Merge pull request #7719 from RandomShaper/backport-code-edit-goodies-2.1
...
Backport goodies for the code editors (2.1)
2017-02-12 23:11:31 +01:00
volzhs
e0f00a549c
Translate ButtonArray text
2017-02-08 08:38:36 +09:00
Pedro J. Estébanez
0dbfb864ad
Backport goodies for the code editors
...
Refactor duplicated code (from 0159e4f969
)
Add line length guideline to code editors (from d9c1729a8f
)
Allow turning off zero-padding for line numbers (from 00b3af246b
)
(In 3.0 zero-padding is off by default, but for 2.1 I'm setting the default to be on because it's how it always worked.)
Fixed line lenght guideline drawing with color option (from @Paulb23's 6b42cd5fe6
)
2017-02-04 16:24:33 +01:00
geequlim
58a700e43e
Make same resize behavior for TextureButton with TextureFrame.
...
Remove property 'scale' of TextureButton which is not required any more.
2017-02-04 14:56:26 +08:00
geequlim
0c1c34ef22
Add Keep Covered texture resize mode
2017-02-04 14:26:50 +08:00
William Tumeo
f3bc5d443c
Add ColorFrame control (2.1)
...
- cherry-pick from 95eb7466df
2017-02-02 18:22:03 -02:00
Pawel Kowal
e9316a009e
Fix #7011 ScrollContainer takes into account child's EXPAND flag when scrolling is enabled
2017-01-26 10:02:19 +01:00
Bruno Ortiz
01b8beb023
Making deselect work for TreeItem when select_mode is SELECT_SINGLE and item_selected is now properly emitted
...
(cherry picked from commit 4b9a96859b
)
2017-01-12 19:15:30 +01:00
Rémi Verschelde
d8223ffa75
Welcome in 2017, dear changelog reader!
...
That year should bring the long-awaited OpenGL ES 3.0 compatible renderer
with state-of-the-art rendering techniques tuned to work as low as middle
end handheld devices - without compromising with the possibilities given
for higher end desktop games of course. Great times ahead for the Godot
community and the gamers that will play our games!
(cherry picked from commit c7bc44d5ad
)
2017-01-12 19:15:30 +01:00
Bojidar Marinov
27a801df99
Fix #7098 by not accepting right clicks while dragging the range
...
(cherry picked from commit d40eb1565e
)
2017-01-12 19:15:28 +01:00
volzhs
f520e7788e
Show visual notice for visibility on Scene Dock
...
(cherry picked from commit f33e21e7af
)
2017-01-12 19:15:28 +01:00
volzhs
d5e4011bc3
Scroll horizontally with mouse wheel when horizontal enabled only
...
(cherry picked from commit 22b76511fb
)
2017-01-12 19:15:28 +01:00
chanon
1397019424
fix ColorPicker not correctly updating after pasting hex html color
...
(cherry picked from commit 0bf5d86546
)
2017-01-12 19:15:28 +01:00
Ivan P. Skodje
0701e7c2d8
PopupMenu upgrade: Hide on item selection ( #7306 )
...
* Added the option to set hide on item selection. Usable in GDScript and from within the source code when you want to specify popup menus you don't want to close immediately when selecting an item
* Renamed getter from get_ to is_, fixed parent/child behavior, renamed bool variable to match most code and added ADD_PROPERTYNO to save some memory
(cherry picked from commit da950cd0f2
)
2017-01-12 19:15:28 +01:00
volzhs
dbeb1ca114
Fix duplicated string on RichTextLabel if starts with '\n'
...
Fix #6212 , #3773
(cherry picked from commit 0ecc968c5c
)
2017-01-12 19:15:28 +01:00
Johnson Earls
f08aa02688
Fix search to find "whole" words at end of line
...
Fix `_get_column_pos_of_word` so that the `SEARCH_WHOLE_WORDS` flag will properly find words that are at the end of a line.
Fixes #7326 .
(cherry picked from commit d1cf29fe99
)
2017-01-12 19:15:27 +01:00
volzhs
916e79a5bf
Fix scroll bar moving in AnimationPlayer editor
...
Fix #7196
(cherry picked from commit babc5048dd
)
2017-01-12 19:15:26 +01:00
volzhs
f95694ee86
Fix color selected with mouse scroll
...
Fix #7192
(cherry picked from commit d9048309e4
)
2017-01-12 19:15:26 +01:00
volzhs
608e3f3097
Prevent Spinbox value update while not focused or disabled
...
(cherry picked from commit 4df33cbcb3
)
2017-01-12 19:15:26 +01:00
Zher Huei Lee
fe81402257
Flat button support in ButtonArray. Fixes #7153
...
(cherry picked from commit 4b7443aeea
)
2017-01-12 19:15:26 +01:00
volzhs
fd5e01d1cd
Select exactly matched file automatically in FileDialog
...
(cherry picked from commit ff4f04e878
)
2017-01-12 19:15:26 +01:00
Andreas Haas
ed2c369785
Fix Script Editor drawing over Dialogs.
...
Resets the z-index when focus is lost and the completion is shown.
Fixes #6769
(cherry picked from commit f73b501d6f
)
2016-11-19 13:04:02 +01:00
eska
28944e95e7
Clarify a NULL comparison
...
'TreeItem::get_children()' does not return the child count, but rather
a pointer to the children.
This comparison caused an error during WebAssembly builds using the
LLVM backend path.
(cherry picked from commit 31f929caa2
)
2016-11-15 08:37:53 +01:00
Elia Argentieri
e3dc319f78
Make the step property useful for sliders as described in #5773
...
(cherry picked from commit 0955371447
)
2016-11-15 08:36:18 +01:00
volzhs
36a4c54593
Fix Label valign position
...
Fix #7055
(cherry picked from commit c0e87f2a24
)
2016-11-15 08:34:26 +01:00
Paulb23
9e1e5daddf
Caret blink will no longer cause redraw without focus, issue 6167
...
(cherry picked from commit 7b036a94bf
)
2016-11-15 08:34:01 +01:00
volzhs
82b458f160
Fix updating value of SpinBox with prefix
...
(cherry picked from commit 80b6507071
)
2016-11-15 08:30:02 +01:00
ScotFlux
c282ac8ec7
fix a tiny typo
...
(cherry picked from commit 8639d6e806
)
2016-11-15 08:29:30 +01:00
Rémi Verschelde
e259bf8bbb
style: Fix PEP8 whitespace issues in Python files
...
Done with `autopep8 --select=E2,W2`, fixes:
- E201 - Remove extraneous whitespace.
- E202 - Remove extraneous whitespace.
- E203 - Remove extraneous whitespace.
- E211 - Remove extraneous whitespace.
- E221 - Fix extraneous whitespace around keywords.
- E222 - Fix extraneous whitespace around keywords.
- E223 - Fix extraneous whitespace around keywords.
- E224 - Remove extraneous whitespace around operator.
- E225 - Fix missing whitespace around operator.
- E226 - Fix missing whitespace around operator.
- E227 - Fix missing whitespace around operator.
- E228 - Fix missing whitespace around operator.
- E231 - Add missing whitespace.
- E231 - Fix various deprecated code (via lib2to3).
- E241 - Fix extraneous whitespace around keywords.
- E242 - Remove extraneous whitespace around operator.
- E251 - Remove whitespace around parameter '=' sign.
- E261 - Fix spacing after comment hash.
- E262 - Fix spacing after comment hash.
- E265 - Format block comments.
- E271 - Fix extraneous whitespace around keywords.
- E272 - Fix extraneous whitespace around keywords.
- E273 - Fix extraneous whitespace around keywords.
- E274 - Fix extraneous whitespace around keywords.
- W291 - Remove trailing whitespace.
- W293 - Remove trailing whitespace.
2016-11-02 22:28:28 +01:00
volzhs
7c92b401f1
Fix to fit stylebox with ItemList
...
(cherry picked from commit 4c9b00b508
)
2016-11-02 22:18:34 +01:00