Add Camera Bounds Data #9

Merged
kayomn merged 4 commits from editor-camera-bounds into main 2023-01-22 23:57:46 +01:00
1 changed files with 8 additions and 4 deletions
Showing only changes of commit 5d02cd16c7 - Show all commits

View File

@ -17,11 +17,15 @@ var item_count: int:
func _get_configuration_warnings() -> PackedStringArray: func _get_configuration_warnings() -> PackedStringArray:
var warnings := PackedStringArray() var warnings := PackedStringArray()
var children := get_children()
if not(children.is_empty()):
var self_class_name := get_class()
for child in get_children(): for child in get_children():
warnings.append( warnings.append(
"ItemSelection can only have children of type Button, but {0} is of type {1}".format( "{0} can only have Button children, but {1} is of type {2}".format(
[child.name, child.get_class()])) [self_class_name, child.name, child.get_class()]))
return warnings return warnings