Commit Graph

425 Commits

Author SHA1 Message Date
Pāvels Nadtočajevs 903e850390 Fix EditorHelpBitTooltip in single window mode. 2025-04-07 10:38:10 +03:00
Pāvels Nadtočajevs e47207ad16 Fix updating editor icons on translation change. 2025-03-28 15:04:32 +02:00
Thaddeus Crews f09ee0171a Style: Begin integrating simple .clangd fixes 2025-03-22 13:24:35 -05:00
kobewi 6f25babd6b Remove empty constructors and destructors from editor/ 2025-03-17 21:20:02 +01:00
Thaddeus Crews c1b7865ae9 Merge pull request #103557 from aaronfranke/godot-version-defines
Rename version defines to `GODOT_VERSION_*` to match GDExtension godot-cpp
2025-03-13 08:57:42 -05:00
Thaddeus Crews 0cc7e2c27a Merge pull request #95821 from anvilfolk/cache-gd-docs
Scripting: Fix script docs not being searchable without manually recompiling scripts
2025-03-13 08:57:40 -05:00
Lars Pettersson d2d02d0ea8 EditorNode: Add function to load file as scene or resource 2025-03-12 23:59:48 +01:00
Aaron Franke 97ee05e9b7 Rename version defines to GODOT_VERSION_* to match GDExtension godot-cpp 2025-03-12 11:11:38 -07:00
ocean 72045c8306 Scripting: Add script documentation cache to project
This PR adds a script documentation cache in the project folder.
It is loaded at alongside native documentation caches. This makes
scripts fully accessible through Search Help, including their
members, etc, right from project start, without having to compile
every single script.

Co-authored-by: Hilderin <81109165+Hilderin@users.noreply.github.com>
2025-03-12 13:44:41 -04:00
Thaddeus Crews 6c4f17db1a Core: Avoid including modules_enabled in headers 2025-03-11 19:42:13 -05:00
A Thousand Ships 331a43a9d8 Add String::remove_char(s) methods for performance and convenience 2025-03-10 13:19:28 +01:00
A Thousand Ships 466590d0ec Use get_slicec instead of get_slice for single character splitters 2025-03-08 20:36:37 +01:00
A Thousand Ships 5113022dfe Clean up some uses of String::substr
Cases where the end position is either equvalent to the default or past
the end of the string.
2025-03-07 14:50:38 +01:00
Rémi Verschelde 7c4f2b6588 EditorHelpBit: Workaround crash renaming named class inheriting @tool class
This only addresses the symptom, not the root cause of the problem.

In the MRP of the linked issue, the parent class seems to not be found in DocData
after renaming its child class, which seems weird. Force opening the docs of the
parent class can work it around, so we seem to have inconsistent state.

Changed the same code in EditorHelp for good measure.

