Commit graph

143 commits

Author SHA1 Message Date
Rémi Verschelde e4213e66b2 Add missing copyright headers and fix formatting
Using `misc/scripts/fix_headers.py` on all Godot files.
Some missing header guards were added, and the header inclusion order
was fixed in the Bullet module.
2018-01-05 01:22:23 +01:00
Rémi Verschelde b997773b26
Merge pull request #15033 from poke1024/shortcuts-mac
Alternative keyboard shortcuts for macOS
2018-01-04 14:56:29 +01:00
Rémi Verschelde edd78d54c4
Merge pull request #15073 from volzhs/editor-custom-font
Use .ttf or .otf file for editor custom font
2018-01-03 10:44:19 +01:00
Rémi Verschelde b50a9114b1 Update copyright statements to 2018
Happy new year to the wonderful Godot community!
2018-01-01 14:40:47 +01:00
Noshyaar 2154f82302
Merge pull request #15152 from poke1024/editor-settings-change
Only send editor "settings_changed" if actually changed
2018-01-01 18:48:33 +07:00
Bernhard Liebl 62f3af9de1 Only send editor "settings_changed" if actually changed. 2017-12-29 11:03:29 +01:00
volzhs 4b0f075e95 Respect text editor highlighting color changes
Fix #14838
2017-12-28 23:49:15 +09:00
volzhs 2c8ebab93b Use .ttf or .otf file for editor custom font 2017-12-27 03:14:48 +09:00
Bernhard Liebl 3f122672a2 On macOS, change some default editor shortcuts 2017-12-26 11:24:12 +01:00
Noshyaar deda8974df
Merge pull request #14853 from MattUV/context-menu
Adds an option to move cursor with right click in TextEdit
2017-12-25 08:40:20 +07:00
Rémi Verschelde 03823f12c5 EditorSettings: Move scene tab options to their dedicated category
Fixes #14870.
2017-12-20 19:41:02 +01:00
MattUV a55870cd81 Adds an option to move cursor with right click in TextEdit
Fixes #14832
- Added an option in the editor settings/cursor to make the cursor move with right click.
- If the option is activated (true by default), a right click will move the cursor before displaying context menu.
 - If there is a selection, a right click on it will keep it selected, a right click outside it will unselect it.
 - The option is available in textEdit via an inspector property (or via GDScript): caret_moving_by_right_click
 - The option is available in the script editor and the shader editor via the editor settings
 - The documentation has been updated with the new property, and a few other entries in TextEdit.xml.
2017-12-20 09:01:09 +01:00
Rémi Verschelde f7238de9d4
Merge pull request #13994 from ISylvox/caret-blink
Set Caret Blinking Enabled by Default
2017-12-09 15:15:19 +01:00
Paulb23 48ad133cf9 Changed current line draw order and added code folding color 2017-12-07 19:17:43 +00:00
Gilles Roudiere 7b02f5591d Moves the guides colors to editor settings 2017-12-05 21:44:52 +01:00
Indah Sylvia 0102c861da Caret blinking is now enabled by default 2017-12-05 16:28:00 +07:00
Daniel J. Ramirez 4b80bc3303 Fixed editor settings disappearing (caused by uninitialized variable). 2017-11-29 22:04:41 -06:00
Juan Linietsky 22415e5a31
Merge pull request #12572 from RandomShaper/onion-skinning
Onion skinning
2017-11-26 15:13:35 -03:00
Hugo Locurcio e3fc6fcaa6
Tweak the default editor camera settings
- The default FOV is now 70
- The default Z-near plane is now at 0.05 meters
2017-11-25 23:03:26 +01:00
Pedro J. Estébanez d0e09d84f0 Implement onion skinning for the animation editor 2017-11-25 13:25:14 +01:00
Juan Linietsky bc2e8d99e5 Made Vector::ptrw explicit for writing, compiler was sometimes using the wrong function,
leading to unnecesary copy on writes and reduced performance.
2017-11-25 00:09:40 -03:00
Rémi Verschelde 5ff84070ca
Merge pull request #13119 from YeldhamDev/export_path
Fixed not being able to use the "Open a Directory" dialog with the "Default Export Path" setting
2017-11-21 00:16:58 +01:00
Michael Alexsander Silva Dias 3fc684a111 Fixed not being able to use the "Open a Directory" dialog with the "Default Export Path" setting. 2017-11-20 21:10:42 -02:00
Ricardo Maes 77f21b63e9 Add simple spacebar panning setting for 2D editor 2017-11-20 22:53:14 +01:00
Daniel J. Ramirez e07b9a8920 Fixed runtime EDITOR_DEFs being dropped. 2017-11-20 11:53:44 -06:00
Rémi Verschelde d3889ad1b4 EditorSettings: Dehardcode major in config file name
It was readded in panic after I mistakenly removed the hardcoded "-3" in #12988,
forgetting that Windows would still use the same path and thus conflict with 2.1
(contrarily to macOS and Linux).
2017-11-20 07:40:06 +01:00
sersoong fcbec6331c Change editor_settings.tres to editor_settings-3.tres 2017-11-20 11:02:34 +08:00
Rémi Verschelde ecf80fbbba
Merge pull request #12988 from akien-mga/xdg-home-paths
Add support for XDG Base Directory spec
2017-11-20 00:42:51 +01:00
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
Ian d350f506a0 TextEdit code folding 2017-11-17 21:49:43 -05:00
Daniel J. Ramirez 7154baa010 Avoid spamming the console for editor settings initial sets. 2017-11-17 14:23:44 -06: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
Daniel J. Ramirez c57fc8ee7d Fixed editor settings disappearing.
Some items that are no longer defined may disappear, but thats expected i guess.
2017-11-09 22:10:48 -06:00
Rémi Verschelde 0438f4875d Some more harmonization of EditorSettings code 2017-10-31 23:36:03 +01:00
Rémi Verschelde 2d5de0b185 Reorder EditorSettings code for better legibility
No functional change, only moving stuff around.
2017-10-31 15:16:37 +01:00
Rémi Verschelde 981ef0be59 Add support for non-ISO locale identifiers via renames map
Windows apparently uses "no" for Norwegian Bokmål, even though its
ISO 639-1 language code is "nb"... Closes #12479.

