Commit Graph

1479 Commits

Author SHA1 Message Date
Andreas Haas 01f3399ed0 Particles2D: Fix initial size randomness property having no effect.
It was just a little typo :p

(cherry picked from commit 4dd6bead1f)
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 17399de0e1 Reused Button styleboxes for ButtonArray
Plus other tweaks to make it look more similar to a VBoxContainer of
Buttons.

(cherry picked from commit 191fdc873e)
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
Bojidar Marinov 13cdc2a6f5 Guard agains duplicate calling of _ready when instanced in _enter_tree
Fixes #6005

(cherry picked from commit 184173a9b9)
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
Emmanuel Leblond 39ce4a49fa Add Node2D's set_global_rot get_global_rot set_global_rotd get_global_rotd set_global_scale get_global_scale methods. 2017-01-10 17:15:28 +01:00
Fabio Alessandrelli 7a77fd1cd5 Expose HTTP classes' set_ip_type to scripting
(cherry picked from commit d194e1c48e)
2017-01-04 00:46:33 +01:00
Fabio Alessandrelli 7ef71b9013 Allow setting ip_type for TCP/UDP and HTTP classes
(cherry picked from commit a77a0118f6)
2017-01-04 00:46:33 +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
khairul169 8a813e2a1e Uncomment debug properties of HTTP Request
(cherry picked from commit 6a7aebdf6c)
2016-11-15 08:44:53 +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
Ignacio Etcheverry 7e3360ae01 Keep groups when replacing nodes
(cherry picked from commit 305956bf70)
2016-11-15 08:28:11 +01:00
Ariel Manzur dbca4ee3fe adding get_stored_values method
changed order name
2016-11-08 18:14:10 -03:00
Rémi Verschelde eaf803f71e style: Various other PEP8 fixes in Python files
Done with `autopep8 --select=E7`, fixes:

- E701 - Put colon-separated compound statement on separate lines.
- E702 - Put semicolon-separated compound statement on separate lines.
- E703 - Put semicolon-separated compound statement on separate lines.
- E711 - Fix comparison with None.
- E712 - Fix (trivial case of) comparison with boolean.
- E713 - Fix (trivial case of) non-membership check.
- E721 - Fix various deprecated code (via lib2to3).
2016-11-02 22:30:34 +01:00
Rémi Verschelde a7389217f8 style: Fix PEP8 blank lines issues in Python files
Done with `autopep8 --select=E3,W3`, fixes:

- E301 - Add missing blank line.
- E302 - Add missing 2 blank lines.
- E303 - Remove extra blank lines.
- E304 - Remove blank line following function decorator.
- E309 - Add missing blank line.
- W391 - Remove trailing blank lines.
2016-11-02 22:29:36 +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
Rémi Verschelde 561c1f17a1 style: Start applying PEP8 to Python files, indentation issues
Done with `autopep8 --select=E1`, fixes:

- E101 - Reindent all lines.
- E112 - Fix under-indented comments.
- E113 - Fix over-indented comments.
- E115 - Fix under-indented comments.
- E116 - Fix over-indented comments.
- E121 - Fix a badly indented line.
- E122 - Fix a badly indented line.
- E123 - Fix a badly indented line.
- E124 - Fix a badly indented line.
- E125 - Fix indentation undistinguish from the next logical line.
- E126 - Fix a badly indented line.
- E127 - Fix a badly indented line.
- E128 - Fix a badly indented line.
- E129 - Fix a badly indented line.
2016-11-02 22:26:55 +01:00
volzhs 7c92b401f1 Fix to fit stylebox with ItemList
(cherry picked from commit 4c9b00b508)
2016-11-02 22:18:34 +01:00
m4nu3lf d44e6ea268 Fixed Mix nodes in Animation Tree Player
(cherry picked from commit 40ba6d328b)
2016-11-02 22:18:28 +01:00
volzhs 647b287a1e Fix Accept/ConfirmationDialog UI broken
(cherry picked from commit 8d5644c4b2)
2016-10-31 00:07:47 +01:00
volzhs 91df1ebff6 Revert "Place child control under label in AcceptDialog."
This reverts commit 3ef2722904.

(cherry picked from commit 3f15a65307)
2016-10-31 00:07:40 +01:00
rdb a27aee241c Add "Never" underline mode to LinkButton
(cherry picked from commit d517bc908f)
2016-10-31 00:05:32 +01:00
Karol Walasek 0af331d1c0 Added force_raycast_update GDScript method for RayCast[2D]
(cherry picked from commit 7494a8c3c6)
2016-10-31 00:00:23 +01:00
Rémi Verschelde 5a49e45d21 SCsub: Add python shebang as a hint for syntax highlighting
Also switch existing shebangs to "better" /usr/bin/env python.

