blob: daff9011b0a95f60114c02eb8570954ac776164a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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)
|