Exemplo n.º 1
0
 public SteamCloudOptionsObj(OptionsScreen parentScreen) : base(parentScreen, "Enable Steam Cloud")
 {
     m_toggleText      = (m_nameText.Clone() as TextObj);
     m_toggleText.X    = m_optionsTextOffset;
     m_toggleText.Text = "No";
     AddChild(m_toggleText);
 }
Exemplo n.º 2
0
 public ToggleDirectInputOptionsObj(OptionsScreen parentScreen) : base(parentScreen, "Use DInput Gamepads")
 {
     m_toggleText      = (m_nameText.Clone() as TextObj);
     m_toggleText.X    = m_optionsTextOffset;
     m_toggleText.Text = "No";
     AddChild(m_toggleText);
 }
Exemplo n.º 3
0
 public FullScreenOptionsObj(OptionsScreen parentScreen) : base(parentScreen, "Fullscreen")
 {
     m_toggleText      = (m_nameText.Clone() as TextObj);
     m_toggleText.X    = m_optionsTextOffset;
     m_toggleText.Text = "No";
     AddChild(m_toggleText);
 }
Exemplo n.º 4
0
 public ResolutionOptionsObj(OptionsScreen parentScreen) : base(parentScreen, "Resolution")
 {
     m_toggleText      = (m_nameText.Clone() as TextObj);
     m_toggleText.X    = m_optionsTextOffset;
     m_toggleText.Text = "null";
     AddChild(m_toggleText);
 }
Exemplo n.º 5
0
 public ReduceQualityOptionsObj(OptionsScreen parentScreen) : base(parentScreen, "Reduce Shader Quality")
 {
     m_toggleText      = (m_nameText.Clone() as TextObj);
     m_toggleText.X    = m_optionsTextOffset;
     m_toggleText.Text = "No";
     AddChild(m_toggleText);
 }
Exemplo n.º 6
0
 public ResolutionOptionsObj(OptionsScreen parentScreen)
     : base(parentScreen, "Resolution")
 {
     this.m_toggleText = (this.m_nameText.Clone() as TextObj);
     this.m_toggleText.X = (float)this.m_optionsTextOffset;
     this.m_toggleText.Text = "null";
     this.AddChild(this.m_toggleText);
 }
 public ToggleDirectInputOptionsObj(OptionsScreen parentScreen)
     : base(parentScreen, "Use DInput Gamepads")
 {
     this.m_toggleText = (this.m_nameText.Clone() as TextObj);
     this.m_toggleText.X = (float)this.m_optionsTextOffset;
     this.m_toggleText.Text = "No";
     this.AddChild(this.m_toggleText);
 }
Exemplo n.º 8
0
 public QuickDropOptionsObj(OptionsScreen parentScreen)
     : base(parentScreen, "Enable Quick Drop")
 {
     this.m_toggleText = (this.m_nameText.Clone() as TextObj);
     this.m_toggleText.X = (float)this.m_optionsTextOffset;
     this.m_toggleText.Text = "No";
     this.AddChild(this.m_toggleText);
 }
Exemplo n.º 9
0
 public ReduceQualityOptionsObj(OptionsScreen parentScreen)
     : base(parentScreen, "Reduce Shader Quality")
 {
     this.m_toggleText = (this.m_nameText.Clone() as TextObj);
     this.m_toggleText.X = (float)this.m_optionsTextOffset;
     this.m_toggleText.Text = "No";
     this.AddChild(this.m_toggleText);
 }
Exemplo n.º 10
0
 public FullScreenOptionsObj(OptionsScreen parentScreen)
     : base(parentScreen, "Fullscreen")
 {
     this.m_toggleText = (this.m_nameText.Clone() as TextObj);
     this.m_toggleText.X = (float)this.m_optionsTextOffset;
     this.m_toggleText.Text = "No";
     this.AddChild(this.m_toggleText);
 }
Exemplo n.º 11
0
 public override void Dispose()
 {
     if (!IsDisposed)
     {
         m_parentScreen = null;
         m_nameText     = null;
         base.Dispose();
     }
 }
Exemplo n.º 12
0
 public OptionsObj(OptionsScreen parentScreen, string name)
 {
     this.m_parentScreen = parentScreen;
     this.m_nameText = new TextObj(Game.JunicodeFont);
     this.m_nameText.FontSize = 12f;
     this.m_nameText.Text = name;
     this.m_nameText.DropShadow = new Vector2(2f, 2f);
     this.AddChild(this.m_nameText);
     base.ForceDraw = true;
 }
Exemplo n.º 13
0
 public OptionsObj(OptionsScreen parentScreen, string name)
 {
     m_parentScreen        = parentScreen;
     m_nameText            = new TextObj(Game.JunicodeFont);
     m_nameText.FontSize   = 12f;
     m_nameText.Text       = name;
     m_nameText.DropShadow = new Vector2(2f, 2f);
     AddChild(m_nameText);
     ForceDraw = true;
 }
Exemplo n.º 14
0
 public SFXVolOptionsObj(OptionsScreen parentScreen) : base(parentScreen, "SFX Volume")
 {
     m_volumeBarBG   = new SpriteObj("OptionsScreenVolumeBG_Sprite");
     m_volumeBarBG.X = m_optionsTextOffset;
     m_volumeBarBG.Y = m_volumeBarBG.Height / 2f - 2f;
     AddChild(m_volumeBarBG);
     m_volumeBar   = new SpriteObj("OptionsScreenVolumeBar_Sprite");
     m_volumeBar.X = m_volumeBarBG.X + 6f;
     m_volumeBar.Y = m_volumeBarBG.Y + 5f;
     AddChild(m_volumeBar);
 }
Exemplo n.º 15
0
 public DeadZoneOptionsObj(OptionsScreen parentScreen) : base(parentScreen, "Joystick Dead Zone")
 {
     m_deadZoneBarBG   = new SpriteObj("OptionsScreenVolumeBG_Sprite");
     m_deadZoneBarBG.X = m_optionsTextOffset;
     m_deadZoneBarBG.Y = m_deadZoneBarBG.Height / 2f - 2f;
     AddChild(m_deadZoneBarBG);
     m_deadZoneBar   = new SpriteObj("OptionsScreenVolumeBar_Sprite");
     m_deadZoneBar.X = m_deadZoneBarBG.X + 6f;
     m_deadZoneBar.Y = m_deadZoneBarBG.Y + 5f;
     AddChild(m_deadZoneBar);
 }
Exemplo n.º 16
0
 public DeadZoneOptionsObj(OptionsScreen parentScreen)
     : base(parentScreen, "Joystick Dead Zone")
 {
     this.m_deadZoneBarBG = new SpriteObj("OptionsScreenVolumeBG_Sprite");
     this.m_deadZoneBarBG.X = (float)this.m_optionsTextOffset;
     this.m_deadZoneBarBG.Y = (float)this.m_deadZoneBarBG.Height / 2f - 2f;
     this.AddChild(this.m_deadZoneBarBG);
     this.m_deadZoneBar = new SpriteObj("OptionsScreenVolumeBar_Sprite");
     this.m_deadZoneBar.X = this.m_deadZoneBarBG.X + 6f;
     this.m_deadZoneBar.Y = this.m_deadZoneBarBG.Y + 5f;
     this.AddChild(this.m_deadZoneBar);
 }
Exemplo n.º 17
0
 public void InitializeScreens()
 {
     m_gameOverScreen      = new GameOverScreen();
     SkillScreen           = new SkillScreen();
     m_blacksmithScreen    = new BlacksmithScreen();
     m_getItemScreen       = new GetItemScreen();
     m_enchantressScreen   = new EnchantressScreen();
     DialogueScreen        = new DialogueScreen();
     m_pauseScreen         = new PauseScreen();
     m_optionsScreen       = new OptionsScreen();
     m_profileCardScreen   = new ProfileCardScreen();
     m_creditsScreen       = new CreditsScreen();
     m_skillUnlockScreen   = new SkillUnlockScreen();
     m_diaryEntryScreen    = new DiaryEntryScreen();
     m_deathDefyScreen     = new DeathDefiedScreen();
     m_textScreen          = new TextScreen();
     m_flashbackScreen     = new DiaryFlashbackScreen();
     m_gameOverBossScreen  = new GameOverBossScreen();
     m_profileSelectScreen = new ProfileSelectScreen();
 }
