1
0
Fork 0
This repository has been archived on 2025-09-12. You can view files and clone it, but cannot push or open issues or pull requests.
honest-jam-3/game/DebugOverlay.gd
2021-12-07 22:42:24 +01:00

21 lines
540 B
GDScript

# Copyright 2021 Outfrost
# This work is free software. It comes without any warranty, to the extent
# permitted by applicable law. You can redistribute it and/or modify it under
# the terms of the Do What The Fuck You Want To Public License, Version 2,
# as published by Sam Hocevar. See the LICENSE file for more details.
extends Node
onready var label: Label = $DebugLabel
var buffer: String = ""
func _ready():
label.text = ""
func _process(_delta):
label.text = buffer
buffer = ""
func display(s: String):
buffer += s + "\n"