settings, small fixes
This commit is contained in:
parent
b12c193636
commit
e08e3ebb13
174 changed files with 997 additions and 1040 deletions
|
|
@ -4,6 +4,8 @@ var lines : Array[String] = []
|
|||
|
||||
func _ready() -> void:
|
||||
EventBus.debug_print.connect(_on_debug_print)
|
||||
EventBus.debug_enable.connect(enable_debug)
|
||||
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
$Label.text = "FPS: " + str(Engine.get_frames_per_second()) + "\n"
|
||||
|
|
@ -16,7 +18,5 @@ func _on_debug_print(msg : String):
|
|||
if len(lines) > 10:
|
||||
lines.pop_front()
|
||||
|
||||
|
||||
func _shortcut_input(event: InputEvent) -> void:
|
||||
if (event.is_action_pressed("debug")):
|
||||
visible = !visible
|
||||
func enable_debug(value : bool):
|
||||
visible = value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue