1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
[gd_scene load_steps=9 format=3 uid="uid://g2veoq55y14i"]
[ext_resource type="Texture2D" uid="uid://voruypgyi77e" path="res://scenes/stockticker/UI-Background-Colour.png" id="1_wbfee"]
[ext_resource type="Script" path="res://scenes/stockticker/stonks.gd" id="2_pan4m"]
[ext_resource type="Theme" uid="uid://ve18rbkeiwti" path="res://UI/text.tres" id="3_dv3dr"]
[ext_resource type="Script" path="res://scenes/stockticker/buy_n_sell.gd" id="4_l8sru"]
[ext_resource type="Texture2D" uid="uid://vie3nmimge1t" path="res://scenes/stockticker/BuyButton.png" id="5_mpf30"]
[ext_resource type="Texture2D" uid="uid://dvidbk3clx6dn" path="res://scenes/stockticker/BuyButtonPressed.png" id="6_styy2"]
[ext_resource type="Texture2D" uid="uid://dw8wpd47me7wu" path="res://scenes/stockticker/SellButton.png" id="7_h6hir"]
[ext_resource type="Texture2D" uid="uid://b773rtpy6rtx5" path="res://scenes/stockticker/SellButtonPressed.png" id="8_essj7"]
[node name="Node2D" type="Node2D"]
[node name="Background" type="Sprite2D" parent="."]
modulate = Color(0.796078, 0.796078, 0.796078, 1)
position = Vector2(576.25, 323.75)
scale = Vector2(1153.5, 648.5)
texture = ExtResource("1_wbfee")
[node name="Timer" type="Timer" parent="."]
autostart = true
[node name="Stonks" type="Node2D" parent="."]
script = ExtResource("2_pan4m")
[node name="Sprite2D" type="Sprite2D" parent="Stonks"]
position = Vector2(582, 205)
scale = Vector2(1062.25, 337)
texture = ExtResource("1_wbfee")
[node name="TopLine" type="Line2D" parent="Stonks"]
points = PackedVector2Array(50, 60, 1000, 60)
width = 1.0
default_color = Color(0.458824, 0.458824, 0.458824, 1)
[node name="MidLine" type="Line2D" parent="Stonks"]
position = Vector2(0, 1)
points = PackedVector2Array(50, 208, 1000, 208)
width = 1.0
default_color = Color(0.458824, 0.458824, 0.458824, 1)
[node name="BottomLine" type="Line2D" parent="Stonks"]
position = Vector2(0, -1)
points = PackedVector2Array(50, 356, 1000, 356)
width = 1.0
default_color = Color(0.46, 0.46, 0.46, 1)
[node name="Top" type="Label" parent="Stonks"]
offset_left = 1021.0
offset_top = 58.0
offset_right = 1114.0
offset_bottom = 89.0
theme = ExtResource("3_dv3dr")
theme_override_colors/font_color = Color(0.63, 0.63, 0.63, 1)
theme_override_font_sizes/font_size = 12
text = "0"
horizontal_alignment = 1
[node name="Middle" type="Label" parent="Stonks"]
offset_left = 1022.0
offset_top = 208.0
offset_right = 1115.0
offset_bottom = 239.0
theme = ExtResource("3_dv3dr")
theme_override_colors/font_color = Color(0.63, 0.63, 0.63, 1)
theme_override_font_sizes/font_size = 12
text = "0"
horizontal_alignment = 1
[node name="Bottom" type="Label" parent="Stonks"]
offset_left = 1022.0
offset_top = 356.0
offset_right = 1115.0
offset_bottom = 387.0
theme = ExtResource("3_dv3dr")
theme_override_colors/font_color = Color(0.63, 0.63, 0.63, 1)
theme_override_font_sizes/font_size = 12
text = "0"
horizontal_alignment = 1
[node name="Stonks" type="Line2D" parent="Stonks"]
[node name="Price Label" type="Label" parent="Stonks"]
offset_left = 387.0
offset_top = 387.0
offset_right = 1112.0
offset_bottom = 452.0
theme = ExtResource("3_dv3dr")
text = "Price:
$"
[node name="BuyNSell" type="Node2D" parent="."]
script = ExtResource("4_l8sru")
[node name="BuyButton" type="TextureButton" parent="BuyNSell"]
offset_left = 54.0
offset_top = 475.0
offset_right = 409.0
offset_bottom = 604.0
texture_normal = ExtResource("5_mpf30")
texture_pressed = ExtResource("6_styy2")
[node name="SellButton" type="TextureButton" parent="BuyNSell"]
offset_left = 441.0
offset_top = 477.0
offset_right = 796.0
offset_bottom = 606.0
texture_normal = ExtResource("7_h6hir")
texture_pressed = ExtResource("8_essj7")
[node name="Shares Held Label" type="Label" parent="BuyNSell"]
offset_left = 6.0
offset_top = 390.0
offset_right = 336.0
offset_bottom = 455.0
theme = ExtResource("3_dv3dr")
text = "Shares
Held:"
[connection signal="timeout" from="Timer" to="Stonks" method="_on_timer_timeout"]
[connection signal="button_up" from="BuyNSell/BuyButton" to="BuyNSell" method="_on_buy_button_button_up"]
[connection signal="button_up" from="BuyNSell/SellButton" to="BuyNSell" method="_on_sell_button_button_up"]
|