Commit graph

10867 commits

Author SHA1 Message Date
Rémi Verschelde
6e3f2f44af Use new XDG folders to dehardcode paths 2017-11-19 20:54:26 +01:00
Rémi Verschelde
32c12a92a5 Add initial support for the XDG Base Directory spec
Spec version 0.7 from https://standards.freedesktop.org/basedir-spec/basedir-spec-0.7.html
(latest as of this commit).

Three virtual methods are added to OS for the various XDG paths we will use:
- OS::get_data_path gives XDG_DATA_HOME, or if missing:
  ~/.local/share on X11, ~/Library/Application Support/ on macOS and %APPDATA% on Windows
- OS::get_config_path gives XDG_CONFIG_HOME, or if missing:
  ~/.config on X11, ~/Library/Application Support/ on macOS and %APPDATA% on Windows
- OS::get_cache_path gives XDG_CACHE_HOME, or if missing:
  ~/.cache on X11, ~/Library/Caches on macOS and %APPDATA% on Windows

So for Windows there are no changes, for Linux we follow the full split spec
and for macOS stuff will move from ~/.godot to ~/Library/Application Support/Godot.

Support for system-wide installation of templates on Unix was removed for now,
as it's a bit hackish and I don't think anyone uses it.

user:// will still be OS::get_data_path() + "/godot/app_userdata/$name" by
default, but when using the application/config/use_shared_user_dir option
it will now use XDG_DATA_HOME/$name, e.g. ~/.local/share/MyGame.

For now everything still goes in EditorSettings::get_settings_dir(), but
this will be changed in a later commit to make use of the new splitting
where relevant.

