Added spoilers and entity/entity-array properties to property grid.
This commit is contained in:
@@ -5,21 +5,54 @@ class_name UIB_DynamicGridConstraints
|
||||
|
||||
export(int, 1, 100) var colspan := 1 setget _set_colspan
|
||||
export(int, 1, 100) var rowspan := 1 setget _set_rowspan
|
||||
export(int) var padding_top := 0 setget _set_padding_top
|
||||
export(int) var padding_bottom := 0 setget _set_padding_bottom
|
||||
export(int) var padding_left := 0 setget _set_padding_left
|
||||
export(int) var padding_right := 0 setget _set_padding_right
|
||||
|
||||
func _ready():
|
||||
#############
|
||||
# overrides #
|
||||
#############
|
||||
func _ready() -> void:
|
||||
__trigger_update()
|
||||
|
||||
func __trigger_update():
|
||||
#################
|
||||
# private stuff #
|
||||
#################
|
||||
func __trigger_update() -> void:
|
||||
var container := get_node_or_null("../..") as Container # cyclic inclusion, cannot use UIB_DynamicGridContainer
|
||||
if container != null:
|
||||
container.notification(Container.NOTIFICATION_SORT_CHILDREN)
|
||||
|
||||
func _set_colspan(value : int):
|
||||
###########
|
||||
# setters #
|
||||
###########
|
||||
func _set_colspan(value : int) -> void:
|
||||
if value != colspan:
|
||||
colspan = value
|
||||
__trigger_update()
|
||||
|
||||
func _set_rowspan(value : int):
|
||||
func _set_rowspan(value : int) -> void:
|
||||
if value != rowspan:
|
||||
rowspan = value
|
||||
__trigger_update()
|
||||
|
||||
func _set_padding_top(value : int) -> void:
|
||||
if value != padding_top:
|
||||
padding_top = value
|
||||
__trigger_update()
|
||||
|
||||
func _set_padding_bottom(value : int) -> void:
|
||||
if value != padding_bottom:
|
||||
padding_bottom = value
|
||||
__trigger_update()
|
||||
|
||||
func _set_padding_left(value : int) -> void:
|
||||
if value != padding_left:
|
||||
padding_left = value
|
||||
__trigger_update()
|
||||
|
||||
func _set_padding_right(value : int) -> void:
|
||||
if value != padding_right:
|
||||
padding_right = value
|
||||
__trigger_update()
|
||||
|
||||
Reference in New Issue
Block a user