1883355678
Co-authored-by: VAILLANT Jeremy <vaillant.jeremy@dev-crea.com> Reviewed-on: Athena/game-source#77 Co-authored-by: darknight <vaillant.jeremy@dev-crea.com> Co-committed-by: darknight <vaillant.jeremy@dev-crea.com>
17 lines
305 B
GDScript
17 lines
305 B
GDScript
tool
|
|
extends Spatial
|
|
|
|
export(bool) var paper
|
|
|
|
func activatePaper(showPaper):
|
|
if Engine.editor_hint:
|
|
paper = showPaper
|
|
|
|
# var parent = get_node(".").name
|
|
# print("[Parchment] Editor value " +String(showPaper) +" | " +String(parent))
|
|
|
|
$paper.set_visible(paper)
|
|
|
|
func _ready():
|
|
activatePaper(paper)
|