示例#1
0
 public override void Render()
 {
     panelBG.Draw();
     healthMeterBg.Draw();
     CluwneLib.drawRectangle(healthMeterInner.Left, healthMeterInner.Top, healthMeterInner.Width, healthMeterInner.Height, interpCol);
     healthPc.Render();
     healthMeterGrid.Draw();
     RenderBlip();
     healthMeterOverlay.Draw();
 }
        public override void Render()
        {
            base.Render();
            var bounds   = _iconSprite.GetLocalBounds();
            var iconRect = Box2i.FromDimensions(ClientArea.Left + 3,
                                                ClientArea.Top + (int)(ClientArea.Height / 2f) - (int)(bounds.Height / 2f),
                                                (int)bounds.Width, (int)bounds.Height);

            CluwneLib.drawRectangle(ClientArea.Left, ClientArea.Top, ClientArea.Width, ClientArea.Height, _currentColor);
            _textLabel.Render();
            _iconSprite.SetTransformToRect(iconRect);
            _iconSprite.Draw();
        }
示例#3
0
        public override void Render() // Renders the main window
        {
            if (disposing || !IsVisible())
            {
                return;
            }
            gradient.Render();

            //TODO RenderTargetRectangle
            base.Render();
            title.Render();
            if (closeButtonVisible)
            {
                closeButton.Render();
            }
        }
示例#4
0
        public override void Render() // Renders the main window
        {
            if (disposing || !IsVisible())
            {
                return;
            }
            gradient.Render();

            //TODO RenderTargetRectangle
            // CluwneLib.CurrentRenderTarget.Rectangle(titleArea.X, titleArea.Y, titleArea.Width, titleArea.Height, Color.Black);
            base.Render();
            title.Render();
            if (closeButtonVisible)
            {
                closeButton.Render();
            }
        }
示例#5
0
 public override void Render()
 {
     CluwneLib.drawRectangle(0, 0, (int)CluwneLib.CurrentRenderTarget.Size.X, (int)CluwneLib.CurrentRenderTarget.Size.Y, Color4.Black);
     _message.Render();
     _mainMenuButton.Render();
 }