Also did some non-intrusive cleanup while at it.
2017-10-30 00:02:55 +01:00
Rémi Verschelde 4af59c5b3f Merge pull request #12340 from homer666/orbit-inertia-toned-down
Reduce default orbit inertia value

[ci skip]
2017-10-24 09:11:50 +02:00
homer666 0be1c893b0 Reduce default orbit inertia value 2017-10-23 16:18:15 +11:00
Paulb23 45670df354 Added setting to toggle current line highlighting 2017-10-22 13:42:08 +01:00
Marc Gilleron de42e53671 Freelook interpolation fixes
- Smooth freelook position more explicitely
- Don't let orbit zoom produce translation when it shouldn't
- Make base speed framerate-independent (and tweaked setting for that)
- Don't rely on camera for calculations because it no longer reflect immediate state
- Avoid potential divide-by-zero with zoom inertia
- Make speed/zoom relation optional (if enabled, speed is adjusted from zoom)
- Never change zoom distance when freelook is active
- Orbit inertia also applies on freelook
2017-10-10 02:38:17 +02:00
Poommetee Ketson 59def13b74 EditorSettings: remove duplicate set_favorite_dirs 2017-10-06 20:22:05 +07:00
Juan Linietsky 3d87b70f7a Added the set/get_setting function in Editor/Project settings. Renamed has() to has_setting. Fixes #11844 2017-10-05 15:34:34 -03:00
Poommetee Ketson 34ea271380 Merge pull request #11646 from djrm/pr_visual_improvements
Several visual improvements.
2017-10-02 23:49:44 +07:00
Andreas Haas 20eb17a685
EditorSettings: Move interface/ properties to interface/editor
Fixes inconsistent behaviour where clicking on the "Interface"
in the Editor Settings wouldn't collapse the category as is the
case for all the other categories.
2017-09-29 18:52:56 +02:00
Daniel J. Ramirez 15986ea343 Several visual improvements.
Added proper label sizing
Improved text editor status bar
Fixed some issues with ItemList and also some style fixes
Added background to color picker samples (the mrcdk fix)
Fixed slider ticks.
Added VS breakpoint and error styleboxes.
2017-09-28 15:00:43 -05:00
volzhs 3e0d18b9c0 Update theme property respectively 2017-09-26 20:08:25 +09:00
Daniel J. Ramirez e2861a3b7c Removed transparency from spatial editor grid. 2017-09-25 21:45:53 -05:00
Daniel J. Ramirez 5676c42ae0 Added the ability to revert to initial value in editor settings. 2017-09-24 22:29:59 -05:00
Juan Linietsky d3ea92257d -Fixed redraw always on 3D viewprot bug
-Changed manipulation inertia default values. Do not touch them again or I'll cut your fingers and eat them.
2017-09-23 17:28:28 -03:00