本文整理汇总了C#中Partition.Init方法的典型用法代码示例。如果您正苦于以下问题:C# Partition.Init方法的具体用法?C# Partition.Init怎么用?C# Partition.Init使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Partition
的用法示例。
在下文中一共展示了Partition.Init方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Init
public void Init()
{
this.ListUIChildren = new List<UIComponent>();
Ribbon.HEIGHT = (int)(0.2f * Render.ScreenHeight);
Rec = new Rectangle(0, 0, (int)Render.ScreenWidth, Ribbon.HEIGHT);
RecMenuBar = new Rectangle(Ribbon.MARGE + 100, 0, Rec.Width - 100 - Ribbon.MARGE * 2, 30);
recBackground = new Rectangle(Rec.X, Rec.Y, Rec.Width, (int)((float)Rec.Height * 1.2f));
vecTime = new Vector2(RecMenuBar.Left + MARGE * 4, RecMenuBar.Top + RecMenuBar.Height / 2 - Render.FontTextSmall.MeasureString("0").Y / 2);
BPMMeter BPMMeter = new BPMMeter(this, this.UI, GetNewTimeSpan());
BPMMeter.Init();
this.ListUIChildren.Add(BPMMeter);
Partition = new Partition(this, this.UI, GetNewTimeSpan());
Partition.Init();
this.ListUIChildren.Add(Partition);
imgPlay = new ClickableImage(UI, this, GetNewTimeSpan(), "Play", Render.texPlay, Render.texPlay, new Vector2(BPMMeter.Rec.Right + MARGE * 2, Partition.Rec.Y + RecMenuBar.Height / 2 - Render.texPlay.Height / 2));
imgPause = new ClickableImage(UI, this, GetNewTimeSpan(), "Pause", Render.texPause, Render.texPause, new Vector2(BPMMeter.Rec.Right + MARGE * 2, Partition.Rec.Y + RecMenuBar.Height / 2 - Render.texPause.Height / 2));
imgPause.Visible = false;
imgStop = new ClickableImage(UI, this, GetNewTimeSpan(), "Stop", Render.texStop, Render.texStop, new Vector2(BPMMeter.Rec.Right + MARGE * 3 + Render.texPlay.Width, Partition.Rec.Y + RecMenuBar.Height / 2 - Render.texStop.Height / 2));
imgPlay.ClickImage += new ClickableImage.ClickImageHandler(imgPlay_ClickImage);
imgPause.ClickImage += new ClickableImage.ClickImageHandler(imgPause_ClickImage);
imgStop.ClickImage += new ClickableImage.ClickImageHandler(imgStop_ClickImage);
this.ListUIChildren.Add(imgPlay);
this.ListUIChildren.Add(imgPause);
this.ListUIChildren.Add(imgStop);
}