VERSION 2 HAS ARRIVED!
This commit is contained in:
18
addons/fpc/debug.gd
Normal file
18
addons/fpc/debug.gd
Normal file
@ -0,0 +1,18 @@
|
||||
extends PanelContainer
|
||||
|
||||
|
||||
func _process(delta):
|
||||
if visible:
|
||||
pass
|
||||
|
||||
func add_property(title:String, value, order):
|
||||
var target
|
||||
target = $MarginContainer/VBoxContainer.find_child(title, true, false)
|
||||
if !target:
|
||||
target = Label.new()
|
||||
$MarginContainer/VBoxContainer.add_child(target)
|
||||
target.name = title
|
||||
target.text = title + ": " + str(value)
|
||||
elif visible:
|
||||
target.text = title + ": " + str(value)
|
||||
$MarginContainer/VBoxContainer.move_child(target, order)
|
Reference in New Issue
Block a user