Commit Graph

6004 Commits

Author SHA1 Message Date
Pedro J. Estébanez 7d642e218e Improve TouchScreenButton
Fix shape not being updated
Add a way to hide the shape on editor and debug-with-visible-shapes
Remove useless checks
2017-04-03 14:38:01 +02:00
volzhs 73f53a7918 Fix monitoring status of Area2D 2017-04-03 21:00:38 +09:00
Rémi Verschelde 12749dd67a Merge pull request #8240 from volzhs/crash-project-setting
Fix crash when change project settings
2017-04-03 11:34:14 +02:00
volzhs ddd01332ef Fix crash when change project settings 2017-04-03 17:49:02 +09:00
Rémi Verschelde d0b0a3241f Merge pull request #8236 from RandomShaper/fix-warped-pan-2.1
Fix warped mouse panning on Linux (2.1)
2017-04-03 07:57:32 +02:00
Pedro J. Estébanez 5889169bbd Fix warped mouse panning on Linux
Fix/improve it also on certain edge cases for any platform
2017-04-03 02:59:03 +02:00
Rémi Verschelde 603f83ba91 Merge pull request #8230 from Hinsbart/upd_mappings_2.1
Input: Update Gamepad mappings. [2.1]
2017-04-02 13:02:39 +02:00
Andreas Haas 33f9873b70
Input: Update Gamepad mappings. 2017-04-02 09:59:53 +02:00
Andreas Haas 6438823037 Merge pull request #8166 from evolarium/joystick_fix
Initialize hat values for mapping and revert X360 mappings.
2017-03-30 14:16:03 +02:00
Rémi Verschelde 6392381c16 Merge pull request #8204 from Shin-NiL/2.1
Honor the Tween's final values
2017-03-30 13:09:21 +02:00
Rémi Verschelde fd5215bffb Merge pull request #8179 from efornara/2.1
Allow remote debugging on disconnected Windows machines
2017-03-30 10:30:59 +02:00
Rémi Verschelde 2798a85ba7 Merge pull request #8172 from RandomShaper/improve-tile-palette-2.1
Several enhancements for the tile map editor (2.1)
2017-03-30 10:29:53 +02:00
Shin-NiL ca96d7940e Honor the Tween's final values 2017-03-29 19:35:51 -03:00
William Tumeo d90809151f Re-add attach button and context menu from 1880238c3e 2017-03-29 18:36:58 -03:00
William Tumeo 1307ff7eb1 Re-add clear script button and context menu from ce5200b30e 2017-03-29 17:23:49 -03:00
Emanuele Fornara facacb886c Workaround to allow debugging on Windows when offline 2017-03-29 19:44:18 +01:00
William Tumeo 5d8d51719a Re-add script icons from 544194053a 2017-03-29 04:06:53 -03:00
William Tumeo 95f747ec93 Re-add create/load script button and context menu
- create from f51b202566
- load from 41329f9750
2017-03-29 03:46:35 -03:00
William Tumeo 225b1d2d76 Re-add script button from b77200728e 2017-03-29 02:16:26 -03:00
Jordan Patterson 391f6c5536 Initialize hat values for mapping and revert X360 mappings. 2017-03-27 11:00:37 -06:00
Pedro J. Estébanez bba31fbad7 Several enhancements for the tile map editor
Allow sorting tile palette by name
Allow hiding tile ids in tile palette
2017-03-27 10:46:44 +02:00
Rémi Verschelde e3d6d863af Merge pull request #8170 from RandomShaper/fix-uniform-move-2.1
Include uniform (Shift down) mode in only-one-Node2D dragging (2.1)
2017-03-27 08:57:05 +02:00
Rémi Verschelde b3d1113ae3 Merge pull request #8152 from Hinsbart/input_id_2.1
[2.1] Better handling of joypad device IDs.
2017-03-27 08:51:15 +02:00
Rémi Verschelde 93107f4245 Merge pull request #8141 from elasota/fix-unshaded-spillover
Fix renderer sometimes not applying "unshaded" flag (2.1)
2017-03-27 08:47:15 +02:00
Pedro J. Estébanez 3bdb29b077 Include uniform (Shift down) mode in only-one-Node2D dragging 2017-03-27 01:32:16 +02:00
Rémi Verschelde 62d8f96720 Remove redundant subfolder in iOS template
(cherry picked from commit 1a0d1bb18d)
2017-03-26 22:04:29 +02:00
Rémi Verschelde d3e6f58c25 Merge pull request #8142 from akien-mga/2.1-warnings-option
SCons: Add option to toggle warnings (on by default)
2017-03-26 21:54:30 +02:00
Andreas Haas 8c06da0d49
Better handling of joypad device IDs.
Now InputDefault is responsible for giving out joypad device IDs to the platform, instead of each platform handling this itself.
This makes it possible for c++ modules to add their own "custom" gamepad devices, without the risk of messing up events in case the user also has regular gamepads attached (using the OS code).
For now, it's implemented for the main desktop platforms.
Possible targets for future work: android, uwp, javascript
2017-03-26 00:12:11 +01:00
Rémi Verschelde 31107daa1a SCons: Add option to toggle warnings (on by default)
All the warnings are factored out of the platform-specific files and moved to
SConstruct. Will have to check that it does not introduce regressions on some
platforms/compilers.
2017-03-25 09:24:29 +01:00
elasota 5d691350c4 Fixed "unshaded" flag not being updated if light_type and receive_shadows_state didn't change. 2017-03-24 20:27:06 -04:00
Andreas Haas ed3134088b Input: Update mouse position on mouse-button events.
(cherry picked from commit 468719c480)
2017-03-24 23:19:49 +01:00
Ferenc Arn f263274a25 Use atan2 rather than acos in Vector3.angle_to.
Fixes #8111.

