Commit Graph

272 Commits

Author SHA1 Message Date
666d7c030b [VisualShader] Fix and improve editor state persistence 2025-06-14 13:10:17 +02:00
a874863c46 Improve zoom performance in Script and Shader editors 2025-05-08 19:33:21 -04:00
694d034d5b Rename editor "File" MenuOption enums for clarity 2025-04-30 16:32:11 +02:00
c019b76523 Remove WinAPI #undef hacks needed for mingw-std-threads
Instead, we rename the conflicting symbols.
2025-04-29 14:24:03 +02:00
7b9c5122fa Merge pull request #105183 from lodetrick/shader-ui-shuffle
Make shader editor menu position consistent with script editor
2025-04-11 09:51:14 -05:00
94282d88f9 Core: Use Math namespace for constants 2025-04-10 16:29:30 -05:00
07c91e80f6 Consolidate Shader Menu in plugin 2025-04-09 22:53:07 -07:00
e8eeccebcb Unify Scripts Panel naming for the script and shader editors
Both use the same shortcut and action, so it makes sense to call it
a Files panel as opposed to a Scripts panel.
2025-04-09 01:17:36 +02:00
302fa831cc Initial editor accessibility. 2025-04-08 20:25:48 +03:00
b983a05806 Re-organize UI in the shader editor 2025-04-05 13:12:59 +03:00
4f4031a675 Replace size() == 0 with is_empty(). 2025-04-02 19:18:43 +08:00
6f25babd6b Remove empty constructors and destructors from editor/ 2025-03-17 21:20:02 +01:00
165fdce84e Merge pull request #102709 from KoBeWi/repeatranslations2
Split repeated translation for floating windows
2025-03-11 16:53:50 -05:00
c1b08dda36 Don't save unnecessarily with save_before_running 2025-03-07 19:14:50 +01:00
cb918cc817 Add custom minimum size for shader tabs 2025-02-14 22:40:53 +03:00
3448fe6c71 Split repeated translation for floating windows 2025-02-11 14:51:09 +01:00
a1846b27ea Improve use of Ref.is_null/valid
Use `is_null` over `!is_valid` and vice versa.
2024-12-23 16:35:02 -05:00
f241c1fda0 Remove unused header in editor.
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2024-12-24 00:40:38 +08:00
bf4e5cca3f Make editor's shortcut names translated on-site 2024-12-18 13:00:30 +08:00
0ff5d5fd04 Add theme type variations for secondary Trees and ItemLists 2024-11-19 18:33:30 +04:00
12d2c05936 Add "Inspect Native Shader Code" to shader resource and shader editor 2024-10-08 11:02:45 -07:00
14321b8ed5 Set auto translate mode for drag previews
- Controls
  - `LineEdit`, `TextEdit`: Always disabled since it's dragging user input.
  - `TabBar`: Use the same auto translate mode as the node.
  - `RichTextLabel`: Always disable since auto translation is done
    differently from other controls (selection text you get
    programmatically is always after auto translation).
- Editor
  - Disable drag preview auto translation if the text is user input,
    filename, or class name.
  - Also disabled unexpected auto translation for audio bus effect names.
2024-09-19 19:21:29 +08:00
8a7713eb2d Fix inconsistency in FileSystem naming in shader editor menu 2024-09-18 10:59:31 +08:00
610d98f3ea Make script list default wider, minimum narrower
Give more space to the script lists by default, but makes minimum smaller than it was. Unifies script editor and shader editor to use same values.
2024-09-12 14:51:22 +03:00
edba5edcb8 Fix Make floating tooltip mention screen selector 2024-09-02 00:00:14 +02:00
b4c92dbd0e Refactor toggling script list 2024-08-28 17:00:51 +02:00
8a087c7ec4 Add context menu for shader editor list 2024-08-27 01:18:03 -04:00
5d7f87603d Add several shortcuts for text shader editor 2024-08-26 11:38:58 +08:00
99e997ae15 Make shader language editors inherit the same base class 2024-08-15 15:12:39 -07:00
3be7aaa624 Update shader list after save gdshaderinc file 2024-07-26 18:07:00 +08:00
3bbbedc144 Fix visual shader not being updated when switching tabs 2024-06-20 13:37:16 +03:00
d9e2fc74c7 [Scene] Add SceneStringNames::item_selected 2024-06-19 09:39:05 +02:00
926afccbd8 [Scene] Add SceneStringNames::panel 2024-05-30 22:54:50 +02:00
755a0efbb6 [Scene] Add SceneStringNames::id_pressed 2024-05-30 22:54:04 +02:00
b4c1634b52 Implement trim_final_newlines functionality 2024-05-02 22:57:34 -04:00
8221e7546b Add editor shortcuts to toggle bottom panel visibility
Default shortcuts use the first or second letter of each word.

This also adds a new shortcut to toggle the last opened bottom panel.
On editor startup, this defaults to the first panel in the list
(which is the Output panel).
2024-03-05 15:53:15 +01:00
16bdd83ea4 Merge pull request #86705 from KoBeWi/resourception
Improve saving of built-in resources
2024-02-29 13:53:44 +01:00
4582ee1a0f Merge pull request #87760 from kitbdev/extract-bottom-dock
Extract BottomPanel from EditorNode
2024-02-23 22:18:50 +01:00
9281c441f6 Improved text editor status bar and zooming UX. 2024-02-21 17:33:16 -06:00
kit
eb6ca91ba6 Extract BottomPanel from EditorNode 2024-02-20 15:09:07 -05:00
dde5368dee [Editor] Add missing ellipses to menu options that open dialogs 2024-02-17 17:09:17 +01:00
7b42c24550 Make auto translation inheritable 2024-02-15 16:51:19 -03:00
04a930d9a6 Disable multi-window buttons instead of hiding them when support is unavailable
This is more explicit as for why this functionality isn't available
depending on editor settings and current platform.

This also exposes a `EditorInterface.is_multi_window_enabled()` method
so that editor plugins can easily query whether the editor is able and
expected to create multiple windows.
2024-01-27 19:38:39 +01:00
95b27fe8c7 Reorganize code related to editor theming
This change introduces a new EditorThemeManager class
to abstract theme generatio and its subroutines.

Logic related to EditorTheme, EditorColorMap, and editor
icons has been extracted into their respective files with
includes cleaned up.

All related files have been moved to a separate folder to
better scope them in the project. This includes relevant
generated files as well.
2024-01-16 11:57:45 +01:00
0e8f90f4c8 Update deferred calls to use Callables 2024-01-09 16:11:47 +01:00
5eb22a317d Merge pull request #83577 from DennisManaa/fix-translation-for-item-list
Add automatic translation of items to ItemList
2024-01-04 16:39:36 +01:00
6c390b620d Merge pull request #84445 from Rubonnek/add-const-references-clang-tidy
Add const references detected by clang-tidy
2024-01-04 14:25:33 +01:00
779d731940 Handle built-in shaders when closing scene 2024-01-02 16:00:11 +01:00
e534dbf53a Improve saving of built-in resources 2024-01-02 12:53:18 +01:00
a3cb1b096f Add const references detected by clang-tidy 2023-12-16 13:36:44 -05:00