Added c++ test; now works

This commit is contained in:
Martin committed 2025-11-22 23:55:25 +01:00
1 parent e77fe832f0
commit 52ae094087
3 files changed
+21 -3

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
extends Label
var counter := Test.new() # C++ class
func _ready() -> void:
text += str(counter.get_counter())
func _process(delta: float) -> void:
#if Input.is_action_just_pressed("ui_accept"):
counter.increment()
var baseText := text
baseText = baseText.left(baseText.length() - str(counter.get_counter()).length())
text = baseText + str(counter.get_counter())
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.