예제 #1
0
        private void addPlayerData()
        {
            GameEditorMenuTab pPlayerTab = new GameEditorMenuTab(this, "Player", 0);
            pPlayerTab.addItems(3);

            GameEditorMenuItem pPlayerSpeedItem = new GameEditorMenuItem(this, GameEditorMenuItems.PLAYERSPEED, "Player speed:");
            pPlayerSpeedItem.SetValue(ref m_pParent.GameConfiguration.PlayerSpeed);
            pPlayerTab.addItem(0, pPlayerSpeedItem);

            GameEditorMenuItem pPlayerLivesItem = new GameEditorMenuItem(this, GameEditorMenuItems.PLAYERLIVES, "Player lives:");
            pPlayerLivesItem.SetValue(ref m_pParent.GameConfiguration.PlayerLives);
            pPlayerTab.addItem(1, pPlayerLivesItem);

            pPlayerTab.addItem(2, new GameEditorMenuItem(this, GameEditorMenuItems.SAVE, "Save settings"));
            pPlayerTab.finishAddItems();
            m_rgItemTabs[0] = pPlayerTab;
        }
예제 #2
0
        private void addWeaponData()
        {
            GameEditorMenuTab pWeaponTab = new GameEditorMenuTab(this, "W:Standard gun", 1);
            pWeaponTab.addItems(5);
            GameEditorMenuItem pWeapon0AnimationSpeedItem = new GameEditorMenuItem(this, GameEditorMenuItems.WEAPON0ANIMATIONSPEED, "Animation Speed (ms/frame):");
            pWeapon0AnimationSpeedItem.SetValue(ref m_pParent.GameConfiguration.WeaponAnimationSpeeds[0]);
            pWeaponTab.addItem(0, pWeapon0AnimationSpeedItem);

            GameEditorMenuItem pWeapon0BulletDamageItem = new GameEditorMenuItem(this, GameEditorMenuItems.WEAPON0BULLETDAMAGE, "Bullet damage(per hit):");
            pWeapon0BulletDamageItem.SetValue(ref m_pParent.GameConfiguration.WeaponBulletDamage[0]);
            pWeaponTab.addItem(1, pWeapon0BulletDamageItem);

            GameEditorMenuItem pWeapon0BulletSpeedItem = new GameEditorMenuItem(this, GameEditorMenuItems.WEAPON0BULLETSPEED, "Bullet speed (units/s):");
            pWeapon0BulletSpeedItem.SetValue(ref m_pParent.GameConfiguration.WeaponBulletSpeed[0]);
            pWeaponTab.addItem(2, pWeapon0BulletSpeedItem);

            GameEditorMenuItem pWeapon0ReloadTimeItem = new GameEditorMenuItem(this, GameEditorMenuItems.WEAPON0RELOADTIME, "Reload time(ms/frame):");
            pWeapon0ReloadTimeItem.SetValue(ref m_pParent.GameConfiguration.WeaponReloadTime[0]);
            pWeaponTab.addItem(3, pWeapon0ReloadTimeItem);

            pWeaponTab.addItem(4, new GameEditorMenuItem(this, GameEditorMenuItems.SAVE, "Save settings"));
            pWeaponTab.finishAddItems();

            m_rgItemTabs[1] = pWeaponTab;

            // MINIGUN

            GameEditorMenuTab pWeaponTab2 = new GameEditorMenuTab(this, "W:Minigun", 2);
            pWeaponTab2.addItems(5);
            GameEditorMenuItem pWeapon1AnimationSpeedItem = new GameEditorMenuItem(this, GameEditorMenuItems.WEAPON1ANIMATIONSPEED, "Animation Speed (ms/frame):");
            pWeapon1AnimationSpeedItem.SetValue(ref m_pParent.GameConfiguration.WeaponAnimationSpeeds[1]);
            pWeaponTab2.addItem(0, pWeapon1AnimationSpeedItem);

            GameEditorMenuItem pWeapon1BulletDamageItem = new GameEditorMenuItem(this, GameEditorMenuItems.WEAPON1BULLETDAMAGE, "Bullet damage(per hit):");
            pWeapon1BulletDamageItem.SetValue(ref m_pParent.GameConfiguration.WeaponBulletDamage[1]);
            pWeaponTab2.addItem(1, pWeapon1BulletDamageItem);

            GameEditorMenuItem pWeapon1BulletSpeedItem = new GameEditorMenuItem(this, GameEditorMenuItems.WEAPON1BULLETSPEED, "Bullet speed (units/s):");
            pWeapon1BulletSpeedItem.SetValue(ref m_pParent.GameConfiguration.WeaponBulletSpeed[1]);
            pWeaponTab2.addItem(2, pWeapon1BulletSpeedItem);

            GameEditorMenuItem pWeapon1ReloadTimeItem = new GameEditorMenuItem(this, GameEditorMenuItems.WEAPON1RELOADTIME, "Reload time(ms/frame):");
            pWeapon1ReloadTimeItem.SetValue(ref m_pParent.GameConfiguration.WeaponReloadTime[1]);
            pWeaponTab2.addItem(3, pWeapon1ReloadTimeItem);

            pWeaponTab2.addItem(4, new GameEditorMenuItem(this, GameEditorMenuItems.SAVE, "Save settings"));
            pWeaponTab2.finishAddItems();

            m_rgItemTabs[2] = pWeaponTab2;

            // Rail gun

            GameEditorMenuTab pWeaponTab3 = new GameEditorMenuTab(this, "W:Railgun", 3);
            pWeaponTab3.addItems(5);
            GameEditorMenuItem pWeapon2AnimationSpeedItem = new GameEditorMenuItem(this, GameEditorMenuItems.WEAPON2ANIMATIONSPEED, "Animation Speed (ms/frame):");
            pWeapon2AnimationSpeedItem.SetValue(ref m_pParent.GameConfiguration.WeaponAnimationSpeeds[2]);
            pWeaponTab3.addItem(0, pWeapon2AnimationSpeedItem);

            GameEditorMenuItem pWeapon2BulletDamageItem = new GameEditorMenuItem(this, GameEditorMenuItems.WEAPON2BULLETDAMAGE, "Bullet damage(per hit):");
            pWeapon2BulletDamageItem.SetValue(ref m_pParent.GameConfiguration.WeaponBulletDamage[2]);
            pWeaponTab3.addItem(1, pWeapon2BulletDamageItem);

            GameEditorMenuItem pWeapon2BulletSpeedItem = new GameEditorMenuItem(this, GameEditorMenuItems.WEAPON2BULLETSPEED, "Bullet speed (units/s):");
            pWeapon2BulletSpeedItem.SetValue(ref m_pParent.GameConfiguration.WeaponBulletSpeed[2]);
            pWeaponTab3.addItem(2, pWeapon2BulletSpeedItem);

            GameEditorMenuItem pWeapon2ReloadTimeItem = new GameEditorMenuItem(this, GameEditorMenuItems.WEAPON2RELOADTIME, "Reload time(ms/frame):");
            pWeapon2ReloadTimeItem.SetValue(ref m_pParent.GameConfiguration.WeaponReloadTime[2]);
            pWeaponTab3.addItem(3, pWeapon2ReloadTimeItem);

            pWeaponTab3.addItem(4, new GameEditorMenuItem(this, GameEditorMenuItems.SAVE, "Save settings"));
            pWeaponTab3.finishAddItems();

            m_rgItemTabs[3] = pWeaponTab3;

            // SHOTGUN

            GameEditorMenuTab pWeaponTab4 = new GameEditorMenuTab(this, "W:Shotgun", 4);
            pWeaponTab4.addItems(5);
            GameEditorMenuItem pWeapon3AnimationSpeedItem = new GameEditorMenuItem(this, GameEditorMenuItems.WEAPON3ANIMATIONSPEED, "Animation Speed (ms/frame):");
            pWeapon3AnimationSpeedItem.SetValue(ref m_pParent.GameConfiguration.WeaponAnimationSpeeds[3]);
            pWeaponTab4.addItem(0, pWeapon3AnimationSpeedItem);

            GameEditorMenuItem pWeapon3BulletDamageItem = new GameEditorMenuItem(this, GameEditorMenuItems.WEAPON3BULLETDAMAGE, "Bullet damage(per hit):");
            pWeapon3BulletDamageItem.SetValue(ref m_pParent.GameConfiguration.WeaponBulletDamage[3]);
            pWeaponTab4.addItem(1, pWeapon3BulletDamageItem);

            GameEditorMenuItem pWeapon3BulletSpeedItem = new GameEditorMenuItem(this, GameEditorMenuItems.WEAPON3BULLETSPEED, "Bullet speed (units/s):");
            pWeapon3BulletSpeedItem.SetValue(ref m_pParent.GameConfiguration.WeaponBulletSpeed[3]);
            pWeaponTab4.addItem(2, pWeapon3BulletSpeedItem);

            GameEditorMenuItem pWeapon3ReloadTimeItem = new GameEditorMenuItem(this, GameEditorMenuItems.WEAPON3RELOADTIME, "Reload time(ms/frame):");
            pWeapon3ReloadTimeItem.SetValue(ref m_pParent.GameConfiguration.WeaponReloadTime[3]);
            pWeaponTab4.addItem(3, pWeapon3ReloadTimeItem);

            pWeaponTab4.addItem(4, new GameEditorMenuItem(this, GameEditorMenuItems.SAVE, "Save settings"));
            pWeaponTab4.finishAddItems();

            m_rgItemTabs[4] = pWeaponTab4;

            // ROCKET LAUNCHER

            GameEditorMenuTab pWeaponTab5 = new GameEditorMenuTab(this, "W:ROCKER LAUNCHER", 5);
            pWeaponTab5.addItems(5);
            GameEditorMenuItem pWeapon4AnimationSpeedItem = new GameEditorMenuItem(this, GameEditorMenuItems.WEAPON4ANIMATIONSPEED, "Animation Speed (ms/frame):");
            pWeapon4AnimationSpeedItem.SetValue(ref m_pParent.GameConfiguration.WeaponAnimationSpeeds[4]);
            pWeaponTab5.addItem(0, pWeapon4AnimationSpeedItem);

            GameEditorMenuItem pWeapon4BulletDamageItem = new GameEditorMenuItem(this, GameEditorMenuItems.WEAPON4BULLETDAMAGE, "Bullet damage(per hit):");
            pWeapon4BulletDamageItem.SetValue(ref m_pParent.GameConfiguration.WeaponBulletDamage[4]);
            pWeaponTab5.addItem(1, pWeapon4BulletDamageItem);

            GameEditorMenuItem pWeapon4BulletSpeedItem = new GameEditorMenuItem(this, GameEditorMenuItems.WEAPON4BULLETSPEED, "Bullet speed (units/s):");
            pWeapon4BulletSpeedItem.SetValue(ref m_pParent.GameConfiguration.WeaponBulletSpeed[4]);
            pWeaponTab5.addItem(2, pWeapon4BulletSpeedItem);

            GameEditorMenuItem pWeapon4ReloadTimeItem = new GameEditorMenuItem(this, GameEditorMenuItems.WEAPON4RELOADTIME, "Reload time(ms/frame):");
            pWeapon4ReloadTimeItem.SetValue(ref m_pParent.GameConfiguration.WeaponReloadTime[4]);
            pWeaponTab5.addItem(3, pWeapon4ReloadTimeItem);

            pWeaponTab5.addItem(4, new GameEditorMenuItem(this, GameEditorMenuItems.SAVE, "Save settings"));
            pWeaponTab5.finishAddItems();

            m_rgItemTabs[5] = pWeaponTab5;
        }
