Beispiel #1
0
        public override void OnInitialize()
        {
            base.OnInitialize();

            Height.Set(height, 0f);
            Width.Set(width, 0f);

            button = new XPBarButton(height);
            bar    = new ResourceBar(ResourceBarMode.XP, width - (height * (186 / 186)), height);

            button.Left.Set(0f, 0f);
            button.Top.Set(0f, 0f);

            bar.Left.Set(height * (186 / 186), 0f);
            bar.Top.Set(0f, 0f);

            Append(bar);
            Append(button);
        }
Beispiel #2
0
 public override void OnDeactivate()
 {
     base.OnDeactivate();
     bar    = null;
     button = null;
 }