Inheritance: BasePanel
Beispiel #1
0
 public void MainMenu()
 {
     optionsPanel = GameObject.FindObjectOfType<OptionsPanel>();
     if (optionsPanel == null)
     {
         levelManager.MainMenu();
     }
 }
Beispiel #2
0
 public void ResumeGame()
 {
     optionsPanel = GameObject.FindObjectOfType<OptionsPanel>();
     if (optionsPanel == null)
     {
         gameData.PauseGame(false);
     }
 }
Beispiel #3
0
 public void ShowOptions()
 {
     optionsPanel = GameObject.FindObjectOfType<OptionsPanel>();
     if (optionsPanel == null)
     {
         optionsPanel.ShowOptionsPanel(true);
     }
 }
Beispiel #4
0
        private void changePanel(OptionsPanel panel) {
            if (currentPanel == panel)
                return;

            if (currentPanel != null)
                container.Controls.Clear();
            currentPanel = panel;
            container.Controls.Add((Control)currentPanel);
        }
Beispiel #5
0
 void Awake()
 {
     if (optionsPanel == null)
     {
         DontDestroyOnLoad(gameObject);
         optionsPanel = this;
     }
     else if (this != optionsPanel)
     {
         Destroy(gameObject);
     }
 }
Beispiel #6
0
 void Awake()
 {
     Instance = this;
     this.gameObject.SetActive(false);
 }
Beispiel #7
0
    // Update is called once per frame
    new void Update()
    {
        base.Update();
        if (!isMenuScreen)
        {
            //populate HUD with default values
            int playerScore = gameData.GetPlayerScore();
            scoreTextField.text = ((playerScore > 9999) ? playerScore.ToString() : (scoreText + playerScore));
            livesTextField.text = livesText + gameData.GetPlayerRemainingLives();

            if (Input.GetKeyDown(KeyCode.LeftArrow) || Input.GetKeyDown(KeyCode.A) || gameData.IsLeftPaddledown())
            {
                gameData.SetPaddle("left", true);
            }
            if (Input.GetKeyUp(KeyCode.LeftArrow) || Input.GetKeyUp(KeyCode.A) || !gameData.IsLeftPaddledown())
            {
                gameData.SetPaddle("left", false);
            }
            if (Input.GetKeyDown(KeyCode.RightArrow) || Input.GetKeyDown(KeyCode.D) || gameData.IsRightPaddledown())
            {
                gameData.SetPaddle("right", true);
            }
            if (Input.GetKeyUp(KeyCode.RightArrow) || Input.GetKeyUp(KeyCode.D) || !gameData.IsRightPaddledown())
            {
                gameData.SetPaddle("right", false);
            }

            if (!gameData.IsPlayerReady())
            {

                //wait for player to hit space bar
                if (Input.GetKeyDown(KeyCode.Space))
                {
                    HandlePlayerReady();
                }

                //if player has not seen the instructions, show them else show ready panel
                if (isFirstLevel && !gameData.HasSeenInstructions())
                {
                    instructionsPanel.SetActive(true);
                    readyPanel.SetActive(false);

                }
                else
                {
                    instructionsPanel.SetActive(false);
                    readyPanel.SetActive(true);
                }

            }
            else
            {
                optionsPanel = GameObject.FindObjectOfType<OptionsPanel>();
                //listen for pause keys
                if (Input.GetKeyDown(KeyCode.P) || Input.GetKeyDown(KeyCode.Escape)/* || Input.GetKey(KeyCode.Menu)*/)
                {

                    if (optionsPanel == null)
                    {
                        gameData.PauseGame(!gameData.IsGamePaused());
                        if (gameData.IsGamePaused())
                        {
                            if (Application.platform != RuntimePlatform.Android && Application.platform != RuntimePlatform.IPhonePlayer)
                            {
                                Cursor.visible = true;
                            }
                        }
                        else
                        {
                            Cursor.visible = false;
                        }
                    }
                }



                //if game is paused, show the paused panel else dont
                if (optionsPanel == null)
                {
                    if (gameData.IsGamePaused())
                    {
                        pausePanel.SetActive(true);
                        pausedTextField.text = pausedText;
                        pausedTextFieldShadow.text = pausedText;
                    }
                    else
                    {
                        pausePanel.SetActive(false);
                        pausedTextField.text = "";
                        pausedTextFieldShadow.text = "";

                    }
                }

                //hide other panels
                readyPanel.SetActive(false);
                instructionsPanel.SetActive(false);
            }
        }
        else
        {
            //we are in a menu screen
            if (Application.platform != RuntimePlatform.Android && Application.platform != RuntimePlatform.IPhonePlayer)
            {
                Cursor.visible = true;
            }
        }

        if (Application.platform == RuntimePlatform.Android || Application.platform == RuntimePlatform.IPhonePlayer)
        {
            Cursor.visible = false;
        }

    }
