57 lines
1.4 KiB
GDScript
57 lines
1.4 KiB
GDScript
extends Node2D
|
|
|
|
func _ready():
|
|
if not get_tree().root.has_node("Root"):
|
|
return ;
|
|
|
|
CheckForParkingEpilog();
|
|
|
|
GallerySingleton.AddBackground("PoliceStation");
|
|
|
|
ShowImages();
|
|
|
|
var sfxPath = "res://resources/audio/sfx/ventilator_potolok.ogg"
|
|
get_tree().root.get_node("Root").SetSFXforBGM(sfxPath)
|
|
|
|
func CheckForParkingEpilog():
|
|
var chosen = Dialogic.get_variable("Chosen_Girl");
|
|
if chosen == "Black" or chosen == "Green" or chosen == "Purple":
|
|
Dialogic.set_variable("Parking", "1");
|
|
|
|
func ShowImages():
|
|
var dict = ProgressAchievementsSingleton.CreateEpilogMinigameImages();
|
|
|
|
for i in dict:
|
|
var eName = i["name"].to_lower();
|
|
var node:Sprite = get_node(str("removables/", eName));
|
|
node.visible = true;
|
|
if i.has("location"):
|
|
node.position = i["location"];
|
|
|
|
func InitForGallery()->Array:
|
|
scale = Vector2(0.5, 0.5)
|
|
|
|
for i in $removables.get_children():
|
|
i.visible = true;
|
|
|
|
FUCKTexture($Node2D / Viewport / police3d / Position3D / wing4);
|
|
|
|
return [];
|
|
|
|
func SetSettings(button):
|
|
pass
|
|
|
|
func FUCKTexture(control):
|
|
var timer = Timer.new();
|
|
add_child(timer);
|
|
control.call_deferred("set_offset", Vector2(0, - 541));
|
|
timer.set_wait_time(0.1);
|
|
timer.set_one_shot(true);
|
|
timer.start();
|
|
timer.connect("timeout", self, "FUCKFUCK", [control, timer]);
|
|
|
|
func FUCKFUCK(control, timer):
|
|
control.call_deferred("set_offset", Vector2(0, - 540));
|
|
|
|
timer.disconnect("timeout", self, "FUCKFUCK")
|
|
remove_child(timer);
|