mirror of
https://github.com/Relintai/uml_generator.git
synced 2024-11-22 11:09:09 +01:00
22 lines
414 B
GDScript
22 lines
414 B
GDScript
extends PanelContainer
|
|
|
|
var _item_added : bool = false
|
|
|
|
func set_class_name(n):
|
|
$VBoxContainer/HBoxContainer/ClassName.text = n
|
|
|
|
|
|
func add_h_separator():
|
|
var hsep : HSeparator = HSeparator.new()
|
|
$VBoxContainer.add_child(hsep)
|
|
|
|
func add_line(line : String):
|
|
if !_item_added:
|
|
_item_added = true
|
|
add_h_separator()
|
|
add_h_separator()
|
|
|
|
var l : Label = Label.new()
|
|
l.text = line
|
|
$VBoxContainer.add_child(l)
|