(ded4a3e0a) v0.9.0.7
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
// 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 Eto.Drawing;
|
||||
using Eto.Forms;
|
||||
|
||||
namespace MonoGame.Tools.Pipeline
|
||||
{
|
||||
#if LINUX
|
||||
public partial class Pad : GroupBox
|
||||
#else
|
||||
public partial class Pad : Panel
|
||||
#endif
|
||||
{
|
||||
private DynamicLayout layout;
|
||||
private StackLayout stack;
|
||||
private ImageView imageSettings;
|
||||
private Panel panelLabel;
|
||||
private Label label;
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
layout = new DynamicLayout();
|
||||
|
||||
panelLabel = new Panel();
|
||||
panelLabel.Padding = new Padding(5);
|
||||
|
||||
if (!Global.Unix)
|
||||
panelLabel.Height = 25;
|
||||
|
||||
stack = new StackLayout();
|
||||
stack.Orientation = Orientation.Horizontal;
|
||||
|
||||
label = new Label();
|
||||
label.Font = new Font(label.Font.Family, label.Font.Size - 1, FontStyle.Bold);
|
||||
stack.Items.Add(new StackLayoutItem(label, true));
|
||||
|
||||
imageSettings = new ImageView();
|
||||
imageSettings.Image = Global.GetEtoIcon("Icons.Settings.png");
|
||||
imageSettings.Visible = false;
|
||||
stack.Items.Add(new StackLayoutItem(imageSettings, false));
|
||||
|
||||
panelLabel.Content = stack;
|
||||
|
||||
layout.AddRow(panelLabel);
|
||||
|
||||
Content = layout;
|
||||
|
||||
imageSettings.MouseDown += ImageSettings_MouseDown;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user