Ejemplo n.º 1
0
 public GSkillIcon(Skill skill)
     : base(0, 0, 100, 20)
 {
     this.m_Skill = skill;
     GLabel toAdd = new GSkillIconName(skill);
     base.m_Width = (toAdd.Image.xMax - toAdd.Image.xMin) + 9;
     base.m_Height = (toAdd.Image.yMax - toAdd.Image.yMin) + 9;
     base.m_Children.Add(toAdd);
     base.m_DragClipX = base.m_Width - 1;
     base.m_DragClipY = base.m_Height - 1;
 }
Ejemplo n.º 2
0
        public GSkillIcon(Skill skill) : base(0, 0, 100, 20)
        {
            this.m_Skill = skill;
            GLabel toAdd = new GSkillIconName(skill);

            base.m_Width  = (toAdd.Image.xMax - toAdd.Image.xMin) + 9;
            base.m_Height = (toAdd.Image.yMax - toAdd.Image.yMin) + 9;
            base.m_Children.Add(toAdd);
            base.m_DragClipX = base.m_Width - 1;
            base.m_DragClipY = base.m_Height - 1;
        }