summaryrefslogtreecommitdiff
path: root/scenes/stockticker
diff options
context:
space:
mode:
authorZoey Kitt <zoey.kitt@outlook.com>2024-11-16 14:01:13 -0600
committerZoey Kitt <zoey.kitt@outlook.com>2024-11-16 14:01:13 -0600
commit1a3455015d18921de0b037dcfd8a9b44a5e4e874 (patch)
tree68332ab43a3d4382b191e783ee784afb31fa6744 /scenes/stockticker
parent954ac4ef435c2f8746746f9422c8e726cb130901 (diff)
Buying takes from your net worth!
Diffstat (limited to 'scenes/stockticker')
-rw-r--r--scenes/stockticker/transactions.gd14
1 files changed, 5 insertions, 9 deletions
diff --git a/scenes/stockticker/transactions.gd b/scenes/stockticker/transactions.gd
index c90e473..daff901 100644
--- a/scenes/stockticker/transactions.gd
+++ b/scenes/stockticker/transactions.gd
@@ -3,19 +3,15 @@ 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
-
+signal buy(amount: Variant)
+signal sell(amount: Variant)
func _on_stonks_buy(amount: Variant) -> void:
print("-$%s" % amount.toString())
+ buy.emit(amount)
func _on_stonks_sell(amount: Variant) -> void:
print("+$%s" % amount.toString())
+ sell.emit(amount)
+