(cherry picked from commit fc8ccd5b8c)
2016-10-30 14:51:34 +01:00
Zher Huei Lee fae2863a5e Added support for tooltips in ButtonArray. Fixes #6597
(cherry picked from commit 38caa4ef91)
2016-10-30 14:51:30 +01:00
Rémi Verschelde 14e45a55d4 Revert "Tween reset/stop/resume/remove for all object properties at once"
This reverts commit 6fc894d652.
It caused a regression, cf. #6863.
2016-10-18 21:43:46 +02:00
volzhs 728ac94313 Add "button_selected" signal to ButtonGroup
(cherry picked from commit 870ed6f2fa)
2016-10-17 20:48:36 +02:00
Zher Huei Lee a8502ae6f6 Fixes for ButtonArray
Fixed hover sometimes not resetting when mouse leaves widget.
Fixed text position not taking into account stylebox's content margins.

(cherry picked from commit f5830e0973)
2016-10-17 20:48:25 +02:00
Andreas Haas 5f540a17cc Sprite: Fix inspector not showing changes on "frame" property.
Fixes #6562

(cherry picked from commit 9d67895c7c)
2016-10-17 20:47:27 +02:00
Pawel Kowal 35cdb1a49b Fix #5959, contrasting texture for toggled button
(cherry picked from commit d3a8087659)
2016-10-17 20:46:10 +02:00
Anthony Fieroni f250c0cf50 Button focus hovering
Signed-off-by: Anthony Fieroni bvbfan@abv.bg
(cherry picked from commit 6d21fd42d3)
2016-10-17 20:43:36 +02:00
Mateusz Adamczyk 58e2652f94 Place child control under label in AcceptDialog.
Fixes #6199.