Part of #3513.
2017-11-19 20:54:24 +01:00
Rémi Verschelde
ad199c3964 EditorSettings: Rename settings_path to settings_dir
Also to prepare for upcoming refactoring for XDG support.
2017-11-17 20:55:09 +01:00
Rémi Verschelde
73049d115e Rename OS::get_data_dir to OS::get_user_data_dir
Will be needed to avoid confusion with system data path (XDG_DATA_HOME)
and editor data dir in upcoming refactoring.
2017-11-17 20:55:09 +01:00
Juan Linietsky
ebbe2bd572
Merge pull request #12930 from vnen/gdscrit-output-print
Make tool scripts print on the editor Output panel
2017-11-17 16:05:44 -03:00
Rémi Verschelde
0968c8d2f6
Merge pull request #12982 from tagcup/aabb_rename
Rename Rect3 to AABB.
2017-11-17 20:04:29 +01:00
Juan Linietsky
1feeb3e1c8
Merge pull request #12924 from vnen/light-shader
Enable light shaders when light variables are used
2017-11-17 16:02:34 -03:00
Juan Linietsky
0e04316214
Merge pull request #12962 from SaracenOne/gui_focus_next_prev
Add manual overrides for focus_next and focus_previous
2017-11-17 15:03:05 -03:00
Juan Linietsky
cb484d75a3
Merge pull request #12980 from Rycerzyk/dithering-11416
Fix alpha dithering in viewports with TransparentBg=false and Usage=2D, issue #11416
2017-11-17 15:02:35 -03:00
Juan Linietsky
f810d369de
Merge pull request #12987 from vnen/plugin-resource-save
Make resources edited by plugins be sent as reference
2017-11-17 14:56:54 -03:00
Ferenc Arn
d28763a4c1 Rename Rect3 to AABB.
Fixes #12973.
2017-11-17 11:01:41 -05:00
George Marques
e90cfa6f82
Make resources edited by plugins be sent as reference
This ensures that a plugin can save a resource using the ResourceSaver.
2017-11-17 13:48:33 -02:00
Rémi Verschelde
64caa4733c
Merge pull request #12977 from YeldhamDev/create_node_relationships
Enabling relationship lines in the Scene Tree enables them in the Create New Node dialog as well
2017-11-17 09:22:23 +01:00
andrzej.buczynski
4c0e927ccf Fix alpha dithering in viewports with TransparentBg=false and Usage=2D, issue #11416 2017-11-17 01:40:00 +01:00
George Marques
b96ee28acd
Add a print handler for the editor output panel 2017-11-16 21:57:02 -02:00
George Marques
1d12470a78
Add print_error function, akin to print_line 2017-11-16 21:56:57 -02:00
Rémi Verschelde
b44cb4e3b9
Merge pull request #12583 from volzhs/select-multiple-files
Not to be slow when select multiple files
2017-11-17 00:37:01 +01:00
Rémi Verschelde
d629fd9a36
Merge pull request #12606 from rraallvv/window_position
Fix window position on macOS (master)
2017-11-17 00:36:16 +01:00
Rémi Verschelde
139a957802
Merge pull request #12763 from remorse107/Code-Complete
Modified code completion for better tabbing with immediate hints.
2017-11-17 00:33:27 +01:00
Rémi Verschelde
852b9691a6
Merge pull request #12940 from willnationsdev/richtextlabel-docs
[DOCS] Adding internal tag stack information and fleshing out descriptions
2017-11-17 00:32:10 +01:00
Rémi Verschelde
219d735eb2
Merge pull request #12932 from willnationsdev/capitalize-enhancement
Fixes a bug where capitalize didn't work with camelCase names
2017-11-17 00:28:18 +01:00
Rémi Verschelde
49cea443a9
Merge pull request #12870 from Nibodhika/master
Fixing tilemap rotation for non top-left tiles.
2017-11-17 00:05:23 +01:00
Rémi Verschelde
7ae8ba2d47
Merge pull request #12976 from Paulb23/scene_tree_add_undo_issue_6125
Fixed scene tree updating when undo/redo root node creation, issue 6125
2017-11-16 23:37:24 +01:00
Michael Alexsander Silva Dias
496e4e0d2f Enabling relationship lines in the Scene Tree enables them in the Create New Node dialog as well. 2017-11-16 20:24:33 -02:00
Paulb23
ad87dac77e Fixed scene tree updating when undoing root node creation, issue 6125 2017-11-16 22:22:51 +00:00
Rémi Verschelde
ad61ba7a97
Merge pull request #12974 from karroffel/gdnative-wrapper-fix
[GDNative] fix wrapper code generation
2017-11-16 22:40:25 +01:00
Rémi Verschelde
3330c4b4de
Merge pull request #12971 from Chaosus/saveandrunscenefix
Fix current scene run when scene saved
2017-11-16 22:31:38 +01:00
Rémi Verschelde
ab3cd97138
Merge pull request #12969 from akien-mga/refactor-gd-prefix
GDScript: Refactor "GD" class prefix to "GDScript"
2017-11-16 22:12:22 +01:00
Karroffel
b13bfac9e3 [GDNative] fix wrapper code generation 2017-11-16 22:05:47 +01:00
Chaosus
acc45ccf41 Fix current scene run when scene saved 2017-11-16 21:47:10 +03:00
Rémi Verschelde
bb1d1912ea
Merge pull request #12488 from djrm/pr_gridmap_fixes
Several improvements to GridMap.
2017-11-16 19:27:27 +01:00
Rémi Verschelde
763ca3dae1
Merge pull request #12970 from leezh/module_docs
Added modules' doc files to make_doc_header
2017-11-16 19:10:12 +01:00
Zher Huei Lee
fbcb2edeeb Added modules' doc files to make_doc_header
They were somehow never included. This fixes that.
2017-11-17 01:57:28 +08:00
Rémi Verschelde
4cfc29611e GDScript: Refactor "GD" class prefix to "GDScript" 2017-11-16 18:54:56 +01:00
Rémi Verschelde
2070b80fc0
Merge pull request #12966 from SaracenOne/convcol
Added 'convcol' flag for importing meshes as convex collision
2017-11-16 16:38:38 +01:00
Roy Berube
b361f371f1 Cleanup of Visual Studio project generation (#12929)
Visual studio project file creation had some problems. Files with c extension were listed with cpp extension. Some include files that did not exist were added to the project.
This change ensures a file exists before adding it to the project.
2017-11-16 16:37:02 +01:00
Saracen
f8a95499bd Added 'convcol' flag for importing meshes as convex collision and completed code
for parsing collision flags to mesh data.
2017-11-16 13:06:30 +00:00
Juan Linietsky
5fa7cf35b2
Merge pull request #12960 from tagcup/fix_gi_emission_energy
Fix energy not affecting emissive texture in GI baker.
2017-11-16 08:41:59 -03:00
Saracen
e4201734df Add manual overrides for focus_next and focus_previous on controls similar to what can already be done with focus neighbours. 2017-11-16 09:45:52 +00:00
Rémi Verschelde
3002130a6d
Merge pull request #12957 from bojidar-bg/12928-numeric-underscores
Allow underscores in GDScript numeric literals
2017-11-16 09:04:31 +01:00
Juan Linietsky
dc463e1e42 Add support for remote debug in scene tree. 2017-11-15 22:21:49 -03:00
Ferenc Arn
1980a54dbb Fix energy not affecting emissive texture in GI baker.
Also fix emission_tex being invalid always due to wrong reference type.

Fixes #10534.
2017-11-15 20:01:53 -05:00
Leon Krause
6b34f10ab1 Fix HTML5 HTTPClient includes 2017-11-15 23:02:36 +01:00
Rémi Verschelde
15a20f9746 Remove obsolete ButtonArray theming
ButtonArrays have been removed in 3.0.
[ci skip]
2017-11-15 22:53:38 +01:00
Rémi Verschelde
c7f7dd3e3e
Merge pull request #12954 from akien-mga/docs
Make module docs self-contained and various improvements
2017-11-15 21:54:21 +01:00
Bojidar Marinov
443ce6fef2
Allow underscores in GDScript numeric literals
Closes #12928
2017-11-15 22:53:08 +02:00
Rémi Verschelde
11e07d18bd doc: Sync classref with current source 2017-11-15 21:29:34 +01:00
Rémi Verschelde
ed2b66f023 Improve code style of generated headers 2017-11-15 21:29:34 +01:00
Rémi Verschelde
677e95d8d1 doc: Make all module docs self-contained 2017-11-15 21:29:33 +01:00
Rémi Verschelde
e7701bb2de doc: Rename "@Global Scope" to "@GlobalScope"
Spaces in filenames are evil.
2017-11-15 20:41:16 +01:00