本文整理汇总了C#中FSO.Client.UI.Framework.UIElement.DrawLocalTexture方法的典型用法代码示例。如果您正苦于以下问题:C# UIElement.DrawLocalTexture方法的具体用法?C# UIElement.DrawLocalTexture怎么用?C# UIElement.DrawLocalTexture使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FSO.Client.UI.Framework.UIElement
的用法示例。
在下文中一共展示了UIElement.DrawLocalTexture方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DrawOntoPosition
public void DrawOntoPosition(SpriteBatch SBatch, UIElement element, Texture2D m_Texture, float width, float height, Vector2 position)
{
/** TL **/
element.DrawLocalTexture(SBatch, m_Texture, this.TL, position);
/** TC **/
element.DrawLocalTexture(SBatch, m_Texture, this.TC, position + new Vector2(this.Left, 0), this.TC_Scale);
/** TR **/
element.DrawLocalTexture(SBatch, m_Texture, this.TR, position + new Vector2(width - this.Right, 0));
/** ML **/
element.DrawLocalTexture(SBatch, m_Texture, this.ML, position + new Vector2(0, this.Top), this.ML_Scale);
/** MC **/
element.DrawLocalTexture(SBatch, m_Texture, this.MC, position + new Vector2(this.Left, this.Top), this.MC_Scale);
/** MR **/
element.DrawLocalTexture(SBatch, m_Texture, this.MR, position + new Vector2(width - this.Right, this.Top), this.MR_Scale);
/** BL **/
var bottomY = height - this.Bottom;
element.DrawLocalTexture(SBatch, m_Texture, this.BL, position + new Vector2(0, bottomY));
/** BC **/
element.DrawLocalTexture(SBatch, m_Texture, this.BC, position + new Vector2(this.Left, bottomY), this.BC_Scale);
/** BR **/
element.DrawLocalTexture(SBatch, m_Texture, this.BR, position + new Vector2(width - this.Right, bottomY));
}