Пример #1
0
        public override void Draw()
        {
            string title;
            string subText;
            string activateText;

            GetTitle(DataTree, out title, out subText, out activateText);

            new UIRectangle(new Point(3, 3), new Size(UI.WIDTH - 6, UI.HEIGHT - 6), Color.FromArgb(240, 25, 25, 25)).Draw();
            new UIRectangle(new Point(UI.WIDTH - 342, UI.HEIGHT - 23), new Size(332, 14), Color.FromArgb(120, 8, 8, 8)).Draw();
            new UIText("[backspace] back [5] " + activateText + " [num4] left [num6] right  [num8] up [num2] down",
                       new Point(UI.WIDTH - 340, UI.HEIGHT - 23), 0.18f, Color.White, 0, false).Draw();

            new UIText(title, new Point(50, 20), 1.2f, Color.White, 0, false).Draw();
            new UIText(subText, new Point(50, 70), 0.5f, Color.White, 0, false).Draw();
            new UIText(RPG.PlayerData.Name.ToLower() + " level " + RPG.PlayerData.Level + " criminal", new Point(UI.WIDTH - 250, 40), 0.4f, Color.White, 0, false).Draw();

            new UIRectangle(new Point(UI.WIDTH / 2 - 150, UI.HEIGHT - 110), new Size(300, 100), Color.FromArgb(120, 8, 8, 8)).Draw();
            SelectedObj.DrawDetails(DataTree);


            DataTree.Draw(DataTree, null, DrawNode);
        }