Exemplo n.º 18
0
        public ChangeControlsOptionsObj(OptionsScreen parentScreen) : base(parentScreen, "Change Controls")
        {
            m_buttonTitle      = new List <TextObj>();
            m_keyboardControls = new List <KeyIconTextObj>();
            m_gamepadControls  = new List <KeyIconTextObj>();
            var textObj = new TextObj(Game.JunicodeFont);

            textObj.FontSize   = 12f;
            textObj.DropShadow = new Vector2(2f, 2f);
            string[] array =
            {
                "Up",
                "Down",
                "Left",
                "Right",
                "Attack",
                "Jump",
                "Special",
                "Dash Left",
                "Dash Right",
                "Cast Spell",
                "Reset Controls"
            };
            m_controlKeys = new[]
            {
                16,
                18,
                20,
                22,
                12,
                10,
                13,
                14,
                15,
                24,
                -1
            };
            for (var i = 0; i < array.Length; i++)
            {
                var textObj2 = textObj.Clone() as TextObj;
                textObj2.Text = array[i];
                textObj2.X    = 1320f;
                textObj2.Y    = m_startingY + i * 30;
                AddChild(textObj2);
                m_buttonTitle.Add(textObj2);
                var keyIconTextObj = new KeyIconTextObj(Game.JunicodeFont);
                keyIconTextObj.FontSize = 9f;
                keyIconTextObj.X        = textObj2.X + 200f;
                keyIconTextObj.Y        = textObj2.Y + 5f;
                AddChild(keyIconTextObj);
                m_keyboardControls.Add(keyIconTextObj);
                var keyIconTextObj2 = new KeyIconTextObj(Game.JunicodeFont);
                keyIconTextObj2.FontSize = 9f;
                keyIconTextObj2.X        = keyIconTextObj.X + 200f;
                keyIconTextObj2.Y        = keyIconTextObj.Y;
                AddChild(keyIconTextObj2);
                m_gamepadControls.Add(keyIconTextObj2);
            }
            UpdateKeyBindings();
            m_setKeyPlate           = new ObjContainer("GameOverStatPlate_Character");
            m_setKeyPlate.ForceDraw = true;
            m_setKeyPlate.Scale     = Vector2.Zero;
            var textObj3 = new TextObj(Game.JunicodeFont);

            textObj3.FontSize   = 12f;
            textObj3.Align      = Types.TextAlign.Centre;
            textObj3.DropShadow = new Vector2(2f, 2f);
            textObj3.ForceDraw  = true;
            textObj3.Text       = "Press Any Key";
            textObj3.Y         -= textObj3.Height / 2f;
            m_setKeyPlate.AddChild(textObj3);
            m_selectionBar = new SpriteObj("OptionsBar_Sprite");
        }
Exemplo n.º 19
0
 public void InitializeScreens()
 {
     this.m_gameOverScreen = new GameOverScreen();
     this.m_traitScreen = new SkillScreen();
     this.m_blacksmithScreen = new BlacksmithScreen();
     this.m_getItemScreen = new GetItemScreen();
     this.m_enchantressScreen = new EnchantressScreen();
     this.m_dialogueScreen = new DialogueScreen();
     this.m_pauseScreen = new PauseScreen();
     this.m_optionsScreen = new OptionsScreen();
     this.m_profileCardScreen = new ProfileCardScreen();
     this.m_creditsScreen = new CreditsScreen();
     this.m_skillUnlockScreen = new SkillUnlockScreen();
     this.m_diaryEntryScreen = new DiaryEntryScreen();
     this.m_deathDefyScreen = new DeathDefiedScreen();
     this.m_textScreen = new TextScreen();
     this.m_flashbackScreen = new DiaryFlashbackScreen();
     this.m_gameOverBossScreen = new GameOverBossScreen();
     this.m_profileSelectScreen = new ProfileSelectScreen();
 }
