
"use strict";

this.name    = "Wildefire_HELP"; 
this.version = "1.0";

/* ========================================================
		THIS ARRAY DOES NOTHING IN THIS VERSION
=========================================================== */

    // this._helpFiles = new Array(8);

/* ========================================================
		A COUNTER THAT UPDATES THE DAY
=========================================================== */

    this.startUpComplete = function () {
        "use strict";
        if (player.ship.equipmentStatus("EQ_GAL_DRIVE") === "EQUIPMENT_OK" &&
            player.ship.docked) {
            this.shipDockedWithStation(player.ship.dockedStation);
        }
     // delete this.startUpComplete;
    }

    this.playerBoughtEquipment = function (equipment) {
        "use strict";
        if (equipment === "EQ_GAL_DRIVE") {
            this.shipDockedWithStation(player.ship.dockedStation);
            mission.setInstructions("Don't forget to RTFM of your new GalDrive programmer!", this.name);
        }
    }

/* ========================================================
		AN INTERFACE FOR THE F4 SCREEN
=========================================================== */

    this.shipDockedWithStation = function (station) {
        "use strict";
        station.setInterface("Wildefire_HELP",
            {title: "Wildefire avionics",
             category: expandDescription("[interfaces-category-help]"),
          // category: expandDescription("[interfaces-category-uncategorised]"),
             summary: "New images daily! No-one reads README files!",
             callback: this._wildefire_showHelp.bind(this)});
    }

    this.shipWillLaunchFromStation = function () {
        "use strict";
        player.ship.dockedStation.setInterface("Wildefire_HELP", null);
    }

/* ========================================================
		SEXY CYBORG CALENDAR GIRLS
=========================================================== */

    this._wildefire_showHelp = function () {
        "use strict";
        mission.setInstructions(null, this.name);
        var chart = galaxyNumber + 2;
        mission.runScreen({
            screenID: "WILDEFIRE_SCREEN_GALDRIVE",
            allowInterrupt: true,
            exitScreen: "GUI_SCREEN_INTERFACES",
            background: {name: "new_galdrive_programmer_" + chart + ".png", height: 480},
            title: "Chart Image " + chart,
            message: "Pithy commentary goes here."
        });
    }

/* ========================================================
			THE END
=========================================================== */