summaryrefslogtreecommitdiff
path: root/scenes/stockticker/transactions.gd
blob: 39e25b90c30a3cce68ffa1cfd55003b7f52d3129 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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

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)
	

# Scope creep!
func start():
	$Timer.start()