Esempio n. 1
0
        internal UISpriteImage(Sprite setSprite)
        {
            Sprite = setSprite;

             Width = Sprite.MaxWidth;
             Height = Sprite.MaxHeight;
        }
Esempio n. 2
0
        internal UISpriteButton(Sprite spr, int spriteFrameIndex)
            : base(string.Empty, 364, 365)
        {
            curSpr = spr;
             curSpr.FixedSpriteFrame = spriteFrameIndex;

             img = new UISpriteImage(curSpr);
             img.X = 2;
             img.Y = 2;
             AddComponent(img);
        }
Esempio n. 3
0
 public HumanTower(Map currentMap)
     : base(currentMap)
 {
     sprite = new Sprite (WarFile.GetSpriteResource (WarFile.KnowledgeBase.IndexByName ("Human Tower")));
 }
Esempio n. 4
0
 public Corpse(Map currentMap)
     : base(currentMap)
 {
     sprite = new Sprite (WarFile.GetSpriteResource (WarFile.KnowledgeBase.IndexByName ("Corpse")));
 }
Esempio n. 5
0
 public HumanStormwind(Map currentMap)
     : base(currentMap)
 {
     sprite = new Sprite (WarFile.GetSpriteResource (WarFile.KnowledgeBase.IndexByName ("Stormwind")));
 }
Esempio n. 6
0
 internal UISpriteButton(Sprite spr, string spriteName)
     : this(spr, WarFile.KnowledgeBase.IconIDByName(spriteName))
 {
     //
 }
Esempio n. 7
0
 public OrcFarm(Map currentMap)
     : base(currentMap)
 {
     sprite = new Sprite (WarFile.GetSpriteResource (WarFile.KnowledgeBase.IndexByName ("Orc Farm")));
 }