﻿RequireVersions "1.9.32.0", "", "", "306"

If GetEspmStatus("Update.ESM") < 0
	Cancel "Update.ESM not found.\nInstallation aborted."
ElseIf GetEspmStatus("Update.ESM") == 0
	Cancel "Update.ESM not activated.\nInstallation aborted."
EndIf
If GetEspmStatus("SexLab.ESM") < 0
	Cancel "SexLab.ESM not found.\nInstallation aborted."
ElseIf GetEspmStatus("SexLab.ESM") == 0
	Cancel "SexLab.ESM not activated.\nInstallation aborted."
EndIf

DeSelectAll
SelectSubPackage "00 Base"

SelectOne "Installer Language/Installationssprache", \
    "|English", "Chooses english as installer language.\n\nThis has nothing to do with the language this mod is going to be installed in.", "FOMOD/Pics/Eng.JPG", \
    "Deutsch", "Wählt die deutsche Sprache für die Installation.\n\nDies hat nichts mit der Sprache, der zu installierenden Mod zu tun.", "FOMOD/Pics/Deu.JPG"
    Case "English"
		SuppTitle = "<< Support Files >>"
		SuppSrcOption="Script Sources"
		SuppSrc="Installs the SL Kidnapped Redux source scripts (loose files).\nThis is of interesst for modders only. If you're just playing the game and have no plans to mod, you do not need to install these files."
		SuppDocOption="Documentation"
		SuppDoc="Installs 3 SL Kidnapped Redux PDF documents about translating the mod, integration with the mod and about making your own scenarios.\nThe file will be installed in Data/Docs/SL Kidnapped Redux."
		Break
    Case "Deutsch"
		SuppTitle = "<< Unterstützung >>"
		SuppSrcOption="Quellskripte"
		SuppSrc="Dies installiert die Quellskripte von SL Kidnapped Redux (lose Dateien).\nDiese sind nur für Modder interessant. Wenn Du also nur vorhast den Mod zu spielen, dann benötigst die diese Dateien nicht."
		SuppDocOption="Dokumentation"
		SuppDoc="Dies installiert 3 SL Kidnapped Redux PDF-Dokumente bezüglich Übersetzungen der Mod, der Integration mit der Mod und dem Erstellen eigener Szenarien.\nDie Datei wird nach Data\Docs\SL Kidnapped Redux installiert."
		Break
EndSelect

SelectMany SuppTitle, \
	SuppSrcOption, SuppSrc, "FOMOD/Pics/CK.JPG", \
	SuppDocOption, SuppDoc, "FOMOD/Pics/Docs.JPG"
	Case SuppSrcOption
		Src = 1
		Break
	Case SuppDocOption
		Doc = 1
		Break
EndSelect

If Src == 1
	SelectSubPackage "10 Source Scripts"
EndIf
If Doc == 1
	SelectSubPackage "99 Docs"
EndIf
