summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scenes/microgames/fishin/fishin.gd3
-rw-r--r--scenes/stockticker/Stock Ticker.tscn1
-rw-r--r--scenes/stockticker/transactions.gd6
3 files changed, 8 insertions, 2 deletions
diff --git a/scenes/microgames/fishin/fishin.gd b/scenes/microgames/fishin/fishin.gd
index 475a97a..fa8d588 100644
--- a/scenes/microgames/fishin/fishin.gd
+++ b/scenes/microgames/fishin/fishin.gd
@@ -109,7 +109,7 @@ func _on_texture_button_button_up() -> void:
var fish_choice: FishType = randi_range(0,len(fishes))
# hehe
- fish_choice = FishType.GAR
+ fish_choice = FishType.SALMON
match fish_choice:
FishType.GAR:
@@ -117,6 +117,7 @@ func _on_texture_button_button_up() -> void:
fish_chosen.emit(gar.get_node("GarSprite"), "Gar :)")
FishType.SALMON:
salmon.visible = true
+ fish_chosen.emit(salmon.get_node("SalmonSprite"), "Salmon")
FishType.BASS:
bass.visible = true
FishType.HUMUHUMUNUKUNUKUAPUA_A:
diff --git a/scenes/stockticker/Stock Ticker.tscn b/scenes/stockticker/Stock Ticker.tscn
index 6afa1af..5a56e1b 100644
--- a/scenes/stockticker/Stock Ticker.tscn
+++ b/scenes/stockticker/Stock Ticker.tscn
@@ -30,6 +30,7 @@ scale = Vector2(0.671875, 0.622)
texture = ExtResource("9_bv8iw")
[node name="Label" type="Label" parent="."]
+visible = false
offset_left = 823.0
offset_top = 588.0
offset_right = 1082.0
diff --git a/scenes/stockticker/transactions.gd b/scenes/stockticker/transactions.gd
index 98cad35..3a56c5a 100644
--- a/scenes/stockticker/transactions.gd
+++ b/scenes/stockticker/transactions.gd
@@ -6,6 +6,8 @@ extends Node2D
signal buy(amount: Variant)
signal sell(amount: Variant)
+var fish_name: String
+
func _on_stonks_buy(amount: Variant) -> void:
print("-$%s" % amount.toString())
buy.emit(amount)
@@ -19,6 +21,7 @@ func _on_stonks_sell(amount: Variant) -> void:
# Scope creep!
func start():
$Timer.start()
+ get_window().title = fish_name
func set_icon(sprite: Sprite2D):
@@ -27,4 +30,5 @@ func set_icon(sprite: Sprite2D):
func _on_fishin_fish_chosen(fish_sprite: Sprite2D, fish_name: String) -> void:
$Sprite2D.texture = fish_sprite.texture
- $Label.text = fish_name
+ self.fish_name = fish_name
+