Commit Graph
110 Commits
Author SHA1 Message Date
The Tophat Demon 5aa58b07ce Corrected sample code in import_plugins.rst
The sample code listed the function ``get_import_options`` when it most likely meant ``_get_import_options`` (with an underscore in front). Some of the sample code also used the outdated File API instead of the FileAccess API.

Corrected more function names. Updated parameters for _get_import_options and _get_preset_name in sample code.
2023-05-09 08:29:52 -05:00
Hana - Piralein ef3b44ef4e update images and related information 2023-05-08 21:22:06 +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
Mark Wilson 93922aaa8c Fixed C# file-path strings for example plugin resources
The example (tutorial) plugin resides in an addons/my_custom_node
subdirectory of its project. The C# example code uses the same
relative path structure for a custom script and icon as the
GDScript example. These paths cause errors when the user activates
the plugin, as Godot looks for the resources in the root directory
of the project. This change fixes the errors by using the fully
qualified "res://" path to the resources in the C# example code.
2023-04-20 00:42:08 -04:00
Kasper Frandsen 69e8f24fdd docs: fix for File -> FileAccess change 2023-03-21 15:17:09 +00:00
Yuri Sizov 978a13bb0a Mark potentially outdated pages with a WIP warning 2023-02-26 14:21:15 +01:00
Yuri Sizov 4e9b3ab73b Merge pull request #6717 from Flavelius/patch-1
Fix wrong registration method names for 3D gizmo plugins
2023-02-04 22:17:37 +03:00
Raul SantosandPaul Joannon 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
Julien Winning 0f5a516a0f Update 3d_gizmos.rst
As mentioned here https://github.com/godotengine/godot-docs/issues/6716
add/remove_node3d_gizmo_plugin is the wrong method name. But i'm not sure if it intentionally changed to add/remove_node_3d_gizmo_plugin.
Here are the adjustments anway in case it is intentional and going to stay that way.
2023-02-01 13:42:27 +01:00
Winston 9f6be55665 Use correct function names and arguments 2023-01-24 12:30:27 +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
AndrewPerson ac4995d01e Fixed incorrect Texture type in example 2022-12-30 15:37:30 +11:00
Bartkk 363526018a Update inspector plugins documentation 2022-10-23 10:22:10 +00:00
Jiri Suchan 4d8b50bb09 rename EditorSpatialGizmo* to EditorNode3DGizmo* 2022-10-18 09:00:11 +09:00
Yuri Rubinsky 56b65faf24 Fix incorrect input port in visual_shader_plugins.rst 2022-10-17 09:19:23 +03:00
Max Hilbrunner 99d3d0be12 Renames / fixes for Godot 4 2022-10-17 00:35:07 +02:00
Max Hilbrunner 6c13f5ba58 More Godot 4 renames and fixes (#6317)
* Move ImmediateGeometry -> ImmediateMesh

* More Godot 3 -> Godot 4 renames
2022-10-15 23:12:48 +02:00
Max Hilbrunner 198393eec7 More Godot 4 rename fixes (#6315)
* Spatial -> 3D, Transform, Quaternion

* File -> FileAccess

* Camera -> Camera3D

* Update references to MeshInstance and MultiMeshInstance

* ImmediateGeometry -> ImmediateMesh, misc renames
2022-10-15 20:54:47 +02:00
Max Hilbrunner c86881f7fa Merge pull request #6251 from SchultzenDK/master
Add C# for 'Making main screen plugins'
2022-10-11 08:10:50 +02:00
Max Hilbrunner 664723bf4e Merge pull request #6206 from Structed/patch-1
Replace call to non-existent function get_editor_main_control()
2022-10-04 15:47:30 +02:00
Martin Schultz 379250ba7e Add C# for 'Making main screen plugins' 2022-10-01 21:47:52 +02:00
Max Hilbrunner c9d41855e2 Merge pull request #6211 from Evanaellio/fix-tool-annotation
Fix references to the @tool annotation
2022-09-22 17:24:35 +02:00
Evanaellio 3cb674285e Fix references to the @tool annotation 2022-09-21 22:48:04 +02:00
Evanaellio bc35550dc5 Swap arguments of ResourceSaver.save() 2022-09-21 22:30:25 +02:00
Johannes Ebner 0269514bfb Replace call to non-existent function get_editor_main_control()
get_editor_interface().get_editor_main_control() no longer exists. `get_editor_main_control()` has been replaced with `get_editor_main_screen()`.

I changed all the occurrences in code, as well as adapted the text  describing this accordingly.
2022-09-20 23:05:26 +02:00
Raul Santos 39f488e62e Warn users about Activate now on C#
- Add a warning about enabling `Activate now` for C# plugins
- Add tabs to `Create Plugin` dialog values
2022-09-05 11:51:01 +02:00
Raul Santos 3b36a94d35 Update C# signal documentation
Updates C# signal documentation and code examples to the new API in 4.0
2022-08-26 15:59:43 +02:00
Max Hilbrunner 9cc34c72de Merge pull request #6103 from Calinou/making-plugins-register-autoload
Document registering an autoload when an editor plugin is enabled
2022-08-24 19:58:20 +02:00
Hugo Locurcio 9baaf4dc42 Document registering an autoload when an editor plugin is enabled 2022-08-24 19:33:01 +02:00
2dd9212352 Improve flow and remove banned words
Improves flow and removes banned words.

Co-authored-by: WakaJoekoe <48286673+WakaJoekoe@users.noreply.github.com>
Co-authored-by: Hugo Locurcio <Calinou@users.noreply.github.com>
Co-authored-by: skyace65 <trekie96@hotmail.com>
2022-08-24 19:24:00 +02:00
Loki McKay c9da1e8a37 Update instance() call to instantiate() in Making Plugins (#5917) 2022-07-08 20:07:33 +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
Dan Boorstein 601a110ec8 Update main screen plugin tutorial for 4.0 changes (#5749) 2022-04-08 18:39:04 +02:00
Bruno Garcia 1381983226 fix 'making_plugin' tutorial code snippet (#5585)
* Fix making plugin tutorial
2022-03-03 12:52:27 +01:00
Christian Winter 8322cff165 Fix missing underline in methods 2022-02-03 02:10:10 +01: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
Rémi Verschelde 9a05eef561 4.0: Convert Sprite references to Sprite2D
Some screenshots will need to be updated so that the scene structures shown
in screenshot fit what the code blocks are referring to.
2021-10-06 14:29:55 +02:00
Aaron Franke 5c7f653347 Optimize PNG and SVG images using oxipng and svgcleaner (#5254) 2021-09-14 17:50:17 +02: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
bd19917ea0 Draft: Remove "simple", "simply", "easy", and "just" from the docs (#4496)
* Various style edits

* Edit out "simple" when possible

Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
Co-authored-by: Clay John <claynjohn@gmail.com>
2021-07-11 14:38:53 +02:00
Florian Heide 154da0733a Update making_main_screen_plugins.rst
updated the function name from get_editor_viewport() to get_editor_main_control()
2021-07-03 23:04:56 +02: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
Rémi Verschelde 044b6a74f8 Cleanup uses of double spaces between words or after punctuation 2021-06-07 10:44:02 +02:00
Yuri Roubinsky f710754994 Replaced one screenshot to actual version in visual_shader_plugins.rst 2021-04-05 20:46:34 +03:00
Nathan Lovato 7e7df1cc03 Merge class_name docs from scripting_continued.rst into gdscript docs 2020-11-07 23:23:19 -06:00
Beuc e93159960a Make PerlinNoise3D accept scalars directly
The current code requires creating and plugging a Scalar node just to enter the value "10" (see current screenshot); with this change, the node, like existing Godot nodes, can take the scalar value directly within the PerlinNoise3D Node.
2020-10-13 18:11:50 +02:00
Nathan Lovato 1fc736e5ae Merge pull request #3867 from pycbouh/better-inspector-plugin
Improve Inspector plugin tutorial with a better example
2020-10-10 13:10:56 -06:00