Commit Graph

463 Commits

Author SHA1 Message Date
49176bc0fc Merge pull request #59373 from bruvzg/fix_editor_font_change
[Editor] Fix reloading editor theme on font / font size setting change.
2022-03-21 08:34:09 +01:00
d77d85d23e Merge pull request #59367 from Calinou/script-editor-decrease-line-spacing
Decrease the default line spacing in the script editor
2022-03-21 08:16:51 +01:00
fbd94dbe88 Merge pull request #59366 from Calinou/editor-pseudolocalization-move-setting
Move the pseudolocalization editor setting to a debug section
2022-03-21 08:13:42 +01:00
f80148e3d1 [Editor] Fix reloading editor theme on font / font size setting change. 2022-03-21 08:20:09 +02:00
6d4514c95e Decrease the default line spacing in the script editor
This brings the level of line spacing closer to what it was like
in Godot 3.x, which improves usability on small displays.

This also decreases the default line spacing for fixed-width texts
in the About dialog (license text).
2022-03-21 02:00:58 +01:00
3137487935 Move the pseudolocalization editor setting to a debug section
This moves the setting in question to the bottom of the Editor Settings,
which makes it less likely to be accidentally enabled.
2022-03-21 01:53:30 +01:00
394f04a2b4 Fix getaddrinfo failed with undefined proxy config
HTTPClientTCP expects proxy host to be empty or port to be -1 to ignore
the proxy. When getting the proxy config from the settings file, the
values will default to U"null" and 0, respectively, making HTTPClientTCP
to attempt to use the values as a proxy, which causes getaddrinfo to
fail looking up a "null" hostname.

Setting the default config values seems like a good approach to prevent
this issue.

Fixes #59037
2022-03-20 17:17:11 +01:00
c53a84fdfd Improve scene tab close button options 2022-03-13 02:14:32 +01:00
918b09cabc Initialize bools in the headers in editor 2022-03-12 13:34:06 -06:00
768f9422bc Convert uses of DirAccess * to DirAccessRef to prevent memleaks
`DirAccess *` needs to be deleted manually, and this is often forgotten
especially when doing early returns with `ERR_FAIL_COND`.
`DirAccessRef` is deleted automatically when it goes out of scope.

Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
2022-03-11 09:13:11 +01:00
182e038af5 Replace TabBar's min_width with max_tab_width and expose it 2022-03-09 01:48:18 -03:00
2057ea2883 Remove duplicate editor settings definitions 2022-03-06 22:05:49 +01:00
a0ef294ba5 Added ability to retrieve array of changed settings changed when it is saved. 2022-03-05 19:26:40 +10:00
11572c6e30 Editor: Cleanup some includes dependencies
Removes some unnecessary includes from `editor_node.h`, and instead add
those where they're used.

Removes unnecessary `editor_node.h` includes in various editor classes.

Renames `dynamicfont` to `dynamic_font` in a couple files.

