Beispiel #1
0
        public static void setHudElementPositionOffSetX(HUDObject o)
        {
            int screenWidth    = 1920;
            int offsetToRightX = 60;

            o.destinationX = (screenWidth - o.hudElementSizeX) - offsetToRightX;
        }
Beispiel #2
0
 public static void setHudElementPositionOffSetY(HUDObject o)
 {
     foreach (SpellBookBar obj in hudList)
     {
         if (o.id == (obj.id + 1))
         {
             o.destinationY = obj.destinationY + obj.hudElementSizeY + obj.offsetBetweenBars;
             return;
         }
     }
 }
Beispiel #3
0
 public static void setSpellPositionOffSetX(HUDObject o)
 {
     foreach (SpellButton obj in hudList)
     {
         if (o.id == (obj.id + 1))
         {
             o.destinationX = obj.destinationX + obj.hudElementSizeX + obj.offsetBetweenBars;
             return;
         }
     }
 }
Beispiel #4
0
 public static void setHudElementPosition(HUDObject o)
 {
     setHudElementPositionOffSetX(o);
     setHudElementPositionOffSetY(o);
 }
Beispiel #5
0
 public HUDRenderer(HUDObject HUDSprite)
 {
     this.HUDSprite = HUDSprite;
 }
Beispiel #6
0
 public HUDRenderer()
 {
     HUDSprite = new HUDObject();
 }
 public SpellButtonRenderer(HUDObject spellbutton)
 {
     this.spellbutton = (SpellButton)spellbutton;
 }
Beispiel #8
0
 public PhaseBarRenderer(HUDObject phaseBar)
 {
     this.phaseBar = (SpellBookBar)phaseBar;
 }