Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Inspector Extender - Buttons, Warnings, More

An asset by don-tnowe
The page banner background of a mountain and forest
Inspector Extender - Buttons, Warnings, More thumbnail image
Inspector Extender - Buttons, Warnings, More thumbnail image
Inspector Extender - Buttons, Warnings, More hero image

Quick Information

0 ratings
Inspector Extender - Buttons, Warnings, More icon image
don-tnowe
Inspector Extender - Buttons, Warnings, More

A plugin for Godot 4 to extend the Inspector using just comments above properties. Nodes, Resources, and even non-tool scripts supported!Supports these, and more (check README.md for full list):# @@message(message_getter) - call message_getter() to get a message. If empty string, hides the message. Has a message_warning and message_error variants.# @@button_group(params) - assembles buttons. List comma-separated params, which can be strings "", colors #, or expressions. Each Expression must have a string Label preceding it, color optional.# @@dict_table(params) and # @@resource_table(properties) - displays array of Resources or Dictionaries as a table. for dicts, params must be of format `key : type`.# @@multi_array_table(property_names) - shows several typed array properties as a table, one array one column.# @@show_if(expression) - hides property if expression is false.For more, check out README.md.More extensions coming soon!

Supported Engine Version
4.0
Version String
1.2.3
License Version
MIT
Support Level
community
Modified Date
8 months ago
Git URL
Issue URL

Inspector Extender

A plugin for Godot 4 to extend the Inspector using just comments above properties. Nodes, Resources, and even non-tool scripts supported!

It allows the user to do this:

README

...with just this.

README

Comments must be placed any number of lines before the property they must be applied to (place anything in between, just not other properties)

Supported commentributes:

@@message(message_func), @@message_warning(message_func), @@message_error(message_func)

Call message_func that returns a message string to display a message. When the function returns and empty string, no message is displayed.

@@buttons(params)

Displays a button group. The params, comma-separated, must contain expressions (like set_position(position + Vector2(9, 20))), preceded by a name (inside quotation marks " ") and optionally a color code (like #009900)

To display a red "Reset" button that calls _reset, write: # @@buttons("Reset", #990000, _reset()).

Note: Assignment = += *= -= /= not supported, use setter functions instead.

Note: Translating nodes in viewport has unpredictable behaviour. Clues on fixes appreciated.

@@dict_table(params)

Displays list of dictionaries as a table. The params, comma-separated, must be in format of key : type, where key is the dictionary's key and type is the name of its datatype.

To store a table of dictionaries each containing a number a, a 2d-vector b and a texture c, write # @@dict_table( a : int, b : Vector2, c : Texture2D).

@@resource_table(properties)

Displays list of resources as a table. Optionally, list properties to display.

@@scroll_box(height)

Puts a table into a scrollable container of maximum size height.

@@show_if(expression)

Hides property if expression evaluates to false.

More commentributes coming soon.

Made by Don Tnowe in 2023.

My Website

Itch

Twitter

Copying and Modification is allowed in accordance to the MIT license, full text is included.

A plugin for Godot 4 to extend the Inspector using just comments above properties. Nodes, Resources, and even non-tool scripts supported!

Supports these, and more (check README.md for full list):

# @@message(message_getter) - call message_getter() to get a message. If empty string, hides the message. Has a message_warning and message_error variants.

# @@button_group(params) - assembles buttons. List comma-separated params, which can be strings "", colors #, or expressions. Each Expression must have a string Label preceding it, color optional.

# @@dict_table(params) and # @@resource_table(properties) - displays array of Resources or Dictionaries as a table. for dicts, params must be of format `key : type`.

# @@multi_array_table(property_names) - shows several typed array properties as a table, one array one column.

# @@show_if(expression) - hides property if expression is false.

For more, check out README.md.
More extensions coming soon!

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Inspector Extender - Buttons, Warnings, More icon image
don-tnowe
Inspector Extender - Buttons, Warnings, More

A plugin for Godot 4 to extend the Inspector using just comments above properties. Nodes, Resources, and even non-tool scripts supported!Supports these, and more (check README.md for full list):# @@message(message_getter) - call message_getter() to get a message. If empty string, hides the message. Has a message_warning and message_error variants.# @@button_group(params) - assembles buttons. List comma-separated params, which can be strings "", colors #, or expressions. Each Expression must have a string Label preceding it, color optional.# @@dict_table(params) and # @@resource_table(properties) - displays array of Resources or Dictionaries as a table. for dicts, params must be of format `key : type`.# @@multi_array_table(property_names) - shows several typed array properties as a table, one array one column.# @@show_if(expression) - hides property if expression is false.For more, check out README.md.More extensions coming soon!

Supported Engine Version
4.0
Version String
1.2.3
License Version
MIT
Support Level
community
Modified Date
8 months ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers