LogicSpawn.GTARPG.Core.General.RPGListMenu.Draw C# (CSharp) Method

Draw() public method

public Draw ( Size offset ) : void
offset System.Drawing.Size
return void
        public override void Draw(Size offset)
        {
            if (!RPGSettings.ShowUI) return;

            if (ExtendWindowHeight)
            {
                new UIRectangle(new Point(offset.Width, offset.Height - UI.HEIGHT), new Size(300, UI.HEIGHT), UnselectedItemColor).Draw();
            }

            _banner.Draw(new Point(offset.Width, offset.Height), 300, 70);
            new UIText(_bannerCaption, new Point(offset.Width + 150, offset.Height + 18), 0.8f, Color.White, 0, true).Draw();
            base.Draw(offset + new Size(0, 70));

            var bottomY = offset.Height + 70 + Items.Count * ItemHeight;
            if (HasFooter) bottomY += FooterHeight;
            bottomY += HeaderHeight;

            if(ExtendWindowHeight)
            {
                new UIRectangle(new Point(offset.Width, bottomY), new Size(300, UI.HEIGHT), UnselectedItemColor).Draw();
                new UIRectangle(new Point(offset.Width + 300, offset.Height - UI.HEIGHT), new Size(2, UI.HEIGHT * 2), Color.FromArgb(200, 8, 8, 8)).Draw();
            }
        }

Same methods

RPGListMenu::Draw ( ) : void