Skip to content

Commit cdae351

Browse files
committed
Updated Readme according to new fix
1 parent 1e09066 commit cdae351

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ Go to Project Settings > Plugins, and enable Extendable Inspector (C#).
1717
Let's add a button that prints the node name in godot's output:
1818
- Choose the node that should have this control, make sure its script has the `[Tool]` attribute at the class declaration, [this allows it to run code while in the editor](https://docs.godotengine.org/en/stable/tutorials/plugins/running_code_in_the_editor.html).
1919

20-
![image](https://github.com/ProFiLeR4100/ExtendableInspectorForCS/assets/9364958/7f0cc7e0-6a9a-4447-b73e-8fc9a0f8da6b)
20+
![image](https://github.com/ProFiLeR4100/ExtendableInspectorForCS/assets/9364958/4a936065-e56b-45dc-bc49-73a988b94b53)
2121

22-
- Define a method called `ExtendInspectorBegin` that receives a parameter, let's call that parameter `inspector`. If you want, you can type it as `ExtendableInspector` to get some autocomplete features:
22+
- Define a method called `ExtendInspectorBegin` that receives a parameter, let's call that parameter `inspector`. Don't forget to wrap code with preprocessor `#if` directive, because `ExtendableInspector` is only accessible in editor. If you want, you can type it as `ExtendableInspector` to get some autocomplete features:
2323

24-
![image](https://github.com/ProFiLeR4100/ExtendableInspectorForCS/assets/9364958/e6ff7696-ab1c-484c-ae1e-04b75da80f47)
24+
![image](https://github.com/ProFiLeR4100/ExtendableInspectorForCS/assets/9364958/ee9fd3a4-cc5c-4b6b-9348-f4b342f6fa1f)
2525

2626
- Create a button that when pressed, it prints the node's name. Then, simply add it to the inspector with `inspector.AddCustomControl(ourNewControl)`. You will have to unfocus the node and focus it again for the button to appear:
2727

28-
![image](https://github.com/ProFiLeR4100/ExtendableInspectorForCS/assets/9364958/d8457afd-5243-4da9-9834-b87c90f356bb)
28+
![image](https://github.com/ProFiLeR4100/ExtendableInspectorForCS/assets/9364958/0970a7fe-ea07-47e4-9c9c-d1cbf9329baf)
2929

3030

3131
Here's the entire code in case you want to try it out:

addons/extendable_inspector_for_cs/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ Go to Project Settings > Plugins, and enable Extendable Inspector (C#).
1717
Let's add a button that prints the node name in godot's output:
1818
- Choose the node that should have this control, make sure its script has the `[Tool]` attribute at the class declaration, [this allows it to run code while in the editor](https://docs.godotengine.org/en/stable/tutorials/plugins/running_code_in_the_editor.html).
1919

20-
![image](https://github.com/ProFiLeR4100/ExtendableInspectorForCS/assets/9364958/7f0cc7e0-6a9a-4447-b73e-8fc9a0f8da6b)
20+
![image](https://github.com/ProFiLeR4100/ExtendableInspectorForCS/assets/9364958/4a936065-e56b-45dc-bc49-73a988b94b53)
2121

22-
- Define a method called `ExtendInspectorBegin` that receives a parameter, let's call that parameter `inspector`. If you want, you can type it as `ExtendableInspector` to get some autocomplete features:
22+
- Define a method called `ExtendInspectorBegin` that receives a parameter, let's call that parameter `inspector`. Don't forget to wrap code with preprocessor `#if` directive, because `ExtendableInspector` is only accessible in editor. If you want, you can type it as `ExtendableInspector` to get some autocomplete features:
2323

24-
![image](https://github.com/ProFiLeR4100/ExtendableInspectorForCS/assets/9364958/e6ff7696-ab1c-484c-ae1e-04b75da80f47)
24+
![image](https://github.com/ProFiLeR4100/ExtendableInspectorForCS/assets/9364958/ee9fd3a4-cc5c-4b6b-9348-f4b342f6fa1f)
2525

2626
- Create a button that when pressed, it prints the node's name. Then, simply add it to the inspector with `inspector.AddCustomControl(ourNewControl)`. You will have to unfocus the node and focus it again for the button to appear:
2727

28-
![image](https://github.com/ProFiLeR4100/ExtendableInspectorForCS/assets/9364958/d8457afd-5243-4da9-9834-b87c90f356bb)
28+
![image](https://github.com/ProFiLeR4100/ExtendableInspectorForCS/assets/9364958/0970a7fe-ea07-47e4-9c9c-d1cbf9329baf)
2929

3030

3131
Here's the entire code in case you want to try it out:

0 commit comments

Comments
 (0)