Commit Graph

25 Commits

Author SHA1 Message Date
easterNday
f967e9e135 Fix C# main screen plugin example and document C# EditorInterface singleton (#9399)
* 🐞 fix(plugins): fix syntax errors

Correct the syntax errors in the plugin development section, specifically by modifying 'EditorInterface' to 'EditorInterface.Singleton' in the C# portion. It is imperative to utilize the singleton pattern here to ensure the plugin successfully compiles.

* 🐞 fix(different): ADD exceptions

Provide explanations for Singleton exceptions of `EditorInterface`
2024-12-10 11:08:19 -08:00
Hugo Locurcio
049eebc6f1 Use EditorInterface singleton in Making main screen plugins
This singleton replaces the now-deprecated `get_editor_interface()`
method in Godot 4.2.
2023-11-08 00:48:43 +01:00
Raul Santos
c457ab79ec 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.
- Follow our code style more closely.
- Other minor code fixes.
2023-05-18 13:14:05 +02: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
Yuri Sizov
978a13bb0a Mark potentially outdated pages with a WIP warning 2023-02-26 14:21:15 +01:00
Hana
9e90766a92 update c# class examples 2023-01-12 19:38:20 +01: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
Martin Schultz
379250ba7e Add C# for 'Making main screen plugins' 2022-10-01 21:47:52 +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
Max Hilbrunner
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
Dan Boorstein
601a110ec8 Update main screen plugin tutorial for 4.0 changes (#5749) 2022-04-08 18:39:04 +02: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
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
Michael Alexsander
58ff2e036a Fix some recent errors and styling (#3375) 2020-04-12 15:25:45 +02:00
Aaron Franke
81e2b78a69 Simplify the "Making main screen plugins" article 2020-03-25 14:12:59 -04:00
Aaron Franke
d160dae635 Update main screen plugin tutorial (#3232)
Add get_plugin_icon, add a link to the 2.5D demo projects, and make scripts conform to style guide (two lines between functions)
2020-03-03 20:19:59 +01:00
follower
f17a55db2e Use more standard terminology. Fix grammar.
Change to use node relationship terminology ("sibling") that is both more standard[0] & more inclusive.

Fix pluralisation (i.e. "Xs nodes" -> "X nodes").

[0] e.g. https://en.wikipedia.org/wiki/Tree_structure#Terminology_and_properties
2020-02-18 03:01:57 +13:00
Aaron Franke
0b1acc49a2 Mention size flag in main screen plugin tutorial
Also re-flow some of the text over lines and mention adding a Label.
2020-01-09 13:21:46 -05:00
PouleyKetchoupp
854185495c Fixed code tags for true/false/null and a few property references 2019-11-02 13:09:14 +01:00
wandomPewlin
2b4921b791 Adds underscore before on_Button_pressed()
so it matches the default name generated by the editor.
2019-09-23 14:31:21 +08:00
Hugo Locurcio
87d81b9d4a Fix various typos 2019-03-20 01:03:48 +01:00
CodeDarigan
7dd5e45090 Correct use of "queue_free" method
It was inversed.
2019-03-07 11:38:42 +00:00
Julian Murgia
aceef0bc04 Remove useless lines
Those came from an old version of the tutorial that aimed at a bit more complex example - maybe interesting later?
2019-03-04 12:37:23 +01:00
Julian Murgia
723293ad35 New tutorial page for editor main screen plugins (#2215) 2019-03-01 14:15:28 +01:00