Files
LuaCsForBarotraumaEP/Libraries/MonoGame.Framework/Src/Tools/Pipeline/Controls/BuildOutput.eto.cs
2019-06-25 16:00:44 +03:00

47 lines
1.4 KiB
C#

// MonoGame - Copyright (C) The MonoGame Team
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
using System;
using Eto.Forms;
namespace MonoGame.Tools.Pipeline
{
public partial class BuildOutput : Pad
{
Panel panel;
TextArea textArea;
Scrollable scrollable;
Drawable drawable;
private void InitializeComponent()
{
Title = "Build Output";
panel = new Panel();
textArea = new TextArea();
textArea.Wrap = false;
textArea.ReadOnly = true;
scrollable = new Scrollable();
scrollable.BackgroundColor = DrawInfo.BackColor;
scrollable.ExpandContentWidth = true;
scrollable.ExpandContentHeight = true;
drawable = new Drawable();
scrollable.Content = drawable;
panel.Content = textArea;
CreateContent(panel);
drawable.MouseDown += Drawable_MouseDown;
drawable.MouseMove += Drawable_MouseMove;
drawable.MouseLeave += Drawable_MouseLeave;
drawable.SizeChanged += Drawable_SizeChanged;
drawable.Paint += Drawable_Paint;
scrollable.SizeChanged += Scrollable1_SizeChanged;
scrollable.Scroll += Scrollable1_Scroll;
}
}
}