Commit graph

7406 commits

Author SHA1 Message Date
Andreas Haas
015d36d18b
GDScript: Use "is" keyword for type checking.
Replaces the `extends` keyword with `is` in the context of testing for type compatibility.
`extends` is still used for declaring class inheritance.

Example:

```gdscript
extends Node2D

func _input(ev):
	if ev is InputEventKey:
		print("yay, key event")
```
2017-05-27 10:59:59 +02:00
Andreas Haas
3204befd1e
Fix InputEvent actions.
The `InputEvent::is_action(pressed|released)` methods weren't implemented yet.
Also fixed a typo in `InputDefault` that prevented `Input.is_action(pressed|released)` from working.
2017-05-27 10:52:57 +02:00
Juan Linietsky
f89641907f -Added EXR supprot for HDR (no BC6 compression yet though)
-Improvements to texture importer
-Proper detection of S3TC compression modes, and added all modes to Image
-Fixes to non-power of 2 compressed textures, which should all be supported by GLES3
2017-05-26 22:31:32 -03:00
Pedro J. Estébanez
d46e246d0f Rework warning levels
Now you have: extra, all (the default), moderate, no.
The old 'yes' option is still supported, but a warning will be printed and 'all' will be assumed.

The different options will translate to the following:

MSVC:
extra -> /Wall (implies /W4)
all -> /W3 + disable non-essential (*)
moderate -> /W2 + disable non-essential (*)
no -> /w

GCC/Clang:
extra -> -Wall -Wextra
all -> -Wall
moderate -> -Wall -Wno-unused
no -> -w

