Console can now be turned off or on, off by default
This commit is contained in:
parent
0a76f14556
commit
fc5ffdd8d2
1 changed files with 8 additions and 6 deletions
|
@ -2,12 +2,14 @@ extends Node
|
||||||
|
|
||||||
var scenePlayground = "res://scenes/playground.tscn"
|
var scenePlayground = "res://scenes/playground.tscn"
|
||||||
var sceneTutorial = "res://scenes/tutorial.tscn"
|
var sceneTutorial = "res://scenes/tutorial.tscn"
|
||||||
|
var consoleEnabled = false
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
func _process(delta):
|
func _process(delta):
|
||||||
|
if consoleEnabled == true:
|
||||||
if not Global.consoleOpen:
|
if not Global.consoleOpen:
|
||||||
self.queue_free()
|
self.queue_free()
|
||||||
if Input.is_action_just_pressed("console_send"):
|
if Input.is_action_just_pressed("console_send"):
|
||||||
|
|
Loading…
Reference in a new issue