summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scenes/microgames/ad/ad_window.gd4
-rw-r--r--scenes/microgames/ad/ad_window.tscn7
2 files changed, 11 insertions, 0 deletions
diff --git a/scenes/microgames/ad/ad_window.gd b/scenes/microgames/ad/ad_window.gd
index e397532..3e3fc33 100644
--- a/scenes/microgames/ad/ad_window.gd
+++ b/scenes/microgames/ad/ad_window.gd
@@ -30,3 +30,7 @@ func _on_close_requested() -> void:
super()
print("Hmm perchance")
win.emit(self)
+
+
+func _on_texture_button_pressed() -> void:
+ OS.shell_open("https://www.youtube.com/watch?v=dQw4w9WgXcQ")
diff --git a/scenes/microgames/ad/ad_window.tscn b/scenes/microgames/ad/ad_window.tscn
index 049e14c..7c98b6e 100644
--- a/scenes/microgames/ad/ad_window.tscn
+++ b/scenes/microgames/ad/ad_window.tscn
@@ -27,6 +27,7 @@
[ext_resource type="Texture2D" uid="uid://x1m2v51rug76" path="res://scenes/microgames/ad/ad_images/wtf.png" id="25_o5yc3"]
[node name="Window" instance=ExtResource("1_gtv65")]
+title = "Check out this special offer [Click Here]"
size = Vector2i(824, 604)
content_scale_size = Vector2i(0, 0)
script = ExtResource("2_h3lwj")
@@ -104,3 +105,9 @@ texture = ExtResource("24_ipkoa")
[node name="wtf" type="Sprite2D" parent="All ads" index="22"]
texture = ExtResource("25_o5yc3")
+
+[node name="TextureButton" type="TextureButton" parent="." index="1"]
+offset_right = 1000.0
+offset_bottom = 1000.0
+
+[connection signal="pressed" from="TextureButton" to="." method="_on_texture_button_pressed"]