diff options
author | Zoey Kitt <zoey.kitt@outlook.com> | 2024-11-16 18:33:37 -0600 |
---|---|---|
committer | Zoey Kitt <zoey.kitt@outlook.com> | 2024-11-16 18:33:37 -0600 |
commit | 977521849bd7efa82152e0f3d3676c300e559bde (patch) | |
tree | 958b52120d9abc6d79eb04c0c8822f7a9c36e658 | |
parent | 518fa16866161c569f941ea6d25e2ecbf7a41e4c (diff) |
Make the main window just be a stock ticker
-rw-r--r-- | project.godot | 2 | ||||
-rw-r--r-- | scenes/main.gd | 3 | ||||
-rw-r--r-- | scenes/main.tscn | 21 |
3 files changed, 12 insertions, 14 deletions
diff --git a/project.godot b/project.godot index d7d2121..b52b5df 100644 --- a/project.godot +++ b/project.godot @@ -17,6 +17,8 @@ config/icon="res://icon.svg" [display] +window/size/viewport_width=1280 +window/size/viewport_height=720 window/subwindows/embed_subwindows=false window/per_pixel_transparency/allowed=true diff --git a/scenes/main.gd b/scenes/main.gd index 7e65562..2c9cda5 100644 --- a/scenes/main.gd +++ b/scenes/main.gd @@ -4,9 +4,6 @@ extends Node2D func _ready() -> void: _on_microgame_spawn_timer_timeout() - # Spawn Clippette??? - $Clippette.visible = true - # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta: float) -> void: diff --git a/scenes/main.tscn b/scenes/main.tscn index af7a6d2..053fd5d 100644 --- a/scenes/main.tscn +++ b/scenes/main.tscn @@ -300,32 +300,31 @@ autostart = true [node name="Meow" type="AudioStreamPlayer" parent="."] stream = ExtResource("3_gatxj") -[node name="Stock ticker window" type="Window" parent="."] -position = Vector2i(1000, 342) -size = Vector2i(1280, 720) - -[node name="Stock ticker" parent="Stock ticker window" instance=ExtResource("4_0ankd")] +[node name="Stock ticker" parent="." instance=ExtResource("4_0ankd")] [node name="Clippette" parent="." instance=ExtResource("5_6agvn")] visible = false -[node name="Score window" type="Node2D" parent="."] +[node name="Score window (real)" type="Window" parent="."] +visible = false + +[node name="Score window" type="Node2D" parent="Score window (real)"] script = ExtResource("6_gvoxs") -[node name="Background" type="Sprite2D" parent="Score window"] +[node name="Background" type="Sprite2D" parent="Score window (real)/Score window"] modulate = Color(0.796078, 0.796078, 0.796078, 1) light_mask = 3 scale = Vector2(1319, 300) texture = ExtResource("2_fkfik") centered = false -[node name="Rotating fish" type="AnimatedSprite2D" parent="Score window"] +[node name="Rotating fish" type="AnimatedSprite2D" parent="Score window (real)/Score window"] position = Vector2(1060, 149) sprite_frames = SubResource("SpriteFrames_ke268") autoplay = "default" frame_progress = 0.387952 -[node name="Score" type="Label" parent="Score window"] +[node name="Score" type="Label" parent="Score window (real)/Score window"] offset_top = 2.0 offset_right = 1302.0 offset_bottom = 197.0 @@ -337,5 +336,5 @@ text = "Net worth: $00000000000000000000" [connection signal="timeout" from="Microgame spawn timer" to="." method="_on_microgame_spawn_timer_timeout"] -[connection signal="buy" from="Stock ticker window/Stock ticker" to="Score window" method="_on_stock_ticker_buy"] -[connection signal="sell" from="Stock ticker window/Stock ticker" to="Score window" method="_on_stock_ticker_sell"] +[connection signal="buy" from="Stock ticker" to="Score window (real)/Score window" method="_on_stock_ticker_buy"] +[connection signal="sell" from="Stock ticker" to="Score window (real)/Score window" method="_on_stock_ticker_sell"] |