Fixes #102718.
2025-02-12 15:59:57 +01:00
Marius Hanl 4d488e8cc9 Fix Escape does not work the first time when pressed at the Find(Replace)Bar 2025-02-02 18:31:12 +01:00
Lars Pettersson e813d3021b Show tooltips for res:// and uid:// strings in ScriptEditor 2025-01-14 15:29:41 +01:00
Rémi Verschelde adab1518a5 Merge pull request #99451 from Mickeon/doc-help-copy-to-clipboard
Show editor toaster when copying `[codeblock]` in class reference
2025-01-12 18:07:02 +01:00
ydeltastar 64788069a0 Fix scroll to symbol's documentation 2024-12-27 17:12:05 -03:00
Micky d35d1fcf60 Show editor toaster when copying [codeblock] in class reference 2024-12-20 00:09:37 +01:00
Danil Alexeev 80d11500b5 Code Editor: Add documentation tooltips 2024-12-15 10:51:33 +03:00
Hilderin 4e19ab8afe Fix connecting a signal with a double click is too difficult
Co-authored-by: Danil Alexeev <dalexeev12@yandex.ru>
2024-12-14 16:18:34 +03:00
Lukas Tenbrink b5c31ebb41 Add contains_char() for single-character 'contains' calls. 2024-12-06 20:23:35 +01:00
Micky b22bb4d75f Improve appearance of external links in built-in docs 2024-12-02 17:13:20 +01:00
A Thousand Ships af56d6e8e8 Use SceneStringName in more places 2024-12-02 14:39:16 +01:00
Rémi Verschelde 05b80ae0a1 Merge pull request #96449 from Maran23/editor-help-scroll-fix
Fix jumping to editor help does not scroll correctly sometimes
2024-11-29 22:45:51 +01:00
Thaddeus Crews 91bd80de51 Merge pull request #98160 from Rindbee/change-the-parent-node-of-EditorHelpBitTooltip
Add `EditorHelpBitTooltip` as a child of `p_target` to avoid jitter
2024-11-18 09:23:52 -06:00
A Thousand Ships 68f638cf02 Use (r)find_char instead of (r)find for single characters 2024-11-17 10:02:18 +01:00
Aaron Franke 562c666e3d Rename internal Button icon to button_icon to match exposed methods 2024-10-29 16:23:03 -07:00
Marius Hanl af92685445 Fix jumping to editor help does not scroll correctly sometimes 2024-10-18 18:50:21 +02:00
风青山 bc30bb4fc0 Add EditorHelpBitTooltip as a child of p_target to avoid jitter
Previously the tooltip popup was added as a child of the `p_target`'s
viewport (usually the root window), which caused the root window to
recalculate the window size, that could cause jitter issues on i3wm
if the actual width of the root window was less than `1024`.
2024-10-14 11:17:08 +08:00
A Thousand Ships dd6443193c [Editor] Expose more editor settings to documentation
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
2024-09-12 15:34:49 +02:00
kit 5e1c9d68aa Extract editor main screen 2024-09-09 11:06:18 -04:00
Rémi Verschelde 0b4ae20156 Merge pull request #78656 from Repiteo/typed-dictionary
Implement typed dictionaries
2024-09-06 22:38:13 +02:00
Thaddeus Crews 9853a69144 Implement typed dictionaries 2024-09-04 10:27:26 -05:00
Danil Alexeev 2dd043d1f6 Docs: Add missing deprecated/experimental tag support for theme items 2024-09-04 17:49:05 +03:00
Rémi Verschelde a041772ecf Merge pull request #93940 from Mickeon/deprecate_RichTextLabel_is_ready
Add RichTextLabel `is_finished()`, deprecate `is_ready()`
2024-08-26 23:28:42 +02:00
Micky edb3d99942 Add RichTextLabel is_finished(), deprecate is_ready() 2024-08-16 20:08:38 +02:00
Mikael Hermansson 6435112e97 Fix use-after-free in EditorHelp 2024-08-09 02:42:58 +02:00
Hugo Locurcio 789f3135ad Split editor documentation cache by minor version
This avoids conflicts with other editor versions and ensures the
cache remains valid if you regularly switch between editor versions.
2024-07-31 17:17:45 +02:00
Danil Alexeev ec2f9355f5 Editor: Fix EditorHelpBitTooltip for Signals dock 2024-07-05 16:08:35 +03:00
A Thousand Ships fbb879debd [Scene] Add SceneStringNames::text/value_changed 2024-06-19 09:44:38 +02:00
A Thousand Ships d519715d94 [Scene] Add SceneStringNames::font(_size/_color) 2024-06-18 17:24:27 +02:00
Danil Alexeev 794099217e Editor: Fix EditorHelpBit title height is wrong on initialization 2024-06-12 11:08:28 +03:00
A Thousand Ships cade5b88d9 Use CoreStringNames::normal in more places 2024-05-30 22:57:54 +02:00
Rémi Verschelde 21810cad38 Merge pull request #92457 from YeldhamDev/extreme_corner_case_but_still
Set `doc_name` even when categories are hidden in the inspector
2024-05-29 11:19:57 +02:00
Rémi Verschelde 4d255a1b50 Merge pull request #92454 from jsjtxietian/multi-connect
Prevent connect `scroll_to_paragraph` multiple times to `class_desc`
2024-05-29 11:19:54 +02:00
jsjtxietian b33811d46b Prevent connect scroll_to_paragraph multiple times to class_desc 2024-05-29 12:58:08 +08:00
Michael Alexsander 1bfcb6ee65 Set doc_name even when categories are hidden in the inspector
Otherwise, tooltips will fail to fetch descriptions.
2024-05-28 15:44:22 -03:00
A Thousand Ships 4ed62665a2 Replace .bind(...).call_deferred() with .call_deferred(...) 2024-05-27 13:29:57 +02:00
Rémi Verschelde 6761923f4f Merge pull request #90716 from dalexeev/gds-fix-export-annotation-issues
GDScript: Fix some export annotation issues
2024-05-19 11:21:00 +02:00