(cherry picked from commit 3ef2722904)
2016-10-17 20:42:51 +02:00
Mateusz Adamczyk ce1138cb02 Added simple check to viewport, if matrix32 is invesile (https://github.com/godotengine/godot/issues/6296).
(cherry picked from commit 8671836b76)
2016-10-09 17:40:37 +02:00
Andreas Haas 9e20b39b3d Fix code completion drawing under other gui elements.
Raises the z-index of the Script editor when the completion is shown.

fixes #1257
fixes #6690

(cherry picked from commit 6dfa405eac)
2016-10-09 17:39:56 +02:00
Andreas Haas 0462bf01a2 Prevent crash on focus change when no valid next control has been found.
Fixes the crash discussed in #6714.

(cherry picked from commit 8dd026e4f9)
2016-10-09 17:39:39 +02:00
Adham Zahran cd03f8cce2 fix #6012 exposed setters and getters of Camera H/V offset to GDScript
(cherry picked from commit cbb0ea315b)
2016-10-09 17:39:06 +02:00
Pedro J. Estébanez c0ba08b8d5 Add editor_only param to Light2D
(cherry picked from commit 34c02fad5a)
2016-10-09 17:34:29 +02:00
J08nY 342b1408d5 light: respect editor_only setting in release build and dont show the light
(cherry picked from commit af35130b50)
2016-10-09 17:33:54 +02:00
Fabio Alessandrelli 359b5f3b25 Expose more 2D/3D physics options in project settings
(cherry picked from commit 1d09c27ba4)
2016-10-09 17:33:47 +02:00
J08nY ef0bcc7e20 PopupMenu: added toggle_item_checked and exposed set_item_tooltip and get_item_tooltip
(cherry picked from commit 6b283ae293)
2016-10-09 17:26:14 +02:00
Pedro J. Estébanez de13e52b9b Respect texture .flags files on export
(cherry picked from commit 11cbbeb17e)
2016-10-09 17:24:10 +02:00
Pawel Kowal ab231cd3fb Fix #6480, area duplicated param
(cherry picked from commit f9a21baa26)
2016-10-09 17:23:43 +02:00
Pawel Kowal d7925ca09d LineEdit long indicator, fix #6624
(cherry picked from commit 3edc0a4832)
2016-10-09 17:23:02 +02:00
Błażej Szczygieł d613952300 Don't crash when video is stopped and played again
(cherry picked from commit 5585bc1c38)
2016-10-09 17:22:54 +02:00
Pawel Kowal 6fc894d652 Tween reset/stop/resume/remove for all object properties at once
(cherry picked from commit acc242fd6a)
2016-10-09 17:22:16 +02:00
yg2f 36b1521cdc expose GeometryInstance.get_aabb() etc fixes #6587
expose ``GeometryInstance.get_aabb();`` to gdscript
expose ``VisualInstance.get_transformed_aabb();`` to gdscript
and debug ``ImmediateGeometry::add_vertex()``;

(cherry picked from commit c1e2358914)
2016-10-09 17:21:07 +02:00
anneomcl 12edde80f2 Fix for #6158. Converting Vector2 to Size2 for scaling functions.
(cherry picked from commit aa5ade834c)
2016-10-09 17:18:54 +02:00
Andreas Haas d3b549f2a3 Fix ability to cut/paste text in LineEdit/TextEdit in readonly mode.
Fixes #6466

(cherry picked from commit 9c71e5a9df)
2016-10-09 17:17:54 +02:00
Pawel Kowal 4ca83c635f Add scrolling to Tree control in Drag and Drop mode
(cherry picked from commit 9e5aaa27bc)
2016-10-09 17:17:04 +02:00
Brickcaster e6d49fb54c Fix for issue #6496
Canged order of NOTIFICATION_DRAW to update scrollbar before scrollbar
is checked to see which list elements to display.

(cherry picked from commit cc7bc07e33)
2016-10-09 17:11:54 +02:00
sanikoyes ec32c33799 fix ScrollContainer cannot scroll when scroll bar is hidden
(cherry picked from commit b548ef0009)
2016-09-18 23:20:37 +02:00
Juan Linietsky 3ff8dea5f9 Fix Viewport.get_mouse_pos() for specific situations, closes #1885
(cherry picked from commit b16f41a10a)
2016-09-18 23:17:07 +02:00
Pawel Kowal 2b43d0a028 ScrollContainer expand children bug fix
(cherry picked from commit 853161a000)
2016-09-18 23:16:33 +02:00
sanikoyes 75f51aece9 Tween: fix non-repeat interpolate_callback does not delete after call triggered
(cherry picked from commit cccea7e0b4)
2016-09-18 23:15:43 +02:00
Paulb23 04ade4d639 Added get_v_scroll to item list, issue 5343
(cherry picked from commit 63fd8f863b)
2016-09-18 23:13:34 +02:00
MarianoGNU 85eca7bc93 Explicitly initialize TextureProgress's initial angle value.
(Hopefully)
Fixes #3856
Fixes #6426
Fixes #6344

(cherry picked from commit ae4f7cbc2c)
2016-09-18 23:12:48 +02:00
bebae 2e6ce4b362 fixed wrong placement of AcceptDialog Buttons issue-6143
(cherry picked from commit dd9189aac4)
2016-09-18 23:12:39 +02:00
Paulb23 0aad82e921 Ability to disable item list tooltip, issue 6240
(cherry picked from commit 62a968b1c6)
2016-09-18 23:12:23 +02:00
Pedro J. Estébanez c44757c2b7 Expose light shadow color to canvas item shaders
(cherry picked from commit 0960887625)
2016-09-18 23:11:08 +02:00
Juan Linietsky 7178399548 Added option for UVs (and tangents) in adding sphere for ImmediateGeometry, closes #6398
(cherry picked from commit f31400c04d)
2016-09-18 23:09:41 +02:00
Kazuo256 4a9461fded Add http method and request data parameters
For HTTPRequest::request

(cherry picked from commit c53e5c555a)
2016-09-18 23:05:40 +02:00
Waldson Patrício 73b40d1457 Fixes LineEdit text selection with mouse selecting more than intended
(cherry picked from commit 3d84973184)
2016-09-18 23:02:57 +02:00
volzhs 265715f5b2 Show last added action on Input Map and implement InputEvent "=="
(cherry picked from commit 2e5a4cb5ca)
2016-09-01 08:45:37 +02:00
George Marques a21b9caa2a Add button_down and button_up signals
(cherry picked from commit 8a1b1ab6d6)
2016-09-01 08:44:45 +02:00
Mason Ashbridge 07caf4438d Slider value accounts for grabber offset
(cherry picked from commit fb54ba6397)
2016-09-01 08:43:59 +02:00
volzhs 6df46803a7 Make LineEdit not to cover whole line when rename node
(cherry picked from commit ff22db3b21)
2016-09-01 08:42:49 +02:00
Ignacio Etcheverry 1a53c4d3c2 Confirm code completion with numpad key ENTER
(cherry picked from commit e9f9e00bd9)
2016-09-01 08:38:34 +02:00
Juan Linietsky 569966f3bb prevent bug due to scripts not working in editor and notifier sending signals to it.
(cherry picked from commit 37b5e99bc2)
2016-08-09 00:13:31 +02:00
Zher Huei Lee 0de7860511 DynamicFont caches now accounts for texture flags
CacheID added for future-proofing
2016-08-02 15:36:11 +01:00
Zher Huei Lee af6ef01c69 Added extra spacing support for DynamicFont
Side effect is that label min-size will now take into account
kerning.
2016-08-02 11:05:20 +01:00
Zher Huei Lee 7b165e8ac2 Added texture mipmaps and filtering to DynamicFont 2016-08-02 08:01:51 +01:00
Andreas Haas 4755fe5576
UI navigation via JOYSTICK_MOTION.
Previously, you could assign joystick axis events to "ui_*" actions but they had no effect.
See https://godotengine.org/qa/6232
2016-07-30 12:39:16 +02:00
Rémi Verschelde 08ba6086be World2D: Fix typo in default_density deprecation check 2016-07-28 19:03:32 +02:00
Paulb23 740dea7de7 Exposed enable syntax highlighting to properties 2016-07-28 15:47:47 +01:00
Ignacio Etcheverry 35cb8ff89e LineEdit: Fix event handled as text when a mod key is pressed 2016-07-27 19:32:46 +02:00
Juan Linietsky 542bd81e76 Merge pull request #5926 from akien-mga/pr-graphedit-drag
Fix GraphEdit dragging issues at scales != 1
2016-07-26 18:49:51 -03:00
Rémi Verschelde 60e19f7751 Fix GraphEdit dragging issues at scales != 1
Works around the issue originally described in #5907 (that was then
hijacked to describe the broader issue it exposes).
2016-07-26 23:19:41 +02:00
Juan Linietsky 9151eb591d Changed the way the step decimals are computed to a safer way, fixes many issues. 2016-07-26 17:25:10 -03:00
Daniel J. Ramirez 213a57ccaf Stop baking process if there is no geometry in the BakedLightInstance.
moved missing baked light warning to BakedLightInstance configuration warning
2016-07-25 21:45:20 -05:00
Juan Linietsky ab93fd1af9 Add thread support to HTTPRequest, changed assetlib to use it. 2016-07-24 16:09:43 -03:00
Juan Linietsky 62cdfeaf58 Merge pull request #5881 from neikeq/pr-fix-propagation
Viewport: Replace obsolete "windows" group calls
2016-07-24 12:37:59 -03:00
Juan Linietsky 6e3c7fe5fe Merge pull request #5803 from jarfil/issue/origin5695-pr
Fix tooltips blinking
2016-07-24 12:37:17 -03:00
Juan Linietsky 0b75f894c3 Merge pull request #5746 from Ovnuniarchos/FileDialogExposed
Corrections and additions to FileDialog
2016-07-24 12:36:05 -03:00
Juan Linietsky ba625a14c6 Merge pull request #5447 from RandomShaper/parallax-layer-fix-tidy
Improve parallax mirroring algorithm
2016-07-24 12:19:27 -03:00
Juan Linietsky bafcabb157 Merge pull request #5832 from Algrin6/patch-1
Fixes defects in Curve2D and Curve3D
2016-07-24 11:44:42 -03:00
Ignacio Etcheverry 67640c84eb Viewport: Replace obsolete "windows" group calls
- Fixes neighbour focusing event propagation not being stopped
2016-07-24 14:11:30 +02:00
Rémi Verschelde 8fbe804bd1 Merge pull request #5884 from 29jm/fix-crash-graphnode
Fix crash when GraphNode wasn't a child of a Control
2016-07-24 00:37:20 +02:00
Johan Manuel 580b4465c6 Fix crash when GraphNode wasn't a child of a Control 2016-07-24 00:25:32 +02:00
Rémi Verschelde ebefdaa598 Merge pull request #5737 from neikeq/pr-issue-5269
TextEdit: Scroll search results to the center
2016-07-23 22:54:32 +02:00
MarianoGNU f00e0b589f Fix pick color from screen. Closes #5853 2016-07-22 20:35:12 -03:00
Johan Manuel 1a1342670e Fix ItemList.clear() not removing separators 2016-07-22 16:45:57 +02:00
Robert Lewicki b1df9e016c Fixed ItemList indexing bug while selecting items.
Also added functionality for unselecting items in itemlist while clicking in empty space.
Fixes #5772.
2016-07-22 16:28:37 +02:00