From 5776af6ad1e542214056e3c3753427306d9bc921 Mon Sep 17 00:00:00 2001 From: Zoey Kitt Date: Sat, 16 Nov 2024 13:24:14 -0600 Subject: Print transaction values --- scenes/stockticker/transactions.gd | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 scenes/stockticker/transactions.gd (limited to 'scenes/stockticker/transactions.gd') diff --git a/scenes/stockticker/transactions.gd b/scenes/stockticker/transactions.gd new file mode 100644 index 0000000..c90e473 --- /dev/null +++ b/scenes/stockticker/transactions.gd @@ -0,0 +1,21 @@ +extends Node2D + +## I need the signal-emitter to be the root node of this scene and when I +## tried to just move the script it broke the stonk line so here this is I guess lol + +# Called when the node enters the scene tree for the first time. +func _ready() -> void: + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta: float) -> void: + pass + + +func _on_stonks_buy(amount: Variant) -> void: + print("-$%s" % amount.toString()) + + +func _on_stonks_sell(amount: Variant) -> void: + print("+$%s" % amount.toString()) -- cgit v1.2.3