Beispiel #8
0
    // Use this for initialization
    new void Start()
    {
        base.Start();
        if (!isMenuScreen)
        {
            scoreTextField.text = "";
            livesTextField.text = "";
            pausedTextField.text = "";
            pausedTextFieldShadow.text = "";
            pausePanel.SetActive(false);
            readyPanel.SetActive(false);
            instructionsPanel.SetActive(false);

        }
        else {
            if (isStartMenu)
            {
                SetupHighScoresPanel();
                difficultySlider.value = gameData.GetDifficultyLevel();
            }
            if (isEndScreen)
            {
                SetupHighScoresPanel();
                scoreTextField.text = gameData.GetPlayerScore().ToString();
                //if player got high score, show name dialog instead of loading next level
                if (gameData.GetPlayerScoreRank() < 26)
                {
                    //gameData.SavePlayerScore();
                    ToggleHighScoreNameDialog(true, "");
                    return;
                }

            }
        }
        optionsPanel = GameObject.FindObjectOfType<OptionsPanel>();
        
    }
Beispiel #9
0
        public static void OptionsPanel_StartInit(On.OptionsPanel.orig_StartInit orig, OptionsPanel self)
        {
            orig(self);
            Slider privatePart = Utils.GetPrivatePart <Slider, OptionsPanel>(self, "m_sldFoVSplit");

            if (privatePart != null)
            {
                privatePart.maxValue = 90f;
            }
        }
Beispiel #10
0
 void LoadForm()
 {
     formLoaded                = true;
     detector                  = new DeviceDetector(false);
     detector.DeviceChanged   += new DeviceDetector.DeviceDetectorEventHandler(detector_DeviceChanged);
     BusyLoadingCircle.Visible = false;
     BusyLoadingCircle.Top     = HeaderPictureBox.Top;
     BusyLoadingCircle.Left    = HeaderPictureBox.Left;
     defaultBody               = HelpBodyLabel.Text;
     //if (DesignMode) return;
     // init default
     OptionsPanel.InitOptions();
     // Set status.
     StatusSaveLabel.Visible   = false;
     StatusEventsLabel.Visible = false;
     // Load Tab pages.
     ControlPages    = new TabPage[4];
     ControlPages[0] = Pad1TabPage;
     ControlPages[1] = Pad2TabPage;
     ControlPages[2] = Pad3TabPage;
     ControlPages[3] = Pad4TabPage;
     //BuletImageList.Images.Add("bullet_square_glass_blue.png", new Bitmap(Helper.GetResource("Images.bullet_square_glass_blue.png")));
     //BuletImageList.Images.Add("bullet_square_glass_green.png", new Bitmap(Helper.GetResource("Images.bullet_square_glass_green.png")));
     //BuletImageList.Images.Add("bullet_square_glass_grey.png", new Bitmap(Helper.GetResource("Images.bullet_square_glass_grey.png")));
     //BuletImageList.Images.Add("bullet_square_glass_red.png", new Bitmap(Helper.GetResource("Images.bullet_square_glass_red.png")));
     //BuletImageList.Images.Add("bullet_square_glass_yellow.png", new Bitmap(Helper.GetResource("Images.bullet_square_glass_yellow.png")));
     foreach (var item in ControlPages)
     {
         item.ImageKey = "bullet_square_glass_grey.png";
     }
     // Hide status values.
     StatusDllLabel.Text     = "";
     MainStatusStrip.Visible = false;
     // Check if ini and dll is on disk.
     if (!CheckFiles(true))
     {
         return;
     }
     CheckEncoding(SettingManager.TmpFileName);
     CheckEncoding(SettingManager.IniFileName);
     // Show status values.
     MainStatusStrip.Visible = true;
     // Load PAD controls.
     ControlPads = new Controls.PadControl[4];
     for (int i = 0; i < ControlPads.Length; i++)
     {
         ControlPads[i]      = new Controls.PadControl(i);
         ControlPads[i].Name = string.Format("ControlPad{0}", i + 1);
         ControlPads[i].Dock = DockStyle.Fill;
         ControlPages[i].Controls.Add(ControlPads[i]);
         ControlPads[i].InitPadControl();
     }
     // Init presets. Execute only after name of cIniFile is set.
     SettingsDatabasePanel.InitPresets();
     // Allow events after PAD control are loaded.
     MainTabControl.SelectedIndexChanged += new System.EventHandler(this.MainTabControl_SelectedIndexChanged);
     // Load about control.
     ControlAbout      = new Controls.AboutControl();
     ControlAbout.Dock = DockStyle.Fill;
     AboutTabPage.Controls.Add(ControlAbout);
     // Update settings map.
     UpdateSettingsMap();
     ReloadXinputSettings();
     ////InitDirectInputTab();
     //// Timer will execute ReloadXInputLibrary();
     ////XInput.ReLoadLibrary(cXinput3File);
     ////XInput.ReLoadLibrary(cXinput3File);
     //// start capture events.
     if (WinAPI.IsVista && WinAPI.IsElevated() && WinAPI.IsInAdministratorRole)
     {
         this.Text += " (Administrator)";
     }
     ////ReloadXInputLibrary();
 }
