Ejemplo n.º 1
0
        private void ResendGump()
        {
            WeaponAbilitiesGump gump =
                new WeaponAbilitiesGump(_primaryId, _primaryEnable, _secondaryId, _secondaryEnable);

            gump.SendGump();
        }
Ejemplo n.º 2
0
        public override void OnResponse(int buttonID, int[] switches)
        {
            switch (buttonID)
            {
            case 1:
                AbilitiesCommands.SetAbility("primary");
                break;

            case 2:
                AbilitiesCommands.SetAbility("secondary");
                break;

            case 4:
            {
                Editing = !Editing;
                WeaponAbilitiesGump gump =
                    new WeaponAbilitiesGump(_primaryId, _primaryEnable, _secondaryId, _secondaryEnable);
                gump.SendGump();
                break;
            }

            case 5:
            {
                Options.CurrentOptions.AbilitiesGumpY -= 100;

                if (Options.CurrentOptions.AbilitiesGumpY < 0)
                {
                    Options.CurrentOptions.AbilitiesGumpY = 0;
                }

                ResendGump();
                break;
            }

            case 6:
            {
                Options.CurrentOptions.AbilitiesGumpX -= 100;

                if (Options.CurrentOptions.AbilitiesGumpX < 0)
                {
                    Options.CurrentOptions.AbilitiesGumpX = 0;
                }

                ResendGump();
                break;
            }

            case 7:
            {
                Options.CurrentOptions.AbilitiesGumpX += 100;

                ResendGump();
                break;
            }

            case 8:
            {
                Options.CurrentOptions.AbilitiesGumpY += 100;

                ResendGump();
                break;
            }
            }
        }