Exemplo n.º 20
0
 public BackToMenuOptionsObj(OptionsScreen parentScreen)
     : base(parentScreen, "Quit to Title Screen")
 {
 }
Exemplo n.º 21
0
 public ExitProgramOptionsObj(OptionsScreen parentScreen)
     : base(parentScreen, "Quit Rogue Legacy")
 {
 }
Exemplo n.º 22
0
 public DeleteSaveOptionsObj(OptionsScreen parentScreen) : base(parentScreen, "Delete Save")
 {
 }
Exemplo n.º 23
0
 public DeleteSaveOptionsObj(OptionsScreen parentScreen)
     : base(parentScreen, "Delete Save")
 {
 }
Exemplo n.º 24
0
 public override void Dispose()
 {
     if (!base.IsDisposed)
     {
         this.m_parentScreen = null;
         this.m_nameText = null;
         base.Dispose();
     }
 }
Exemplo n.º 25
0
 public ChangeControlsOptionsObj(OptionsScreen parentScreen)
     : base(parentScreen, "Change Controls")
 {
     this.m_buttonTitle = new List<TextObj>();
     this.m_keyboardControls = new List<KeyIconTextObj>();
     this.m_gamepadControls = new List<KeyIconTextObj>();
     TextObj textObj = new TextObj(Game.JunicodeFont);
     textObj.FontSize = 12f;
     textObj.DropShadow = new Vector2(2f, 2f);
     string[] array = new string[]
     {
         "Up",
         "Down",
         "Left",
         "Right",
         "Attack",
         "Jump",
         "Special",
         "Dash Left",
         "Dash Right",
         "Cast Spell",
         "Reset Controls"
     };
     this.m_controlKeys = new int[]
     {
         16,
         18,
         20,
         22,
         12,
         10,
         13,
         14,
         15,
         24,
         -1
     };
     for (int i = 0; i < array.Length; i++)
     {
         TextObj textObj2 = textObj.Clone() as TextObj;
         textObj2.Text = array[i];
         textObj2.X = 1320f;
         textObj2.Y = (float)(this.m_startingY + i * 30);
         this.AddChild(textObj2);
         this.m_buttonTitle.Add(textObj2);
         KeyIconTextObj keyIconTextObj = new KeyIconTextObj(Game.JunicodeFont);
         keyIconTextObj.FontSize = 9f;
         keyIconTextObj.X = textObj2.X + 200f;
         keyIconTextObj.Y = textObj2.Y + 5f;
         this.AddChild(keyIconTextObj);
         this.m_keyboardControls.Add(keyIconTextObj);
         KeyIconTextObj keyIconTextObj2 = new KeyIconTextObj(Game.JunicodeFont);
         keyIconTextObj2.FontSize = 9f;
         keyIconTextObj2.X = keyIconTextObj.X + 200f;
         keyIconTextObj2.Y = keyIconTextObj.Y;
         this.AddChild(keyIconTextObj2);
         this.m_gamepadControls.Add(keyIconTextObj2);
     }
     this.UpdateKeyBindings();
     this.m_setKeyPlate = new ObjContainer("GameOverStatPlate_Character");
     this.m_setKeyPlate.ForceDraw = true;
     this.m_setKeyPlate.Scale = Vector2.Zero;
     TextObj textObj3 = new TextObj(Game.JunicodeFont);
     textObj3.FontSize = 12f;
     textObj3.Align = Types.TextAlign.Centre;
     textObj3.DropShadow = new Vector2(2f, 2f);
     textObj3.ForceDraw = true;
     textObj3.Text = "Press Any Key";
     textObj3.Y -= (float)textObj3.Height / 2f;
     this.m_setKeyPlate.AddChild(textObj3);
     this.m_selectionBar = new SpriteObj("OptionsBar_Sprite");
 }