diff options
-rw-r--r-- | Stock Ticker.tscn | 102 | ||||
-rw-r--r-- | stonks.gd | 15 | ||||
-rw-r--r-- | templeos_font.ttf | bin | 0 -> 84460 bytes | |||
-rw-r--r-- | templeos_font.ttf.import | 34 | ||||
-rw-r--r-- | text.tres | 8 |
5 files changed, 150 insertions, 9 deletions
diff --git a/Stock Ticker.tscn b/Stock Ticker.tscn index 425adef..3cc6378 100644 --- a/Stock Ticker.tscn +++ b/Stock Ticker.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=7 format=3 uid="uid://by18nc16h76y0"] +[gd_scene load_steps=9 format=3 uid="uid://by18nc16h76y0"] [ext_resource type="Texture2D" uid="uid://c6ed1ks2h58s7" path="res://UI-Background-Colour.png" id="1_1j58d"] [ext_resource type="Texture2D" uid="uid://dcsaf0afsn76" path="res://BuyButton.png" id="2_8qhml"] @@ -6,6 +6,8 @@ [ext_resource type="Script" path="res://buy_button.gd" id="4_lfir0"] [ext_resource type="Texture2D" uid="uid://du8xy83ve1lm7" path="res://SellButton.png" id="5_salj8"] [ext_resource type="Texture2D" uid="uid://qgsvhv16ghwf" path="res://SellButtonPressed.png" id="6_ifhss"] +[ext_resource type="Script" path="res://stonks.gd" id="7_ecbtd"] +[ext_resource type="Theme" uid="uid://dx1tiwi1lo7om" path="res://text.tres" id="7_rtyuw"] [node name="Node2D" type="Node2D"] @@ -16,18 +18,100 @@ scale = Vector2(1153.5, 648.5) texture = ExtResource("1_1j58d") [node name="BuyButton" type="TextureButton" parent="."] -offset_left = 168.0 -offset_top = 450.0 -offset_right = 523.0 -offset_bottom = 579.0 +offset_left = 54.0 +offset_top = 475.0 +offset_right = 409.0 +offset_bottom = 604.0 texture_normal = ExtResource("2_8qhml") texture_pressed = ExtResource("3_4kqfi") script = ExtResource("4_lfir0") [node name="TextureButton" type="TextureButton" parent="."] -offset_left = 649.0 -offset_top = 450.0 -offset_right = 1004.0 -offset_bottom = 579.0 +offset_left = 441.0 +offset_top = 477.0 +offset_right = 796.0 +offset_bottom = 606.0 texture_normal = ExtResource("5_salj8") texture_pressed = ExtResource("6_ifhss") + +[node name="Price Label" type="Label" parent="."] +offset_left = 387.0 +offset_top = 387.0 +offset_right = 1112.0 +offset_bottom = 452.0 +theme = ExtResource("7_rtyuw") +text = "Price: +$" + +[node name="Shares Held Label" type="Label" parent="."] +offset_left = 6.0 +offset_top = 390.0 +offset_right = 336.0 +offset_bottom = 421.0 +theme = ExtResource("7_rtyuw") +text = "Shares +Held:" + +[node name="Timer" type="Timer" parent="."] + +[node name="Node2D" type="Node2D" parent="."] +script = ExtResource("7_ecbtd") + +[node name="Sprite2D" type="Sprite2D" parent="Node2D"] +position = Vector2(582, 205) +scale = Vector2(1062.25, 337) +texture = ExtResource("1_1j58d") + +[node name="TopLine" type="Line2D" parent="Node2D"] +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="Node2D"] +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="Node2D"] +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="Node2D"] +offset_left = 1021.0 +offset_top = 58.0 +offset_right = 1114.0 +offset_bottom = 89.0 +theme = ExtResource("7_rtyuw") +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="Node2D"] +offset_left = 1022.0 +offset_top = 208.0 +offset_right = 1115.0 +offset_bottom = 239.0 +theme = ExtResource("7_rtyuw") +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="Node2D"] +offset_left = 1022.0 +offset_top = 356.0 +offset_right = 1115.0 +offset_bottom = 387.0 +theme = ExtResource("7_rtyuw") +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="Node2D"] + +[connection signal="timeout" from="Timer" to="Node2D/Sprite2D" method="_on_timer_timeout"] diff --git a/stonks.gd b/stonks.gd new file mode 100644 index 0000000..a853edf --- /dev/null +++ b/stonks.gd @@ -0,0 +1,15 @@ +extends Node2D + + +# Called when the node enters the scene tree for the first time. +func _ready() -> void: + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta: float) -> void: + pass + + +func _on_timer_timeout() -> void: + pass # Replace with function body. diff --git a/templeos_font.ttf b/templeos_font.ttf Binary files differnew file mode 100644 index 0000000..517ad2a --- /dev/null +++ b/templeos_font.ttf diff --git a/templeos_font.ttf.import b/templeos_font.ttf.import new file mode 100644 index 0000000..bcfd2cb --- /dev/null +++ b/templeos_font.ttf.import @@ -0,0 +1,34 @@ +[remap] + +importer="font_data_dynamic" +type="FontFile" +uid="uid://3e6fuwt5giyn" +path="res://.godot/imported/templeos_font.ttf-3df095bd9bdc9ad857a60b3667a243a3.fontdata" + +[deps] + +source_file="res://templeos_font.ttf" +dest_files=["res://.godot/imported/templeos_font.ttf-3df095bd9bdc9ad857a60b3667a243a3.fontdata"] + +[params] + +Rendering=null +antialiasing=1 +generate_mipmaps=false +disable_embedded_bitmaps=true +multichannel_signed_distance_field=false +msdf_pixel_range=8 +msdf_size=48 +allow_system_fallback=true +force_autohinter=false +hinting=1 +subpixel_positioning=1 +oversampling=0.0 +Fallbacks=null +fallbacks=[] +Compress=null +compress=true +preload=[] +language_support={} +script_support={} +opentype_features={} diff --git a/text.tres b/text.tres new file mode 100644 index 0000000..33c1755 --- /dev/null +++ b/text.tres @@ -0,0 +1,8 @@ +[gd_resource type="Theme" load_steps=2 format=3 uid="uid://dx1tiwi1lo7om"] + +[ext_resource type="FontFile" uid="uid://3e6fuwt5giyn" path="res://templeos_font.ttf" id="1_3hk8o"] + +[resource] +Label/colors/font_color = Color(0, 0, 0, 1) +Label/font_sizes/font_size = 30 +Label/fonts/font = ExtResource("1_3hk8o") |