* = Truncations, narrowing conversions...: /wd4267 /wd4244 /wd4305 /wd4800
2017-05-27 02:30:27 +02:00
Rémi Verschelde
41918f328a Merge pull request #8939 from RandomShaper/ccflags-iphone
Allow custom CCFLAGS for iPhone builds
2017-05-27 00:48:57 +02:00
Pedro J. Estébanez
2a52e2b2f5 Allow custom CCFLAGS for iPhone builds
plus disable exceptions by default
2017-05-27 00:31:00 +02:00
volzhs
0627445863 Make OS.get_locale() returns same value 2017-05-27 03:50:22 +09:00
Nuno Donato
fa5aa11898 Added color presets for easy theme switching
Also tweaked the default colors (darker and less satured)
2017-05-26 17:16:15 +01:00
Nuno Donato
7661cb5a62 Added an help menu
Also renamed the "tutorials" button in the script editor to be consistent with the help menu entry.
Fixed #8921
2017-05-26 16:20:33 +01:00
Rémi Verschelde
8d92065164 Merge pull request #8916 from sanikoyes/Pr-fix_audio_stoped_iOS
Fix audio can't resume in iOS platform
2017-05-26 16:01:30 +02:00
Rémi Verschelde
755c07af19 Merge pull request #8923 from volzhs/fix-android-build-master
Fix android build regression by be7ced4
2017-05-26 16:00:53 +02:00
volzhs
781ca6773c Fix android build regression by be7ced4 2017-05-26 20:44:45 +09:00
sanikoyes
7d374b5974 Fixed audio can not resume if it is interrupted cause by an incoming phone call 2017-05-26 15:29:00 +08:00
Rémi Verschelde
ef66f8451c Merge pull request #8901 from tagcup/path_editor_plugin
Revive PathEditorPlugin.
2017-05-26 07:58:13 +02:00
Rémi Verschelde
d197cd4705 Merge pull request #8912 from RandomShaper/ios-alert
Implement OS.alert() for iOS
2017-05-26 07:56:22 +02:00
Andreas Haas
dbba433b69
Fix echo key event handling. 2017-05-25 23:01:45 +02:00
Andreas Haas
3744d9fd55
Fix virtual methods in InputEventKey.
This fixes a lot of problems with key input in the engine.
2017-05-25 21:56:54 +02:00
Juan Linietsky
7c89e00d46 Merge pull request #8590 from tagcup/s3tc_stuff
Use libsquish to decompress DXT textures.
2017-05-25 16:29:04 -03:00
Juan Linietsky
bf6380ee70 Removed skybox support, added panorama support. Skybox support may come back eventually, but hope not. 2017-05-25 14:00:43 -03:00
Pedro J. Estébanez
50f152575d Implement OS.alert() for iOS 2017-05-25 17:33:40 +02:00
Ferenc Arn
42de893f9a Applied clang-format.
Since PathEditorPlugin was commented out, it didn't get clang-format'ed.
2017-05-25 10:12:05 -05:00
Rémi Verschelde
7592c2380d Merge pull request #8898 from vnen/screentouch-struct-class
Change InputEventScreenTouch from struct to class
2017-05-25 08:40:27 +02:00
Rémi Verschelde
6a332b3575 Merge pull request #8895 from nunodonato/newdefaultcolors
Improved default colors for the new theme
2017-05-25 08:40:11 +02:00
Rémi Verschelde
cda7ced681 Merge pull request #8891 from nunodonato/newmenu
Join text menus on the top-left, move shortcut buttons to new locations (Preliminary work towards achieving the changes discussed in #8865.)
2017-05-25 08:39:19 +02:00
Rémi Verschelde
aa6e3af497 Merge pull request #8885 from capnm/fix-2d-editor-zoom
Fix 2D-editor mouse wheel zoom for x11.
2017-05-25 08:38:35 +02:00
Rémi Verschelde
aadeaae0b9 Merge pull request #8878 from BastiaanOlij/ios_make_arm64_default
Make arm64 the default option and set minimum to iOS 9
2017-05-25 08:38:07 +02:00
Rémi Verschelde
6d0809b095 Merge pull request #8869 from Hinsbart/errors
Fix errors on engine startup.
2017-05-25 08:37:48 +02:00
Ferenc Arn
fdf301e78b Revive PathEditorPlugin.
Adapted the plugin to recent changes in input classes and pool arrays.
Fixed an out-of-bounds bug in the process.
Doesn't display anything for a single point (existing issue).
2017-05-24 17:09:53 -05:00
Nuno Donato
78781355ac Join text menus on the top-left, move shortcut buttons to new location 2017-05-24 22:08:07 +01:00
Nuno Donato
5c65547804 Improved default colors for the new theme
Colors inspired from solarized themes.
Also moved the theme settings to the Interface category.
2017-05-24 21:41:56 +01:00
George Marques
452caf3f80
Change InputEventScreenTouch from struct to class 2017-05-24 16:06:07 -03:00
Martin Capitanio
29c5b4c7e6 Fix 2D-editor mouse wheel zoom (x11).
Fixes #8888
2017-05-24 10:02:43 +02:00
Thomas Herzog
2e3145de65 Merge pull request #8884 from karroffel/gdnative-fixes
[GDNative] fixed some functions that returned references
2017-05-23 22:02:53 +00:00
Karroffel
f23b56e3ec [GDNative] fixed some functions that returned references
Those errors were introduced with #8821 (6fd217d). These functions need to return reference types, otherwise setting values on those containers does not work.
2017-05-23 22:57:02 +02:00
Rémi Verschelde
f4f7d6d58d Merge pull request #8881 from vnen/uwp-3
Fix UWP compilation issues
2017-05-23 21:17:25 +02:00
George Marques
40613221a4
Fix UWP compilation issues
Also fix VS2017 compilation problems.
2017-05-23 14:06:24 -03:00
Rémi Verschelde
9e2b3f0903 Merge pull request #8880 from vnen/fix-canvas-item-editor-crash
Fix crash when interacting with the 2d editor
2017-05-23 16:21:32 +02:00
George Marques
86ef71fc95
Fix crash when interacting with the 2d editor 2017-05-23 11:03:17 -03:00
BastiaanOlij
80fc513663 Make arm64 the default option and set minimum to iOS 9 2017-05-23 23:58:38 +10:00
Rémi Verschelde
016ee0edb5 Merge pull request #8877 from BastiaanOlij/fix_ios_godot3
More fixes for iOS Godot 3.0
2017-05-23 15:26:13 +02:00
BastiaanOlij
3768a3b2c5 More fixes for iOS Godot 3.0
- nicely exit if initialisation fails
- fix a few issues around new event handling
- use 16bit single channel framebuffer as 32bit is not supported on iOS
2017-05-23 22:38:36 +10:00
Rémi Verschelde
5b0ecc9ad3 Merge pull request #8876 from BastiaanOlij/fix_vs15
Fix a few issues compiling windows and using VS2015 and earlier
2017-05-23 14:38:35 +02:00
Juan Linietsky
afcce9eb12 -Fix the "set_val" call deferred, it was the only one.. closes #8742
-Removed redundant bind in input_event
2017-05-23 09:06:22 -03:00
Juan Linietsky
d093b78f12 Fix stex import into black textures when lossless and lossy are selected, closes #8801 2017-05-23 08:55:32 -03:00
BastiaanOlij
8b01f9d28f Fix a few issues compiling windows and using VS2015 and earlier 2017-05-23 21:54:19 +10:00
Juan Linietsky
6161e731d0 fixed crash on code that checks InputEvent 2017-05-23 08:13:11 -03:00
Rémi Verschelde
a77e53b0a5 Merge pull request #8872 from volzhs/editor-theme-lineedit
Fix disabled style of LineEdit
2017-05-23 08:42:52 +02:00
volzhs
de9fb136b1 Fix disabled style of LineEdit 2017-05-23 14:36:07 +09:00
Andreas Haas
4d8e45de17
Fix errors on engine startup.
Fixes a bunch of the most spammy console errors introduced by recent refactorings:

- `AudioServerState` does not exist, this was the reference to it in the source. The surrounding code made it clear that `AudioServerLayout` was meant to be used instead.
- `StreamCSVTranslation` same here, it's the only reference. I went with `Translation` here, but I'm not 100% sure on this one.
- Some methods have been moved from `Texture` to `Image`, but the old bindings were still there.
- A few `name == ""` errors related to duplicating nodes.
2017-05-22 20:50:59 +02:00
Rémi Verschelde
ab938a930f Merge pull request #8863 from volzhs/editor-theme-new-node
Show description box on create new node window
2017-05-22 15:17:07 +02:00