Pedro J. Estébanez
5b8d5766f4
Fix crash if TouchScreenButton is pressed while exiting the tree
2017-02-22 01:36:31 +01:00
Pedro J. Estébanez
c0f7b80b89
Solve TouchScreenButtons issues
...
Fix touch button needing double tap after pause (applies to those not set to pass-by)
Fix error when a pressed TouchScreenButton with no associated action exits the tree
(with some refactoring of duplicate code)
2017-02-10 20:53:35 +01:00
Pedro J. Estébanez
67a0da34a2
Add shape property to TouchScreenButton
2017-01-25 17:06:06 +01:00
Juan Linietsky
25a62a3e32
Added a few functions to make 2D split screen easier.
...
(cherry picked from commit a4156f1f0a
)
2017-01-12 20:53:03 +01:00
Wilhem Barbier
0b6d4e92b5
Add the 'finished' signal to AnimatedSprite
...
(cherry picked from commit f6262fde11
)
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
Ignacio Etcheverry
b5bdc60f58
TileMap: _update_dirty_quadrants() cancel pending update pre return
...
(cherry picked from commit 5b3acd287d
)
2017-01-12 19:15:29 +01:00
volzhs
580031e6f5
Able to change visibility when ancestor node is hidden
...
(cherry picked from commit 792ff11642
)
2017-01-12 19:15:28 +01:00
Ignacio Etcheverry
5354d7ddcc
KinematicBody: Fix wrong method bind return type
...
(cherry picked from commit d579d0a814
)
2017-01-12 19:15:27 +01:00
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
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
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
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
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
Pedro J. Estébanez
c0ba08b8d5
Add editor_only param to Light2D
...
(cherry picked from commit 34c02fad5a
)
2016-10-09 17:34:29 +02:00
Pawel Kowal
ab231cd3fb
Fix #6480 , area duplicated param
...
(cherry picked from commit f9a21baa26
)
2016-10-09 17:23:43 +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
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
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
b41be2d1a9
Merge pull request #4854 from Razzlegames/screenToLocal
...
Conversion function for screen coords to local Canvas coords
2016-07-11 02:26:58 -03:00
Kyle Luce
605193b22f
Conversion function for screen coords to local Canvas coords
...
- Useful if you need to Convert screen coords to the coordinate space of a
CanvasItem, but don't have an associated InputEvent to use in
#make_event_local.
For example, if you have a particular point on the screen you'd like to project
into World Space, for various reasons, you would use this function on the root
of the scene. This is analogous to ray casting from screen space in 3D.
2016-07-10 16:06:57 -07:00
Juan Linietsky
46bb02991f
Merge pull request #5270 from lonesurvivor/master
...
Added Tile Origin = Bottom Left option to the TileMap
2016-07-10 13:41:33 -03:00
Juan Linietsky
b06eca108a
Merge pull request #5490 from timoschwarzer/master
...
Add new Camera2D alignment functions
2016-07-10 12:39:50 -03:00
Rémi Verschelde
f40f360a2c
Remove unused variables (fourth pass) + dead code
...
Also fix a potential regression from 3fcb9b1ec1
.
2016-07-08 16:47:55 +02:00
Juan Linietsky
7c1ab42571
Fix the +1 button to insert keyframes in Sprite and Sprite3D, closes #5422
2016-07-06 23:46:04 -03:00
Timo Schwarzer
185ba75bfa
Fix Camera2D header for align()
2016-06-30 16:07:48 +02:00
Timo Schwarzer
ae055ebf82
Add align() to realign the Camera2D to its tracked node
...
align() will center the tracked Node if anchor mode is set to DRAG_CENTER, otherwise the camera is set to the Node's position
2016-06-29 18:17:11 +02:00
Timo Schwarzer
6686fbc1e0
Add reset_smoothing() for immediately fixing the camera to the destination location
2016-06-29 17:40:29 +02:00
Juan Linietsky
47d6cc08bb
Properly deliver localized coordinates when passing gui events through parents, closes #4215
2016-06-27 10:00:36 -03:00
Pedro J. Estébanez
6ce47d9b51
Improve parallax mirroring algorithm
...
Replaces the iterative approach currently used by an equivalent direct computation.
Also fixes infinite looping that happens when the mirroring value is negative.
2016-06-27 10:40:33 +02:00
Juan Linietsky
10f411b47b
Avoid mirroring to go negative to fix crash, closes #4036
2016-06-26 16:51:13 -03:00
Juan Linietsky
282da142ae
Added an option to ParallaxLayer to add an extra scroll offset, helps if you want to make clouds to move by themselves and animate that, for example.
2016-06-26 16:22:20 -03:00
Rémi Verschelde
0be12898a7
Revert "Improve parallax mirroring algorithm"
2016-06-26 18:03:15 +02:00
Juan Linietsky
130b83bc52
Ability to set draw transform as a matrix, closes #5428
2016-06-26 13:01:17 -03:00
Rémi Verschelde
b02d67be30
Merge pull request #5307 from MarianoGnu/master
...
TextureRegion improvements
2016-06-26 09:43:45 +02:00
Rémi Verschelde
22c9a44174
Merge pull request #5391 from RandomShaper/parallax-layer-fix-tidy
...
Improve parallax mirroring algorithm
2016-06-24 21:26:54 +02:00
Pedro J. Estébanez
fbddc0b747
Improve parallax mirroring algorithm
...
Replaces the iterative approach currently used by the standard fmod() function.
Also fixes infinite looping that happens when the mirroring value is negative.
2016-06-24 18:39:56 +02:00
George Marques
b06d235ce8
Rename CanvasItem.edit_get() to edit_get_state()
...
This makes more sense of what it does and correlates to edit_set_state()
2016-06-23 17:59:37 -03:00
Bojidar Marinov
f3342eb72e
Fix a inherited transform bug with Camera2D preview drawing
...
Closes #5339
2016-06-21 22:35:04 +03:00
Juan Linietsky
fa0d1cd27c
fix CanvasItem.get_global_transform() and CanvasItem.get_local_transform(), closes #4075
2016-06-20 21:19:12 -03:00
MarianoGNU
79c500bee1
Modify margins with mouse input
2016-06-20 17:06:19 -03:00
Patrick Reh
fff4d5867c
Added Tile Origin = Bottom Left option to the TileMap
2016-06-20 12:18:53 +02:00
MarianoGNU
0f1a717c64
Remove unused connection. ShaderEditor should'nt handle ShaderGraphs.
...
Fixes #4678 && #4745
2016-06-20 00:50:33 -03:00
Juan Linietsky
7c20c386c5
-Added trigger mode to tracks, useful for properties that work as triggers, such as playing a sample, an animation, etc.
...
-Better interpolation of discrete tracks, fixes #4417
2016-06-19 01:43:02 -03:00
Rémi Verschelde
b7dbf9207a
Drop empty files that are not used anywhere
...
Part of #5272
2016-06-18 19:46:30 +02:00
Rémi Verschelde
a7fc04626a
Add missing license headers in our source files ( #5255 )
...
Also removes a couple wrong Godot headers from third-party source files.
2016-06-18 14:46:12 +02:00
Juan Linietsky
95dc15b750
Send body inout notifications after state is applied, fixes #4683
2016-06-17 16:45:10 -03:00
Juan Linietsky
4866713bc3
added a function CanvasItem.get_item_and_children_rect() , fixes #4738
2016-06-13 21:37:04 -03:00
Rémi Verschelde
0729c852b4
Fix indentation issues in last commits
...
Ping @reduz.
2016-06-07 07:39:40 +02:00
Juan Linietsky
2b9cab25c0
-Fix small bug regarding to canvas layer detection, closes #4381
2016-06-06 21:14:25 -03:00
Daniel J. Ramirez
ba0baa3ca7
Modified damp ranges
2016-05-23 18:23:51 -05:00
Daniel J. Ramirez
c9350d7897
Clamped some light2D ranges
2016-05-23 17:56:10 -05:00
Ovnuniarchos
0d20ceeb61
Polygon2D now exposes vertex colors.
2016-05-23 03:40:45 +02:00
Rémi Verschelde
94c34ff890
i18n: Proofreading of all strings
...
Done to ensure that no important identifiers are translatable,
to fix compound strings using the new vformat() function, and
some general English proofreading here and there.
2016-05-21 00:21:57 +02:00
volzhs
ebcf04ff1f
fix compile failure when tools=no
2016-05-18 14:29:53 +09:00
Rémi Verschelde
be4d95c19a
CanvasModulate: fix build issue with GCC
...
Bug from c195c0d
.
2016-05-17 23:47:26 +02:00
Juan Linietsky
c195c0df6b
-Added configuration warning system for nodes
...
-Added a new "add" and "instance" buttons for scene tree
-Added a vformat() function to ease translation work
2016-05-17 18:28:44 -03:00
volzhs
d6ccea541d
remove old bind for add_frame of SpriteFrames
...
it causes ``ERROR: Method already bound: SpriteFrames::add_frame``
2016-05-17 22:48:36 +09:00
Juan Linietsky
bed3efb17e
New reworked AnimatedSprite!
...
-New SpriteFrames editor, with support for drag&drop, multiple animation
sets, animation speed and loop.
-New AnimatedSprite, with support for all the new features!
AnimatedSprite3D has not been updated yet.
-Added support for drag&drop to other editors, such as resourcepreload,
sample library, etc.
2016-05-14 23:48:45 -03:00
MattUV
91c85ff1f5
classref: Fixed return types in Area and Area2D ( #4635 )
2016-05-12 17:03:15 +02:00
Rémi Verschelde
4eab767a6f
Rotation APIs: Better exposure for degrees methods
...
Made public the various set/getters for rotations in degrees.
For consistency, renamed the exposed method names to remove the leading
underscore, and kept the old names with a deprecation warning.
Fixes #4511 .
2016-05-06 23:38:08 +02:00
Ignacio Etcheverry
1e752c0120
Fix wrong return and argument types in documentation
2016-05-04 15:35:09 +02:00
Rémi Verschelde
c97cc362e3
Merge pull request #4387 from JoshuaGrams/rigidbody2d-torque
...
Hooked up RigidBody2D torque methods
2016-04-29 10:29:12 +02:00
Josh Grams
a7b4127481
RigidBody2D (add_force, set_inertia): new methods.
2016-04-26 08:15:15 -04:00
Josh Grams
ffaced87a6
RigidBody2D: rename apply_impulse(pos) to offset.
2016-04-24 04:36:51 -04:00
Bojidar Marinov
b2e0cedbf0
Fix continious update with Camera2D
...
Closes #4406
2016-04-23 15:27:32 +03:00
Josh Grams
f7d31cec38
RigidBody2D: add and bind get_inertia() method.
...
You can't set this value very well, since it's automatically computed
from the mass and the collision shapes. But since the values are higher
than many people might suspect, so being able to read it helps estimate
the amount of torque you might need to apply.
2016-04-20 20:49:37 -04:00
Josh Grams
dbabe4c07c
RigidBody2D: add and bind get/set_applied_torque.
2016-04-20 19:49:35 -04:00
Rémi Verschelde
6da39ce18d
Merge pull request #4380 from bojidar-bg/camera2d-fix-zoom
...
Fix Camera2D ignoring zoom when checking limits
2016-04-19 20:48:59 +02:00
Bojidar Marinov
7a8aea0be9
Fix Camera2D ignoring zoom when checking limits
...
Closes #1912
2016-04-19 21:35:02 +03:00
Bojidar Marinov
e7f66a88d6
Add preview of the Camera2D's screen boundaries
...
Closes #3365
2016-04-19 16:07:06 +03:00
Rémi Verschelde
b9ac3df29b
Merge pull request #4259 from neikeq/pr-issue-4224
...
Fix RayCast not updating when debugging collissions
2016-04-07 14:13:48 +02:00
Ignacio Etcheverry
6cf3bdcf76
Fix RayCast not updating when debugging collissions
2016-04-07 13:30:40 +02:00
Bojidar Marinov
6dcd1354c2
Add a `sleeping_state_changed` signal to RigidBody and RigidBody2D classes
...
Closes #3911
2016-04-06 17:14:38 +03:00
Bojidar Marinov
2a581835ca
Fix issues with tilemap covering child nodes and old quadrants
...
Closes #4070
2016-03-18 18:57:26 +02:00
Hubert Jarosz
4a4f247914
remove trailing whitespace
2016-03-09 00:00:52 +01:00
Franklin Sobrinho
1d188c1c7b
Fix Sprite doesn't updating region_rect value in certain conditions
2016-03-05 12:30:09 -03:00
Juan Linietsky
70cdfa681a
-Change link to new documentation
...
-fixed bug in tilemap collision debug
2016-02-20 10:02:14 -03:00
Rémi Verschelde
281236280e
Fix NavigationPolygon references in _bind_method
...
Also sync the doc accordingly
2016-02-17 18:46:31 +01:00
Rémi Verschelde
5439937899
Bind method is_cell_transposed
2016-02-15 23:30:52 +01:00
Johan Manuel
a634fc7a4a
Added get_cellv() method to TileMap
2016-02-06 13:48:41 +01:00
Juan Linietsky
35a28f3442
-Take in consideration canvas layers for GUI input
2016-01-24 10:57:42 -03:00
Juan Linietsky
d01f55a78e
Merge pull request #2698 from Faless/add_area_fix
...
Fix bug in Body(2D)SW::add_area
2016-01-23 23:07:23 -03:00
Juan Linietsky
fe46f0d2b2
-leftover debug code was causing a crash in navigation 2d, removed it and fixes #3374
2016-01-22 19:49:05 -03:00
Rémi Verschelde
3c6dd5749d
Merge pull request #3204 from neikeq/fix_3153
...
Consider texture offset when rotating tiles
2016-01-15 16:53:16 +01:00
Juan Linietsky
a625f7d073
-Properly lock and and warn about switching off contact monitoring, fixes #3041
2016-01-12 06:14:15 -03:00
Rémi Verschelde
90e5fba1c1
Merge pull request #3300 from MarianoGnu/bug_fixing
...
fix: TouchScreenButton should stop propagating action when button is …
2016-01-11 08:47:37 +01:00
Juan Linietsky
d7015613b1
It seems everyone misses the polygon decomposer output, fixes #3069
2016-01-10 23:09:05 -03:00
Juan Linietsky
5b088b41b3
make path update when curve changes, fixes #3144
2016-01-10 18:01:16 -03:00
MarianoGNU
3169b66d15
fix: TouchScreenButton should stop propagating action when button is removed from scene
2016-01-10 10:36:43 -03:00
Ariel Manzur
d199ed344d
removed prints
2016-01-09 19:51:05 -03:00
Ignacio Etcheverry
a9dbe83155
TileMap: Properly flip/rotate tiles with non-square region
2016-01-04 15:28:11 +01:00
Juan Linietsky
a501ee355b
properly specify metadata in KB function
2016-01-03 20:25:27 -03:00
Juan Linietsky
939c5f5c9e
-Fix global transform cache not being cleared in 2D nodes, fixes many editor bugs, closes #2115
2016-01-02 20:32:19 -03:00
Ignacio Etcheverry
e22e0cecf7
TileMap: Consider texture offset for rotated tiles
2016-01-02 18:17:20 +01:00
Juan Linietsky
d069c44a7f
-Fix TouchScreenButton to work with stretch and viewport canvas transform, closes #2286
2016-01-02 11:23:30 -03:00
Juan Linietsky
199a29b353
Merge pull request #3184 from vnen/update-copyright-2016
...
Update copyright to 2016 in headers
2016-01-01 11:03:29 -03:00
George Marques
5be9ff7b67
Update copyright to 2016 in headers
2016-01-01 11:50:53 -02:00
Juan Linietsky
7879efc50b
Make both lights and occluders stop working if hidden, fixes #2437
2016-01-01 10:45:24 -03:00