Beispiel #11
0
 public void InjectDependencies(OptionsPanel optionsPanel, UIStateMachineBrain brain)
 {
     OptionsPanel = optionsPanel;
     Brain        = brain;
 }
Beispiel #12
0
    // Update is called once per frame
    void Update()
    {
        if (!isMenuScreen)
        {
            //populate HUD with default values
            int playerScore = gameData.GetPlayerScore();
            scoreTextField.text = ((playerScore > 9999) ? playerScore.ToString() : (scoreText + playerScore));
            livesTextField.text = livesText + gameData.GetPlayerRemainingLives();

            if (Input.GetKeyDown(KeyCode.LeftArrow) || Input.GetKeyDown(KeyCode.A) || gameData.IsLeftPaddledown())
            {
                gameData.SetPaddle("left", true);
            }
            if (Input.GetKeyUp(KeyCode.LeftArrow) || Input.GetKeyUp(KeyCode.A) || !gameData.IsLeftPaddledown())
            {
                gameData.SetPaddle("left", false);
            }
            if (Input.GetKeyDown(KeyCode.RightArrow) || Input.GetKeyDown(KeyCode.D) || gameData.IsRightPaddledown())
            {
                gameData.SetPaddle("right", true);
            }
            if (Input.GetKeyUp(KeyCode.RightArrow) || Input.GetKeyUp(KeyCode.D) || !gameData.IsRightPaddledown())
            {
                gameData.SetPaddle("right", false);
            }
            if (Input.GetKeyUp(KeyCode.Space))
            {
                gameData.FirePlayerProjectile();
            }

            if (!gameData.IsPlayerReady())
            {
                //wait for player to hit space bar
                if (Input.GetKeyDown(KeyCode.Space))
                {
                    HandlePlayerReady();
                }

                //if player has not seen the instructions, show them else show ready panel
                if (isFirstLevel && !gameData.PlayerViewedInstructions())
                {
                    instructionsPanel.SetActive(true);
                    readyPanel.SetActive(false);
                }
                else
                {
                    instructionsPanel.SetActive(false);
                    readyPanel.SetActive(true);
                }
            }
            else
            {
                //listen for pause keys
                if (Input.GetKeyDown(KeyCode.P) || Input.GetKeyDown(KeyCode.Escape) || Input.GetKey(KeyCode.Menu))
                {
                    OptionsPanel optionsPanel = GameObject.FindObjectOfType <OptionsPanel>();
                    if (optionsPanel != null)
                    {
                        optionsPanel.ShowOptionsPanel(false);
                    }
                    else
                    {
                        gameData.PauseGame(!gameData.IsGamePaused());
                        if (gameData.IsGamePaused())
                        {
                            Screen.showCursor = true;
                        }
                        else
                        {
                            Screen.showCursor = false;
                        }
                    }
                }



                //if game is paused, show the paused panel else dont
                if (gameData.IsGamePaused())
                {
                    pausePanel.SetActive(true);
                    pausedTextField.text = pausedText;
                }
                else
                {
                    pausePanel.SetActive(false);
                    pausedTextField.text = "";
                }

                //hide other panels
                readyPanel.SetActive(false);
                instructionsPanel.SetActive(false);
            }
        }
        else
        {
            //we are in a menu screen
            Screen.showCursor = true;
        }
    }
