01ea3af253
Apply Godot 4.6 automated conversion: renames Spatial.translate->position, margin_*->offset_*, tool->@tool, .empty()->.is_empty(), DynamicFont->FontFile, onready->@onready, export()->@export, and many more. 127 files changed by the tool. Manual fixes still required for: - godot_db_manager plugin (incompatible APIs: WindowDialog, Tabs, etc.) - lod plugin (Spatial -> Node3D renames) - ResourceLoader.load_interactive removed -> load_threaded_request - OS.set_window_fullscreen removed -> DisplayServer - Viewport.set_size_override removed Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
17 lines
311 B
GDScript
17 lines
311 B
GDScript
@tool
|
|
extends Node3D
|
|
|
|
@export var paper: bool
|
|
|
|
func activatePaper(showPaper):
|
|
if Engine.is_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)
|