summaryrefslogtreecommitdiff
path: root/editor/editor_settings.cpp
AgeCommit message (Collapse)Author
2022-05-19Use suffixes for units in nodes and resourcesAaron Franke
2022-05-19Use range iterators for RBSet in most casesAaron Record
2022-05-16Merge pull request #60463 from Geometror/improve-vs-1Rémi Verschelde
2022-05-16Replace most uses of Map by HashMapreduz
* Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
2022-05-12Add a new HashMap implementationreduz
Adds a new, cleaned up, HashMap implementation. * Uses Robin Hood Hashing (https://en.wikipedia.org/wiki/Hash_table#Robin_Hood_hashing). * Keeps elements in a double linked list for simpler, ordered, iteration. * Allows keeping iterators for later use in removal (Unlike Map<>, it does not do much for performance vs keeping the key, but helps replace old code). * Uses a more modern C++ iterator API, deprecates the old one. * Supports custom allocator (in case there is a wish to use a paged one). This class aims to unify all the associative template usage and replace it by this one: * Map<> (whereas key order does not matter, which is 99% of cases) * HashMap<> * OrderedHashMap<> * OAHashMap<>
2022-04-30Improve the VisualShader/VisualScript editor UIHendrik Brucker
2022-04-20Avoid setting sub-window or started project window positions, if it's ↵bruvzg
impossible to get screen rect.
2022-04-12Merge pull request #54740 from ↵Rémi Verschelde
LightningAA/project-manager-sort-by-most-recent-as-default
2022-04-11Make FileAccess and DirAccess classes reference counted.bruvzg
2022-04-06Fix some issues found by cppcheck.bruvzg
2022-04-04Merge pull request #59866 from m4gr3d/update_default_display_scale_mainRémi Verschelde
2022-04-04Update the editor display scale based on the device's scaled densityFredia Huya-Kouadio
2022-04-03Fix TextEdit v_scroll_speed invalid values breaks wheel scrollingjmb462
2022-03-27Mark Editor SSL Certificates setting as require restartHaoyu Qiu
2022-03-25Convert the editor and default theme fonts to WOFF2 format to save space.bruvzg
2022-03-21Merge pull request #59373 from bruvzg/fix_editor_font_changeRémi Verschelde
[Editor] Fix reloading editor theme on font / font size setting change.
2022-03-21Merge pull request #59367 from Calinou/script-editor-decrease-line-spacingRémi Verschelde
Decrease the default line spacing in the script editor
2022-03-21Merge pull request #59366 from Calinou/editor-pseudolocalization-move-settingRémi Verschelde
Move the pseudolocalization editor setting to a debug section
2022-03-21[Editor] Fix reloading editor theme on font / font size setting change.bruvzg
2022-03-21Decrease the default line spacing in the script editorHugo Locurcio
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-21Move the pseudolocalization editor setting to a debug sectionHugo Locurcio
This moves the setting in question to the bottom of the Editor Settings, which makes it less likely to be accidentally enabled.
2022-03-20Fix getaddrinfo failed with undefined proxy configTais P. Hansen
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-13Improve scene tab close button optionskobewi
2022-03-12Initialize bools in the headers in editorAaron Franke
2022-03-11Convert uses of `DirAccess *` to `DirAccessRef` to prevent memleaksRémi Verschelde
`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-09Replace `TabBar`'s `min_width` with `max_tab_width` and expose itMichael Alexsander
2022-03-06Remove duplicate editor settings definitionskobewi
2022-03-05Added ability to retrieve array of changed settings changed when it is saved.Eric M
2022-02-15Editor: Cleanup some includes dependenciesRémi Verschelde
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-15Merge pull request #57877 from bruvzg/subpixel_gl_posRémi Verschelde
2022-02-14Improve completion scroll bar visibility in the script editorHugo Locurcio
This makes the scroll bar bar thicker and more opaque (roughly matching the editor theme's scroll bar by default).
2022-02-12Add sub-pixel glyph positioning support.bruvzg
2022-02-12Use EditorFileDialog instead of FileDialog in the project managerHendrik Brucker
2022-02-02Vectors: Use clear() and has().Anilforextra
Use clear() instead of resize(0). Use has() instead of "find(p_val) != -1".
2022-01-24Fix translation with multiple sources for the same language.bruvzg
Remove unnecessary locale length checks. Add "C" -> "en" locale remap.
2022-01-23Minor tweaks and fixes to panningkobewi
2022-01-21Add ViewPanner to 2D editorkobewi
2022-01-19Fix locale always selecting translation instead of "en", when no match found.bruvzg
2022-01-18Improve locale detection.bruvzg
Use separate language, script and country lists. Add locale selection dialog and property hint.
2022-01-17Merge pull request #56012 from bruvzg/wt🤎4Rémi Verschelde
2022-01-08Display automatically chosen value for the internal toast editor settingHugo Locurcio
2022-01-03Update copyright statements to 2022Rémi Verschelde
Happy new year to the wonderful Godot community!
2022-01-03Merge pull request #53957 from fabriceci/new-template-workflowRémi Verschelde
2022-01-02Improve editor template workflowfabriceci
Co-Authored-By: jmb462 <jmb462@gmail.com>
2022-01-02Fix various typosluz paz
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
2021-12-18[Windows] Improve console handling and execute/create_process.bruvzg
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-18Fix font preview text color on light backgroundHaoyu Qiu
2021-12-16Make `--doctool` locale awareHaoyu Qiu
* 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-09Replace String comparisons with "", String() to is_empty()Nathan Franke
Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
2021-11-12Use "enum class" for input enumsAaron Franke