25 Commits

Author SHA1 Message Date
Hugo Locurcio
06bd5b3ccb Fix false positives in codespell CI and fix reported typos
- Don't install codespell when building offline docs
  as it's not needed in that workflow.
2024-05-31 10:58:12 +02:00
Eric Lathrop
38f1683e7c Fix method names
Several referenced method names are missing the leading underscore.
2024-03-11 10:17:05 -04:00
Caiman
ef828fb837 Inspector plugin tutorial: update PackedScene.instance() ref
I noticed that the tutorial still says `instance()` instead of `instantiate()`, so I changed it to match the 4.x method name.
2024-01-26 04:31:24 +01:00
MannyC
3bcb5e76f3 inspector_plugins.rst: add new "wide" parameter to _parse_property
Godot 4.0 added a new parameter to EditorInspectorPlugin._parse_property.  This was updated in the C# version of the tutorial, but not the gdscript version

Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2023-10-11 15:04:01 +01:00
Max Hilbrunner
72c0af46b2 Snake-case .tscn, .gd and _on_* callbacks
Co-authored-by: Doug Thompson <s-git@dougthompson.co.uk>
2023-05-18 12:46:58 +02:00
Mark Wilson
872e5ff840 Fix C# issues in inspector-plugin tutorial (#7223)
* Fixed C# EditorInspectorPlugin _CanHandle parameter type

Updated Inspector Plugin tutorial to reflect that C#'s
EditorInspectorPlugin::_CanHandle() takes a GodotObject, not a
Variant.

* Eliminated horizontal scroll in C# for inspector-plugin tutorial

Put a line-break and indentation to avoid horizontal scrolling in
the displayed code.

* Fixed _ParseProperty() method signature and undeclared variable

Changed example code for EditorInspectorPlugin::_ParseProperty():
* Fixed method signature
* Use new enum type of parameter for comparison instead of int.
* Use "name" parameter as property-identifying argument to
AddPropertyEditor() instead of undeclared variable

* Fixed override method name in EditorProperty example

Updated example to use virtual method _UpdateProperty() instead of
non-virtual method UpdateProperty().
2023-04-26 18:50:51 +02:00
Raul Santos
b319da3f07 Update some C# examples for 4.0 (#6693)
* Update some C# examples

- Rename members that have been renamed in Godot's C# API for 4.0.
- Change `delta` parameter type to `double`.
- Ensure parameters match base declaration.
- Other minor code fixes.

---------

Co-authored-by: Paul Joannon <437025+paulloz@users.noreply.github.com>
2023-02-04 17:03:03 +01:00
Yuri Sizov
64a60696bf Pin additional build requirements to avoid syntax highlighting issues 2023-01-14 18:49:07 +03:00
Hana
9e90766a92 update c# class examples 2023-01-12 19:38:20 +01:00
Bartkk
363526018a Update inspector plugins documentation 2022-10-23 10:22:10 +00:00
Max Hilbrunner
99d3d0be12 Renames / fixes for Godot 4 2022-10-17 00:35:07 +02:00
Andrew Rublyov
057dfc2d67 Add missing C# samples for the "Inspector plugins" page (#5829) 2022-06-08 13:22:43 +02:00
Christian Wookey
6fcaed6497 Fixed an old-style .connect() call (#5772) 2022-04-29 12:19:48 +02:00
SnailRhymer
21246a9376 Update plugin tutorial to use @tool
Replaces instances of tool with @tool in plugin tutorial.
2022-01-27 01:00:02 +00:00
Aaron Franke
4060179184 Remove trailing space characters (#5251) 2021-09-13 14:52:39 +02:00
Yuri Sizov
9d7fc8c603 Fix a misleading statement in the inspector plugins tutorial 2021-08-06 21:10:46 +03:00
Martin
dc0fca892a Fix GDScript example formating
First 3 lines of actual code appeared in the tab title instead of in the code block.
2021-06-09 12:50:39 +02:00
Nathan Lovato
09d4edb0e1 Edit inspector_plugins.rst 2020-10-10 13:06:57 -06:00
Yuri Sizov
7bdb5c41a8 Improve Inspector plugin tutorial with a better example 2020-09-09 19:31:31 +03:00
Michael Alexsander
1f6d3995e4 Apply general code formatting to some pages in the tutorial section 2020-07-08 23:02:14 -03:00
Austen McRae
1537e66c8c Expand Inspector Plugin tutorial (#3024)
As a first-time creator of the inspector plugin, it took
a while to actually understand exactly what's happening and
what's needed, so I've expanded with the information that I felt would
help make the tutorial easier for people doing their first foray into
making one of these plugins.
2020-03-03 22:17:39 +01:00
John Mick
4e5ea7e1af Possible typo (#3156)
Tutorial for 3.2 suggests calling 'add_custom_property_editor' which is not a member of EditorInspectorPlugin; however 'add_property_editor' does exist.
2020-03-03 20:11:40 +01:00
Rémi Verschelde
3825851979 Proofread Inspector plugins and Visual Shader plugins tutorials 2019-10-29 10:38:51 +01:00
Mark Riedesel
0f2be0b07f Add proper extends / method calls to inspector plugins tutorial 2019-10-20 11:59:38 -04:00
Juan Linietsky
79f57c976e Add documentation on inspector plugins. 2019-04-23 17:00:40 -03:00