public MainWindow()
        {
            if (Process.GetProcessesByName("GamingSupervisor").Length != 1)
            {
                MessageBox.Show(this, "Gaming Supervisor is already running. Close the other instance and try again.", "Error",
                                MessageBoxButton.OK,
                                MessageBoxImage.Information,
                                MessageBoxResult.OK,
                                MessageBoxOptions.DefaultDesktopOnly);

                Application.Current.Shutdown();
            }

            InitializeComponent();

            HideInstructions();
            DescriptionToggle.IsChecked = false;

            Description         = GUIDescription;
            HeroList            = HeroNameItemsControl;
            HeroList.Visibility = Visibility.Collapsed;

            ParserHandler.StartInfoParsing();

            DifficultySelection difficultySelection = new DifficultySelection();

            GUINavigation.Navigate(difficultySelection);
        }
 void Start()
 {
     cam = Camera.mainCamera;
     guin = cam.GetComponent<GUINavigation>();
     mapg = cam.GetComponent<MapGui>();
     zoomedIn = true;
     mdown = false;
     onguidown = false;
     mdowncool = 0;
 }
Ejemplo n.º 3
0
    void Start()
    {
        firstGUI = true;
        selectrelease = false;
        buttonactive = false;
        movedLeft = false;
        movedRight = false;
        musicvol = OptionsValues.musicVolume;
        effectvol = OptionsValues.sfxVolume;
        fullscreen = Screen.fullScreen;
        guin = GetComponent<GUINavigation>();

        res = Screen.resolutions;
        f = 0.0f;
        if (res.Length > 1)
        {
            for (int i = 0; i < res.Length; i++)
                if (res[i].width < 800 || res[i].height < 600)
                    f += 1.0f;
            for (resolution = f; resolution < res.Length && (res[(int)resolution].width != Screen.width || res[(int)resolution].height != Screen.height); resolution += 1) ;
        }
        else
            resolution = 0;
    }
Ejemplo n.º 4
0
 void Start()
 {
     firstGUI = true;
     guin = GetComponent<GUINavigation>();
     prts = GetComponent<PauseReturnToScript>();
 }
Ejemplo n.º 5
0
    // Use this for initialization
    void Start()
    {
        int moduleCount = (int)LevelCreator.LengthConverter(LevelCreator.LEVEL_LENGTH);
        maxScore = moduleCount * 5000;

        maxZ = (moduleCount * 64) - 32;
        HitList = new List<HitAccuracy>();
        soldierAnim = 0;
        Screen.lockCursor = false;
        music.useGlobal = false;
        started = true;
        screencountdown = 1f;
        PERFECT_RUN = true;
        guin = GetComponent<GUINavigation>();
        guin.maxKeys = 0;
        lcs = GetComponent<LevelCompleteScript>();
        lost = false;
        prescreencountdown = 0f;
        countdown = 0;

        if (ObstacleController.PLAYER != null)
            hm = ObstacleController.PLAYER.GetComponent<HeroMovement>();
    }
 // Use this for initialization
 void Start()
 {
     guin = GetComponent<GUINavigation>();
     beforenextdecrease = 1.5f;
     todecrease = -1;
     firstGUI = true;
     timeout = false;
     returned = false;
     newtarget = true;
     completed = false;
     nextIncrement = 0;
     endScore = CurrentGameState.currentScore;
     excellentMultiplier = excellents * excellentScore;
     averageMultiplier = averages * averageScore;
     goodMultiplier = goods * goodScore;
     perfectMultiplier = perfects * perfectScore;
     doubleMultiplier = doubleKills * doubleScore;
     tripleMultiplier = tripleKills * tripleScore;
     chargeKillMultiplier = chargeKills * chargeKillScore;
     if (CurrentGameState.InfiniteMode)
         perfectRunMultiplier = 0;
     else
         perfectRunMultiplier = perfectRun ? perfectRunScore * LevelCreator.LEVEL_LENGTH : 0;
     displayedScore = endScore;
     //print("run: " + perfectRun + " score: " + perfectRunScore);
     calculatedScore = endScore + distanceScore + excellentMultiplier + averageMultiplier + goodMultiplier + perfectMultiplier + doubleMultiplier + tripleMultiplier + chargeKillMultiplier + perfectRunMultiplier;
 }
Ejemplo n.º 7
0
    void Start()
    {
        if (CurrentGameState.highscorecondition == EndState.GaveUp)
            textselect = Random.Range(0, gaveUpText.Length);
        else
            textselect = Random.Range(0, overrunText.Length);
        firstGUI = true;
        started = true;
        countdown = 1.2f;
        aftercountdown = 1.0f;
        returned = false;
        gaveup = false;
        decreaseComplete = false;
        music.useGlobal = false;

        score = CurrentGameState.currentScore;
        newscore = score / 2;
        pointsDecreaser = newscore / 59L;
        guin = GetComponent<GUINavigation>();
    }
Ejemplo n.º 8
0
 void Start()
 {
     firstGUI = true;
     music.useGlobal = false;
     started = true;
     countdown = 1f;
     aftercountdown = 0.8f;
     guin = GetComponent<GUINavigation>();
 }
Ejemplo n.º 9
0
 void Start()
 {
     firstGUI = true;
     scroll = 0;
     guin = GetComponent<GUINavigation>();
     mms = GetComponent<MainMenuScript>();
 }
Ejemplo n.º 10
0
 void Start()
 {
     aftercountdown = 1.2f;
     countdown = 1f;
     firstGUI = true;
     stopped = false;
     guin = GetComponent<GUINavigation>();
 }
Ejemplo n.º 11
0
 void Start()
 {
     maxPages = 5;
     screenNr = 0;
     movedLeft = false;
     movedRight = false;
     firstGUI = true;
     guin = GetComponent<GUINavigation>();
 }
Ejemplo n.º 12
0
 void Start()
 {
     nextpressedcooldown = 0;
     nextpressed = false;
     guin = GetComponent<GUINavigation>();
     if (CurrentGameState.InfiniteMode)
         highscoreNr = 1;
     else
         highscoreNr = 0;
     finalchar = -1;
     keyDownA = false;
     keyDownB = false;
     movedLeft = false;
     movedRight = false;
     movedUp = false;
     movedDown = false;
     firstGUI = true;
     setname = "";
     if (!mainMenu)
         started = true;
     else
         started = false;
     returned = false;
     countdown = 1f;
     aftercountdown = 1f;
     if (!mainMenu)
         if (CurrentGameState.currentScore >= CurrentGameState.MinimumHighscoreRequirement())
             addnewScore = true;
         else
             addnewScore = false;
 }
Ejemplo n.º 13
0
 void Start()
 {
     GameObject o = GameObject.Find("PreviousLineCreator");
     prevl = o.GetComponent<PreviousLines>();
     guin = GetComponent<GUINavigation>();
     guin.maxKeys = 0;
     backDown = false;
     nextDown = false;
     keyLocation = -1;
     firstGUI = true;
     music.useGlobal = false;
     CurrentGameState.previousScore = CurrentGameState.currentScore;
     ResetScroll();
     stopped = false;
     startReset = true;
     startHero = true;
     started = true;
     Time.timeScale = 50;
     countdown = 1f;
     startcountdown = 50f;
 }
Ejemplo n.º 14
0
 void Start()
 {
     aftercountdown = 1.2f;
     firstGUI = true;
     guin = GetComponent<GUINavigation>();
     pms = GetComponent<PauseMenuScript>();
 }