Beispiel #13
0
 private void Awake()
 {
     optionsPanel = GetComponent <OptionsPanel>();
 }
Beispiel #14
0
 public bool IsOptionsPanelDisplayed()
 {
     return(!OptionsPanel.GetAttribute("style").Contains("-180px;"));
 }
 private void GeneralButton_Click(object sender, EventArgs e)
 {
     IsFiltering = false;
     OptionsPanel.Select();
     UpdateOptions();
 }
Beispiel #16
0
 void Awake()
 {
     optionsPanel = GetComponent <OptionsPanel>();
     helpPanel    = GetComponent <HelpPanel>();
 }
Beispiel #17
0
 public ExposureUI(CameraOptionsUI options, OptionsPanel panel) : base(options, panel, null)
 {
 }
Beispiel #18
0
        private void optionsToolStripButton_Click(object sender, EventArgs e)
        {
            OptionsPanel options = new OptionsPanel();

            options.ShowDialog(this);
        }
 public GainUI(CameraOptionsUI options, OptionsPanel panel) : base(options, panel, null)
 {
 }
Beispiel #20
0
        private void HandleOptionsFormShown(object sender, EventArgs e)
        {
            var optionsForm = (OptionsForm)sender;

            OptionsPanel.Create(optionsForm, _options);
        }
        /// <summary>
        /// Загрузка контента (вызывается после Initialize())
        /// </summary>
        protected override void LoadContent()
        {
            backgroundFont = Content.Load <SpriteFont>(Fnames.OldEnglishTextMT);
            bFont          = Content.Load <SpriteFont>(Fnames.ButtonFont);

            #region Buttons

            int start = 300;
            int step  = (cfg.ResolutionHeight == 600) ? 65 : 50;
            int count = 0;

            Button Continue = new Button(MultiSprite.CreateSprite(Content, spriteBatch, Fnames.ContinueB, new Vector2(Window.ClientBounds.Width / 2f - 122, Window.ClientBounds.Height / 1000f * (start + step * count++)), new Vector2(244, 36), Vector2.One),
                                         CreateSound3D(Content, Fnames.UIButtonClick),
                                         CreateSound3D(Content, Fnames.UIButtonSelect),
                                         bFont);
            Button New = new Button(MultiSprite.CreateSprite(Content, spriteBatch, Fnames.NewB, new Vector2(Window.ClientBounds.Width / 2f - 122, Window.ClientBounds.Height / 1000f * (start + step * count++)), new Vector2(244, 36), Vector2.One),
                                    CreateSound3D(Content, Fnames.UIButtonClick),
                                    CreateSound3D(Content, Fnames.UIButtonSelect),
                                    bFont);
            Button Save = new Button(MultiSprite.CreateSprite(Content, spriteBatch, Fnames.SaveB, new Vector2(Window.ClientBounds.Width / 2f - 122, Window.ClientBounds.Height / 1000f * (start + step * count++)), new Vector2(244, 36), Vector2.One),
                                     CreateSound3D(Content, Fnames.UIButtonClick),
                                     CreateSound3D(Content, Fnames.UIButtonSelect),
                                     bFont);
            Button Load = new Button(MultiSprite.CreateSprite(Content, spriteBatch, Fnames.LoadB, new Vector2(Window.ClientBounds.Width / 2f - 122, Window.ClientBounds.Height / 1000f * (start + step * count++)), new Vector2(244, 36), Vector2.One),
                                     CreateSound3D(Content, Fnames.UIButtonClick),
                                     CreateSound3D(Content, Fnames.UIButtonSelect),
                                     bFont);
            Button Options = new Button(MultiSprite.CreateSprite(Content, spriteBatch, Fnames.OptionsB, new Vector2(Window.ClientBounds.Width / 2f - 122, Window.ClientBounds.Height / 1000f * (start + step * count++)), new Vector2(244, 36), Vector2.One),
                                        CreateSound3D(Content, Fnames.UIButtonClick),
                                        CreateSound3D(Content, Fnames.UIButtonSelect),
                                        bFont);
            Button Credits = new Button(MultiSprite.CreateSprite(Content, spriteBatch, Fnames.CreditsB, new Vector2(Window.ClientBounds.Width / 2f - 122, Window.ClientBounds.Height / 1000f * (start + step * count++)), new Vector2(244, 36), Vector2.One),
                                        CreateSound3D(Content, Fnames.UIButtonClick),
                                        CreateSound3D(Content, Fnames.UIButtonSelect),
                                        bFont);
            Button Exit = new Button(MultiSprite.CreateSprite(Content, spriteBatch, Fnames.ExitGlobalB, new Vector2(Window.ClientBounds.Width / 2f - 122, Window.ClientBounds.Height / 1000f * (start + step * count++)), new Vector2(244, 36), Vector2.One),
                                     CreateSound3D(Content, Fnames.UIButtonClick),
                                     CreateSound3D(Content, Fnames.UIButtonSelect),
                                     bFont);
            Continue.Text          = "";
            Continue.Click        += new EventHandler <MouseElementEventArgs>(Continue_Click);
            Continue.MouseMove    += new EventHandler <MouseElementEventArgs>(Button_MouseMove);
            Continue.MouseMoveOut += new EventHandler <MouseElementEventArgs>(Button_MouseMoveOut);
            Continue.Visible       = isContinue = false;
            continueB              = Continue;

            New.Text          = "";
            New.Click        += new EventHandler <MouseElementEventArgs>(New_Click);
            New.MouseMove    += new EventHandler <MouseElementEventArgs>(Button_MouseMove);
            New.MouseMoveOut += new EventHandler <MouseElementEventArgs>(Button_MouseMoveOut);

            Save.Text          = "";
            Save.Click        += new EventHandler <MouseElementEventArgs>(Save_Click);
            Save.MouseMove    += new EventHandler <MouseElementEventArgs>(Button_MouseMove);
            Save.MouseMoveOut += new EventHandler <MouseElementEventArgs>(Button_MouseMoveOut);

            Load.Text          = "";
            Load.Click        += new EventHandler <MouseElementEventArgs>(Load_Click);
            Load.MouseMove    += new EventHandler <MouseElementEventArgs>(Button_MouseMove);
            Load.MouseMoveOut += new EventHandler <MouseElementEventArgs>(Button_MouseMoveOut);

            Options.Text          = "";
            Options.Click        += new EventHandler <MouseElementEventArgs>(Options_Click);
            Options.MouseMove    += new EventHandler <MouseElementEventArgs>(Button_MouseMove);
            Options.MouseMoveOut += new EventHandler <MouseElementEventArgs>(Button_MouseMoveOut);

            Credits.Text          = "";
            Credits.Click        += new EventHandler <MouseElementEventArgs>(Credits_Click);
            Credits.MouseMove    += new EventHandler <MouseElementEventArgs>(Button_MouseMove);
            Credits.MouseMoveOut += new EventHandler <MouseElementEventArgs>(Button_MouseMoveOut);

            Exit.Text          = "";
            Exit.Click        += new EventHandler <MouseElementEventArgs>(Exit_Click);
            Exit.MouseMove    += new EventHandler <MouseElementEventArgs>(Button_MouseMove);
            Exit.MouseMoveOut += new EventHandler <MouseElementEventArgs>(Button_MouseMoveOut);

            buttons.Add(Continue);
            buttons.Add(New);
            buttons.Add(Save);
            buttons.Add(Load);
            buttons.Add(Options);
            buttons.Add(Credits);
            buttons.Add(Exit);

            #endregion

            #region Panels

            string text = "Do you really want to exit?";
            exitApplyPanel              = new ApplyPanel(this, Content, Sprite.CreateSprite(Content, Fnames.Panel, new Vector2(Window.ClientBounds.Width / 3f, Window.ClientBounds.Height / 3f), new Vector2(780 * (float)Window.ClientBounds.Width / 1280f / 2f, 640 * (float)Window.ClientBounds.Height / 1024f / 3f)), text);
            exitApplyPanel.ApplyAction += new Action(() => Game.Exit());
            exitApplyPanel.ExitAction  += new Action(() => exitApplyPanel.Visible = false);
            exitApplyPanel.Enabled     += new EventHandler <EventArgs>(panel_Enabled);
            exitApplyPanel.Disabled    += new EventHandler <EventArgs>(panel_Disabled);

            optionsPanel              = new OptionsPanel(this, Content, Sprite.CreateSprite(Content, Fnames.Panel, new Vector2(Window.ClientBounds.Width / 5.2f, Window.ClientBounds.Height / 6.8f), new Vector2(780 * (float)Window.ClientBounds.Width / 1280f, 640 * (float)Window.ClientBounds.Height / 1024f)), settings);
            optionsPanel.Enabled     += new EventHandler <EventArgs>(panel_Enabled);
            optionsPanel.Disabled    += new EventHandler <EventArgs>(panel_Disabled);
            optionsPanel.Disabled    += new EventHandler <EventArgs>((object sender, EventArgs e) => settings = (Settings)optionsPanel.ApplyedSettings.Clone());
            optionsPanel.ApplyAction += new Action(() => { if (optionsPanel.ApplyedSettings.MusicIsMuted)
                                                           {
                                                               player.Stop();
                                                           }
                                                           else
                                                           {
                                                               player.Start();
                                                           } });

            text                   = String.Format("{0}\n{1}\n{2}", "Credits: ", "1) Bolshakov Kirill", "http://vk.com/overlordff");
            creditsPanel           = new CreditsPanel(this, Content, Sprite.CreateSprite(Content, Fnames.Panel, new Vector2(Window.ClientBounds.Width / 5.2f, Window.ClientBounds.Height / 6.8f), new Vector2(780 * (float)Window.ClientBounds.Width / 1280f, 640 * (float)Window.ClientBounds.Height / 1024f)), text);
            creditsPanel.Enabled  += new EventHandler <EventArgs>(panel_Enabled);
            creditsPanel.Disabled += new EventHandler <EventArgs>(panel_Disabled);

            savePanel           = new SavePanel(this, Content, Sprite.CreateSprite(Content, Fnames.Panel, new Vector2(Window.ClientBounds.Width / 5.2f, Window.ClientBounds.Height / 6.8f), new Vector2(780 * (float)Window.ClientBounds.Width / 1280f, 640 * (float)Window.ClientBounds.Height / 1024f)));
            savePanel.Enabled  += new EventHandler <EventArgs>(panel_Enabled);
            savePanel.Disabled += new EventHandler <EventArgs>(panel_Disabled);

            loadPanel           = new LoadPanel(this, Content, Sprite.CreateSprite(Content, Fnames.Panel, new Vector2(Window.ClientBounds.Width / 5.2f, Window.ClientBounds.Height / 6.8f), new Vector2(780 * (float)Window.ClientBounds.Width / 1280f, 640 * (float)Window.ClientBounds.Height / 1024f)));
            loadPanel.Enabled  += new EventHandler <EventArgs>(panel_Enabled);
            loadPanel.Disabled += new EventHandler <EventArgs>(panel_Disabled);

            #endregion

            Song deathSong = Content.Load <Song>(Fnames.DeathSong);
            Song epicScore = Content.Load <Song>(Fnames.EpicScore);

            if (random.NextDouble() >= 0.5)
            {
                background = Content.Load <Texture2D>(Fnames.BackgroundSword);
                player.Add(deathSong);
                optionsPanel.Color   = new Color(70, 70, 255);
                creditsPanel.Color   = new Color(70, 70, 255);
                exitApplyPanel.Color = new Color(70, 70, 255);
                savePanel.Color      = new Color(70, 70, 255);
                loadPanel.Color      = new Color(70, 70, 255);
            }
            else
            {
                background = Content.Load <Texture2D>(Fnames.BackgroundKnight);
                player.Add(epicScore);
                optionsPanel.Color   = new Color(174, 160, 75);
                creditsPanel.Color   = new Color(174, 160, 75);
                exitApplyPanel.Color = new Color(174, 160, 75);
                savePanel.Color      = new Color(174, 160, 75);
                loadPanel.Color      = new Color(174, 160, 75);
            }

            Game.Components.Clear();
            Game.Components.Add(new FPS(Game, Fnames.Arial14, new Vector2(Window.ClientBounds.Width / 2f - 25, 0)));
            Game.Components.Add(new GameCursor(Game, Fnames.Cursor));

            Components.Add(exitApplyPanel);
            Components.Add(optionsPanel);
            Components.Add(creditsPanel);
            Components.Add(savePanel);
            Components.Add(loadPanel);
            Components.AddRange(buttons);

            if (!cfg.MusicIsMuted)
            {
                player.Start();
            }
        }
 private void SetupOptionsPanel(OptionsPanel p)
 {
     Debug.Log("Setting OptionsPanel for Component!");
     optionsPanel = p;
 }
Beispiel #23
0
 public ScriptUtilites(BindableList variables, Playfield playfield, HandleManager handleManager, OptionsPanel optionsPanel)
 {
     this.variables     = variables;
     this.playfield     = playfield;
     this.handleManager = handleManager;
     this.optionsPanel  = optionsPanel;
 }