20 lines
442 B
GDScript
20 lines
442 B
GDScript
|
|
extends EditorInspectorPlugin
|
|
|
|
func _can_handle(object):
|
|
return object is BuildingData
|
|
|
|
func _parse_begin(object):
|
|
# Example: Add a label at the top
|
|
var label = Label.new()
|
|
label.text = "Custom Editor for MyData!"
|
|
add_custom_control(label)
|
|
return true
|
|
|
|
func _parse_property(object, type, path, hint, hint_text, usage, wide):
|
|
return true
|
|
func _parse_group(object, name):
|
|
return false
|
|
func _parse_category(object, name):
|
|
return true
|