示例#1
0
 public MyRichLabelLink(string url, string text, float scale, Action<string> onClick)
 {
     Init(text, MyFontEnum.Blue, scale, Vector4.Zero);
     this.Url = url;
     this.m_onClick = onClick;
     var size = MyGuiManager.GetNormalizedSizeFromScreenSize(
         new Vector2(MyGuiManager.GetScreenSizeFromNormalizedSize(new Vector2(0.015f * scale)).X));
     m_linkImg = new MyRichLabelImage(m_linkImgTex, size/*MyGuiManager.GetNormalizedSizeFromScreenSize(new Vector2(16))*/, Vector4.One);
 }
示例#2
0
        public void Append(string texture, Vector2 size, Vector4 color)
        {
            MyRichLabelImage image = new MyRichLabelImage(texture, size, color);

            if (image.Size.X > m_currentLineRestFreeSpace)
            {
                AppendLine();
            }
            AppendPart(image);
        }
示例#3
0
 public void Append(string texture, Vector2 size, Vector4 color)
 {
     MyRichLabelImage image = new MyRichLabelImage(texture, size, color);
     if (image.GetSize().X > m_currentLineRestFreeSpace)
     {
         AppendLine();
     }
     AppendPart(image);
 }