[gd_scene load_steps=13 format=3 uid="uid://g2veoq55y14i"] [ext_resource type="Script" path="res://scenes/stockticker/transactions.gd" id="1_1gmdn"] [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://libs/shake_pivot.gd" id="4_ofsrv"] [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"] [ext_resource type="Theme" path="res://UI/darksouls.tres" id="8_yqn4n"] [ext_resource type="Texture2D" uid="uid://dpp7abs35p6i5" path="res://scenes/stockticker/fishe/gar.png" id="9_bv8iw"] [ext_resource type="AudioStream" uid="uid://cy3ahp7fec1y2" path="res://funny_sounds/Metal pipe falling sound effect(loud).mp3" id="10_rkl57"] [node name="Node2D" type="Node2D"] script = ExtResource("1_1gmdn") [node name="Background" type="Sprite2D" parent="."] modulate = Color(0.796078, 0.796078, 0.796078, 1) position = Vector2(639.75, 359.75) scale = Vector2(1280.5, 720.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="ShakePivot" type="Node2D" parent="Stonks"] script = ExtResource("4_ofsrv") NOISE_SHAKE_STRENGTH = 30.0 SHAKE_DECAY_RATE = 5.0 [node name="StonkWindow" type="Sprite2D" parent="Stonks/ShakePivot"] position = Vector2(582, 205) scale = Vector2(1062.25, 337) texture = ExtResource("1_wbfee") [node name="SellButton" type="TextureButton" parent="Stonks"] offset_left = 439.0 offset_top = 565.0 offset_right = 794.0 offset_bottom = 694.0 texture_normal = ExtResource("7_h6hir") texture_pressed = ExtResource("8_essj7") [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"] width = 2.0 default_color = Color(1, 0, 0, 1) [node name="Price Label" type="Label" parent="Stonks"] offset_left = 26.0 offset_top = 476.0 offset_right = 751.0 offset_bottom = 541.0 theme = ExtResource("3_dv3dr") text = "Price: $" [node name="BuyButton" type="TextureButton" parent="Stonks"] offset_left = 54.0 offset_top = 563.0 offset_right = 409.0 offset_bottom = 692.0 texture_normal = ExtResource("5_mpf30") texture_pressed = ExtResource("6_styy2") [node name="Shares Held Label" type="Label" parent="Stonks"] offset_left = 29.0 offset_top = 388.0 offset_right = 359.0 offset_bottom = 453.0 theme = ExtResource("3_dv3dr") text = "Shares Held:" [node name="DarkSoulsTextBox" type="Sprite2D" parent="Stonks"] visible = false self_modulate = Color(0, 0, 0, 0.721569) position = Vector2(639.937, 355.875) scale = Vector2(1279.88, 260.25) texture = ExtResource("1_wbfee") [node name="DarkSoulsLabel" type="Label" parent="Stonks"] visible = false offset_left = 64.0 offset_top = 258.0 offset_right = 1209.0 offset_bottom = 450.0 theme = ExtResource("8_yqn4n") text = "Stock Bankrupt" horizontal_alignment = 1 [node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="Stonks"] stream = ExtResource("10_rkl57") [node name="Sprite2D" type="Sprite2D" parent="."] position = Vector2(1036, 555) scale = Vector2(0.671875, 0.622) texture = ExtResource("9_bv8iw") [node name="Label" type="Label" parent="."] offset_left = 823.0 offset_top = 588.0 offset_right = 1082.0 offset_bottom = 785.0 theme = ExtResource("3_dv3dr") theme_override_colors/font_color = Color(0, 0, 0, 1) theme_override_font_sizes/font_size = 82 text = "GAR" [connection signal="timeout" from="Timer" to="Stonks" method="_on_timer_timeout"] [connection signal="buy" from="Stonks" to="." method="_on_stonks_buy"] [connection signal="sell" from="Stonks" to="." method="_on_stonks_sell"] [connection signal="button_up" from="Stonks/SellButton" to="Stonks" method="_on_sell_button_button_up"] [connection signal="button_up" from="Stonks/BuyButton" to="Stonks" method="_on_buy_button_button_up"]