Exemplo n.º 1
0
 private void toolDeleteButton_Click(object sender, EventArgs e)
 {
     Lizard.Windows.Skin.CaptionButtonSkin skin = treeView.SelectedNode.Tag as Lizard.Windows.Skin.CaptionButtonSkin;
     ActiveSkin.RemoveCaptionButtonSkin(skin);
     treeView.Nodes[0].Nodes.Remove(treeView.SelectedNode);
     treeView.SelectedNode = treeView.Nodes[0];
 }
Exemplo n.º 2
0
        private void toolAddButton_Click(object sender, EventArgs e)
        {
            CaptionButtonSkin skin = new CaptionButtonSkin();

            ActiveSkin.AddCaptionButtonSkin(skin);

            treeView.Nodes[0].Nodes.Add(MapGenericCaptionButtonSkinToTreeNode(skin));
        }
Exemplo n.º 3
0
 public override void CastEffects(Vector3 hitPoint, Vector3 hitNormal, int attackNumber)
 {
     if (attackNumber > 0 && attackNumber < 4)
     {
         attackNumber = 1;
     }
     else if (attackNumber == 4)
     {
         attackNumber = 2;
     }
     CastMeleeEffects(hitPoint, hitNormal, ActiveSkin.GetAttackEffect(attackNumber));
 }
Exemplo n.º 4
0
        private void UpdateSFX()
        {
            if (playedSFX)
            {
                return;
            }
            playedSFX = true;

            int          attackNumber = Controller.State.AttackNumber;
            AttackEffect effect       = ActiveSkin.GetAttackEffect(attackNumber);

            Controller.Animator.PlayMeleeSFX(effect.AttackSFX[0], effect.AttackVolume);
        }
Exemplo n.º 5
0
 public override void CastEffects(Vector3 hitPoint, Vector3 hitNormal, int attackNumber)
 {
     CastMeleeEffects(hitPoint, hitNormal, ActiveSkin.GetAttackEffect(attackNumber));
 }