Misc cleanup while jumping through that rabbit hole.
2022-02-15 14:54:15 +01:00
760a95e86a Merge pull request #57877 from bruvzg/subpixel_gl_pos 2022-02-15 13:58:38 +01:00
15244e55bd Improve completion scroll bar visibility in the script editor
This makes the scroll bar bar thicker and more opaque (roughly
matching the editor theme's scroll bar by default).
2022-02-14 16:49:08 +01:00
29199579f7 Add sub-pixel glyph positioning support. 2022-02-12 19:55:52 +02:00
77fb65debf Use EditorFileDialog instead of FileDialog in the project manager 2022-02-12 12:06:51 +01:00
fc27636999 Vectors: Use clear() and has().
Use clear() instead of resize(0).

Use has() instead of "find(p_val) != -1".
2022-02-02 00:11:09 +05:45
9456454109 Fix translation with multiple sources for the same language.
Remove unnecessary locale length checks.
Add "C" -> "en" locale remap.
2022-01-24 18:58:16 +02:00
98692d68c3 Minor tweaks and fixes to panning 2022-01-23 13:49:53 +01:00
74bfe88267 Add ViewPanner to 2D editor 2022-01-21 18:35:06 +01:00
de48d5101b Fix locale always selecting translation instead of "en", when no match found. 2022-01-19 16:46:48 +02:00
40c56ed410 Improve locale detection.
Use separate language, script and country lists.
Add locale selection dialog and property hint.
2022-01-18 14:30:00 +02:00
8bdef23f7f Merge pull request #56012 from bruvzg/wt🤎4 2022-01-17 13:26:15 +01:00
f0f1079ea4 Display automatically chosen value for the internal toast editor setting 2022-01-08 02:32:53 +01:00
fe52458154 Update copyright statements to 2022
Happy new year to the wonderful Godot community!
2022-01-03 21:27:34 +01:00
98b3ba1842 Merge pull request #53957 from fabriceci/new-template-workflow 2022-01-03 20:40:33 +01:00
9d5b807059 Improve editor template workflow
Co-Authored-By: jmb462 <jmb462@gmail.com>
2022-01-02 21:52:09 +01:00
a124f1effe Fix various typos
Found via ` codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,expct,fave,findn,gird,hist,inout,leapyear,lod,nd,numer,ois,ony,paket,seeked,sinc,switchs,te,uint,varn`
Update editor/import/resource_importer_layered_texture.cpp

Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update doc/classes/TileSetScenesCollectionSource.xml

Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update scene/gui/graph_edit.cpp

Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update scene/resources/animation.cpp

Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update scene/resources/animation.cpp

Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update scene/resources/animation.cpp

Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update scene/gui/rich_text_label.cpp

Co-authored-by: Raul Santos <raulsntos@gmail.com>
Revert previously committed change
2022-01-02 01:03:58 -05:00
ea5bb8b47d [Windows] Improve console handling and execute/create_process.
Always build with the GUI subsystem.
Redirect stdout and stderr output to the parent process console.
Use CreateProcessW for blocking `execute` calls with piped stdout and stderr (prevent console windows for popping up when used with the GUI subsystem build, and have more consistent behavior with `create_process`).
Add `open_console` argument to the `execute` and `create_process` to open a new console window.
Remove `interface/editor/hide_console_window` editor setting.
Remove `Toggle System Console` menu option.
Remove `set_console_visible` and `is_console_visible` functions.
2021-12-18 10:14:07 +02:00
1fb59d13c2 Fix font preview text color on light background 2021-12-18 00:34:28 +08:00
e4e4e475f8 Make --doctool locale aware
* Adds `indent(str)` to `String`:
    * Indent the (multiline) string with the given indentation.
    * This method is added in order to keep the translated XML correctly
      indented.
* Moves the loading of tool/doc translation into
  `editor/editor_translation.{h,cpp}`.
    * This will be used from both `EditorSettings` and the doc tool from
      `main`.
* Makes use of doc translation when generating XML class references, and
  setup the translation locale based on `-l LOCALE` CLI parameter.

The XML class reference won't be translated if `-l LOCALE` parameter is
not given, or when it's `-l en`.
2021-12-16 17:49:22 +08:00
49403cbfa0 Replace String comparisons with "", String() to is_empty()
Also:
- Adds two stress tests to test_string.h
- Changes to .empty() on std::strings
2021-12-09 04:48:38 -06:00
3c0fdcc8ac Use "enum class" for input enums 2021-11-12 15:37:54 -06:00
c012fbc8b2 Rename PROPERTY_USAGE_NOEDITOR to PROPERTY_USAGE_NO_EDITOR
This is consistent with other constants that include `NO`,
such as `PROPERTY_HINT_COLOR_NO_ALPHA`.
2021-11-03 23:06:17 +01:00
4387f9645b Merge pull request #52940 from groud/toast_notification 2021-10-19 09:57:13 +02:00
7e435fa841 Fixed shortcut saving and 'original' comparisons 2021-10-15 20:39:38 +10:00
0587e5e018 Implement toast notifications in the editor 2021-10-14 13:30:54 +02:00
8f227e9da3 Merge pull request #51413 from KoBeWi/🚗 2021-10-04 20:31:47 +02:00
ad30b0a8dd Allow shortcuts to have any number of bindings. Updated UI as required. 2021-10-01 18:04:28 +10:00
c63b18507d Use range iterators for Map 2021-09-30 15:09:12 -06:00
6596c7bdc2 Add TextFile support across the editor 2021-09-30 13:29:29 +01:00
3143e7df69 Add history navigation in the script editor using extra mouse buttons
This feature is enabled by default, but it can be disabled in the editor
settings in case it interferes with other uses of the extra buttons
(such as push-to-talk in a VoIP program).
2021-09-25 13:33:07 +02:00
726b826b31 Merge pull request #52901 from nonunknown/master 2021-09-21 21:04:52 +02:00
5489f43844 Fix alpha typo in code completion color 2021-09-21 12:59:01 -03:00
6b65092c57 Added ability to override shortcut definitions for OSX (remove preprocessor defines) 2021-09-22 00:09:57 +10:00
28b7c1be80 Improve implementation of builtin action overrides 2021-09-21 22:25:31 +10:00
e2718b7717 Tweak the 3D editor inertia defaults for better responsiveness
The default orbit sensitivity was decreased to account for this change.
Rotational inertia (orbit + freelook) was disabled by default due to
known issues.

This also removes the need for separate manipulation inertia settings,
as the default settings are more responsive.
2021-09-20 16:32:37 +02:00
ca801f833f Add and use macros for defining editor settings with hint information 2021-09-15 14:19:58 -05:00