예제 #3
0
        private void addEnemyData()
        {
            GameEditorMenuTab pEnemy0Tab = new GameEditorMenuTab(this, "E:Blood maggot", 6);
            pEnemy0Tab.addItems(6);

            GameEditorMenuItem pAnimationSpeedItem0 = new GameEditorMenuItem(this, GameEditorMenuItems.ENEMY0ANIMATIONSPEED, "Animation speed:");
            pAnimationSpeedItem0.SetValue(ref m_pParent.GameConfiguration.EnemyAnimationSpeed[0]);
            pEnemy0Tab.addItem(0, pAnimationSpeedItem0);

            GameEditorMenuItem pSpeedItem0 = new GameEditorMenuItem(this, GameEditorMenuItems.ENEMY0SPEED, "Speed:");
            pSpeedItem0.SetValue(ref m_pParent.GameConfiguration.EnemySpeed[0]);
            pEnemy0Tab.addItem(1, pSpeedItem0);

            GameEditorMenuItem pScoreItem0 = new GameEditorMenuItem(this, GameEditorMenuItems.ENEMY0SCORE, "Score:");
            pScoreItem0.SetValue(ref m_pParent.GameConfiguration.EnemyScore[0]);
            pEnemy0Tab.addItem(2, pScoreItem0);

            GameEditorMenuItem pDamageItem0 = new GameEditorMenuItem(this, GameEditorMenuItems.ENEMY0DAMAGE, "Damage:");
            pDamageItem0.SetValue(ref m_pParent.GameConfiguration.EnemyDamage[0]);
            pEnemy0Tab.addItem(3, pDamageItem0);

            GameEditorMenuItem pHealthItem0 = new GameEditorMenuItem(this, GameEditorMenuItems.ENEMY0HEALTH, "Health:");
            pHealthItem0.SetValue(ref m_pParent.GameConfiguration.EnemyHealth[0]);
            pEnemy0Tab.addItem(4, pHealthItem0);

            pEnemy0Tab.addItem(5, new GameEditorMenuItem(this, GameEditorMenuItems.SAVE, "Save settings"));
            pEnemy0Tab.finishAddItems();
            m_rgItemTabs[6] = pEnemy0Tab;

            GameEditorMenuTab pEnemy1Tab = new GameEditorMenuTab(this, "E:Temp enemy", 7);
            pEnemy1Tab.addItems(6);

            GameEditorMenuItem pAnimationSpeedItem1 = new GameEditorMenuItem(this, GameEditorMenuItems.ENEMY1ANIMATIONSPEED, "Animation speed:");
            pAnimationSpeedItem1.SetValue(ref m_pParent.GameConfiguration.EnemyAnimationSpeed[1]);
            pEnemy1Tab.addItem(0, pAnimationSpeedItem1);

            GameEditorMenuItem pSpeedItem1 = new GameEditorMenuItem(this, GameEditorMenuItems.ENEMY1SPEED, "Speed:");
            pSpeedItem1.SetValue(ref m_pParent.GameConfiguration.EnemySpeed[1]);
            pEnemy1Tab.addItem(1, pSpeedItem1);

            GameEditorMenuItem pScoreItem1 = new GameEditorMenuItem(this, GameEditorMenuItems.ENEMY1SCORE, "Score:");
            pScoreItem1.SetValue(ref m_pParent.GameConfiguration.EnemyScore[1]);
            pEnemy1Tab.addItem(2, pScoreItem1);

            GameEditorMenuItem pDamageItem1 = new GameEditorMenuItem(this, GameEditorMenuItems.ENEMY1DAMAGE, "Damage:");
            pDamageItem1.SetValue(ref m_pParent.GameConfiguration.EnemyDamage[1]);
            pEnemy1Tab.addItem(3, pDamageItem1);

            GameEditorMenuItem pHealthItem1 = new GameEditorMenuItem(this, GameEditorMenuItems.ENEMY1HEALTH, "Health:");
            pHealthItem1.SetValue(ref m_pParent.GameConfiguration.EnemyHealth[1]);
            pEnemy1Tab.addItem(4, pHealthItem1);

            pEnemy1Tab.addItem(5, new GameEditorMenuItem(this, GameEditorMenuItems.SAVE, "Save settings"));
            pEnemy1Tab.finishAddItems();
            m_rgItemTabs[7] = pEnemy1Tab;
        }