コード例 #1
0
        private static int GetImageID(GroupType t, string s)
        {
            int imageid = 0;

            switch (t)
            {
            case GroupType.Magery:
                SpellIconMagery.TryGetValue(s, out imageid);
                break;

            case GroupType.Abilities:
                SpellIconAbilities.TryGetValue(s, out imageid);
                break;

            case GroupType.Mastery:
                SpellIconMastery.TryGetValue(s, out imageid);
                break;

            case GroupType.Bushido:
                SpellIconBushido.TryGetValue(s, out imageid);
                break;

            case GroupType.Chivalry:
                SpellIconChivalry.TryGetValue(s, out imageid);
                break;

            case GroupType.Necromancy:
                SpellIconNecromancy.TryGetValue(s, out imageid);
                break;

            case GroupType.Ninjitsu:
                SpellIconNinjitsu.TryGetValue(s, out imageid);
                break;

            case GroupType.Mysticism:
                SpellIconMysticism.TryGetValue(s, out imageid);
                break;

            case GroupType.Spellweaving:
                SpellIconSpellweaving.TryGetValue(s, out imageid);
                break;

            case GroupType.Script:
                imageid = -1;
                break;

            case GroupType.Skills:
                imageid = -2;
                break;

            default:
                imageid = 0;
                break;
            }

            return(imageid);
        }
コード例 #2
0
        private static int GetImageID(GroupType t, string s)
        {
            int imageid;

            switch (t)
            {
            case GroupType.Magery:
                SpellIconMagery.TryGetValue(s, out imageid);
                break;

            case GroupType.Abilities:
                if (s == "Primary")
                {
                    imageid = (int)SpecialMoves.PrimaryGumpId;
                }
                else
                {
                    imageid = (int)SpecialMoves.SecondaryGumpId;
                }
                break;

            case GroupType.Mastery:
                SpellIconMastery.TryGetValue(s, out imageid);
                break;

            case GroupType.Bushido:
                SpellIconBushido.TryGetValue(s, out imageid);
                break;

            case GroupType.Chivalry:
                SpellIconChivalry.TryGetValue(s, out imageid);
                break;

            case GroupType.Necromancy:
                SpellIconNecromancy.TryGetValue(s, out imageid);
                break;

            case GroupType.Ninjitsu:
                SpellIconNinjitsu.TryGetValue(s, out imageid);
                break;

            case GroupType.Mysticism:
                SpellIconMysticism.TryGetValue(s, out imageid);
                break;

            case GroupType.Spellweaving:
                SpellIconSpellweaving.TryGetValue(s, out imageid);
                break;

            case GroupType.Script:
                imageid = -1;
                break;

            case GroupType.Skills:
                imageid = -2;
                break;

            default:
                imageid = 0;
                break;
            }

            return(imageid);
        }