Ejemplo n.º 1
0
 public override void OnInitialize()
 {
     Overloadbar = new ResourceBar(ResourceBarMode.OVERLOAD, 9, 64);
     Overloadbar.Left.Set(725f, 0f);
     Overloadbar.Top.Set(46f, 0f);
     Overloadbar.OnMouseDown += new UIElement.MouseEvent(DragStart);
     Overloadbar.OnMouseUp   += new UIElement.MouseEvent(DragEnd);
     Append(Overloadbar);
 }
Ejemplo n.º 2
0
 public override void OnInitialize()
 {
     kibar = new ResourceBar(ResourceBarMode.Ki, 24, 128);
     kibar.Left.Set(515f, 0f);
     kibar.Top.Set(20f, 0f);
     kibar.OnMouseDown += new UIElement.MouseEvent(DragStart);
     kibar.OnMouseUp   += new UIElement.MouseEvent(DragEnd);
     Append(kibar);
 }
Ejemplo n.º 3
0
 public override void OnInitialize()
 {
     overloadBar = new ResourceBar(ResourceBarMode.Overload, 24, 108);
     overloadBar.Left.Set(725f, 0f);
     overloadBar.Top.Set(22f, 0f);
     overloadBar.OnMouseDown += new UIElement.MouseEvent(DragStart);
     overloadBar.OnMouseUp   += new UIElement.MouseEvent(DragEnd);
     Append(overloadBar);
 }
Ejemplo n.º 4
0
 public override void OnInitialize()
 {
     Kibar = new ResourceBar(ResourceBarMode.KI, 12, 92);
     Kibar.Left.Set(515f, 0f);
     Kibar.Top.Set(49f, 0f);
     Kibar.OnMouseDown += new UIElement.MouseEvent(DragStart);
     Kibar.OnMouseUp   += new UIElement.MouseEvent(DragEnd);
     Append(Kibar);
 }
Ejemplo n.º 5
0
        public override void OnInitialize()
        {
            ResourceBar Bar = new ResourceBar(ResourceBarMode.KI, 6, 86);

            Bar.Left.Set(500f, 0f);             //175
            Bar.Top.Set(40f, 0f);
            Append(Bar);

            //ki.OnMouseDown += new UIElement.MouseEvent(DragStart);
            //ki.OnMouseUp += new UIElement.MouseEvent(DragEnd);
        }
Ejemplo n.º 6
0
        public override void OnInitialize()
        {
            ResourceBar Bar = new ResourceBar(ResourceBarMode.KI, 6, 86);

            Bar.Left.Set(500f, 0f); //175
            Bar.Top.Set(40f, 0f);

            Texture2D BarTexture = GFX.KiBar;
            UIImage   ki         = new UIImage(BarTexture);

            ki.Left.Set(-20, 0f);
            ki.Top.Set(-8, 0f);
            ki.Width.Set(80, 0f);
            ki.Height.Set(18, 0f);
            Bar.Append(ki);
            ki.OnMouseDown += new UIElement.MouseEvent(DragStart);
            ki.OnMouseUp   += new UIElement.MouseEvent(DragEnd);



            base.Append(Bar);
        }