Initial push
This commit is contained in:
commit
3240f07946
335 changed files with 11248 additions and 0 deletions
18
quality-godot-first-person-2-2.6.1/addons/fpc/debug.gd
Normal file
18
quality-godot-first-person-2-2.6.1/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 : int): # This can either be called once for a static property or called every frame for a dynamic property
|
||||
var target
|
||||
target = $MarginContainer/VBoxContainer.find_child(title, true, false) # I have no idea what true and false does here, the function should be more specific
|
||||
if !target:
|
||||
target = Label.new() # Debug lines are of type Label
|
||||
$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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue