summaryrefslogtreecommitdiff
path: root/scenes/stockticker/buy_n_sell.gd
diff options
context:
space:
mode:
authorZoey Kitt <zoey.kitt@outlook.com>2024-11-16 12:32:03 -0600
committerZoey Kitt <zoey.kitt@outlook.com>2024-11-16 12:32:03 -0600
commit9ba8e86a7905c24692f5b199cf1255dbae8e2f15 (patch)
treecb2fde50446e52cd3db0cec4ffcb07c125af6ee1 /scenes/stockticker/buy_n_sell.gd
parenta2362a3b42d291df1aad66e9afde870a682a4211 (diff)
parent1a6dd05f13d7afb312332c9636436cadcf01639b (diff)
Merge branch 'main' into ads
Diffstat (limited to 'scenes/stockticker/buy_n_sell.gd')
-rw-r--r--scenes/stockticker/buy_n_sell.gd25
1 files changed, 0 insertions, 25 deletions
diff --git a/scenes/stockticker/buy_n_sell.gd b/scenes/stockticker/buy_n_sell.gd
deleted file mode 100644
index be0e777..0000000
--- a/scenes/stockticker/buy_n_sell.gd
+++ /dev/null
@@ -1,25 +0,0 @@
-extends Node2D
-
-var stonks = 0
-
-# Called when the node enters the scene tree for the first time.
-func _ready() -> void:
- var label = $"Shares Held Label"
- label.text = "Shares\nHeld:%d" % stonks
-
-# Called every frame. 'delta' is the elapsed time since the previous frame.
-func _process(delta: float) -> void:
- pass
-
-
-func _on_buy_button_button_up() -> void:
- if stonks < 100:
- stonks += 1
- var label = $"Shares Held Label"
- label.text = "Shares\nHeld:%d" % stonks
-
-func _on_sell_button_button_up() -> void:
- if stonks > 0:
- stonks -= 1
- var label = $"Shares Held Label"
- label.text = "Shares\nHeld:%d" % stonks