bcp de characters
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
extends CanvasLayer
|
||||
|
||||
var settings := {}
|
||||
|
||||
|
||||
func _init() -> void:
|
||||
settings.merge(DialogicUtil.get_editor_setting("debug_settings", {}), true)
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
visible = settings.get("debug_visible", false)
|
||||
|
||||
|
||||
func _input(event: InputEvent) -> void:
|
||||
if event.is_pressed() and (Input.is_key_pressed(KEY_CTRL) or Input.is_key_pressed(KEY_META)) and Input.is_key_pressed(KEY_D) and Input.is_key_pressed(KEY_SPACE):
|
||||
visible = not visible
|
||||
settings["debug_visible"] = visible
|
||||
save()
|
||||
|
||||
|
||||
func save() -> void:
|
||||
DialogicUtil.set_editor_setting("debug_settings", settings)
|
||||
Reference in New Issue
Block a user