(cherry picked from commit 3730e0533c)
2017-03-24 23:19:30 +01:00
Bojidar Marinov 0c650c2511 Make inline blocks in GDScript more pythonic
Fixes #8001

(cherry picked from commit 18ab88b3f1)
2017-03-24 23:19:14 +01:00
Bojidar Marinov 0afb9b579f Suppress error messages when using ConfigFile::get_value and a default is given
Fixes #8097

(cherry picked from commit 927d15b815)
2017-03-24 23:17:08 +01:00
Rémi Verschelde 8f5b15754c Merge pull request #8114 from RandomShaper/improve-snapping-2.1
Improved 2D snapping behavior (2.1)
2017-03-24 22:51:09 +01:00
Rémi Verschelde a9d63bcf6f Merge pull request #8107 from RandomShaper/warped-panning-2.1
Implement warped mouse panning for 2D & 3D editors (2.1)
2017-03-24 22:50:34 +01:00
Rémi Verschelde 2c95976ef7 Merge pull request #8099 from RandomShaper/close-output-2.1
Add editor option for automatically closing the output when stopping the game (2.1)
2017-03-24 22:50:02 +01:00
Rémi Verschelde 492f6e06c0 Merge pull request #8088 from BastiaanOlij/android_gravity_2.1
Android gravity vector Godot 2.1
2017-03-24 22:49:23 +01:00
Rémi Verschelde 15b6eadba7 i18n: Sync templates and translations with current code 2017-03-24 22:27:22 +01:00
Rémi Verschelde d2e8a21cb1 i18n: Adapt script to tools/editor -> editor move 2017-03-24 22:24:56 +01:00
Pedro J. Estébanez adf36faee8 Improved 2D snapping behavior
Make snapping affect nodes created by drag & drop
Make snapping for a single Node2D refer to its pivot
Refactor duplicate drag setup code
2017-03-24 21:27:37 +01:00
Rémi Verschelde a531051a61 Only assume HiDPI mode if DPI >= 192 and width > 2000
Also use single-dock column if width < 1200.

Manually adapted from bfe67a3b87
and c103f32ea3.

Fixes #6096.
2017-03-24 18:26:56 +01:00
Rémi Verschelde fd17d301d0 Merge pull request #8100 from BastiaanOlij/ios_magnetometer_2.1
Fixing magnetometer on iOS
2017-03-23 09:57:29 +01:00
Rémi Verschelde aaf4e3ab9f Merge pull request #8108 from Faless/2.1-v6fix-cherry
Cherry pick #7510 and #7581 to 2.1
2017-03-23 08:29:08 +01:00
Pedro J. Estébanez 2c2c48ffb3 Implement warped mouse panning for 2D & 3D editors
Enabled by default as in Blender, but can be disabled separately for 2D & 3D;
the core functionality is in Input so this could be reused or even exposed to scripts in the future
2017-03-22 21:18:47 +01:00
Fabio Alessandrelli 15ecdb5f00 Fix buffer size check in UDP socket.
We were reserving 12 bytes from the buffer for ip, port, and length, but since
IPv6 introduction we should be reserving 24 (IPv6 are 16 bytes)

(cherry picked from commit 5dc7c920bf)
2017-03-22 21:11:49 +01:00
Fabio Alessandrelli 994df5df5c Use default UDP ring buffer size of 65536 for clients
We should probably create a specific function for setting the
recv buffer anyway. UDP sockets does not need to bind (listen)
to be able to call recvfrom. This is especially useful for clients
who just call set_send_address and start communicating with a server.

(cherry picked from commit 9336857132)
2017-03-22 21:07:27 +01:00
Fabio Alessandrelli 7dbccc9a57 Fix bug causing UDP socket to close after the first send if not listening
The ring buffer for receiving packets was not resized in constructor

(cherry picked from commit 68dc969f8c)
2017-03-22 21:05:27 +01:00
Fabio Alessandrelli cab9ad7657 Update docs reference for TCP_Server::listen and UDPPacketPeer::listen
(cherry picked from commit e5e4e7b6a9)
2017-03-22 21:05:02 +01:00
Fabio Alessandrelli 9f41c0a356 Avoid deadlock when writing/reading data on a connecting TCP socket
TCP status polling is always performed as non blocking.
Trying to put a packet on a connecting socket will fail immediately.

(cherry picked from commit fa0cb7da0e)
2017-03-22 21:03:26 +01:00