Example #1
0
 public void Awake()
 {
     if (Content == null)
     {
         Content = new Core.HGUI.HText();
     }
     ContextID = Content.GetInstanceID();
 }
Example #2
0
 public override Core.HGUI.UIElement GetUIData()
 {
     if (Content == null)
     {
         Content = new Core.HGUI.HText();
     }
     return(Content);
 }
Example #3
0
        protected unsafe void SaveHText(FakeStruct fake, huqiang.Core.HGUI.HText ht)
        {
            var        src = ht;
            HTextData *tar = (HTextData *)fake.ip;

            tar->text = fake.buffer.AddData(src.m_text);
            if (src._font != null)
            {
                tar->font = fake.buffer.AddData(src._font.name);
            }
            tar->pivot       = src.TextPivot;
            tar->m_hof       = src.m_hof;
            tar->m_vof       = src.m_vof;
            tar->anchor      = src.TextAnchor;
            tar->m_richText  = src.m_richText;
            tar->m_lineSpace = src.m_lineSpace;
            tar->m_fontSize  = src.m_fontSize;
            tar->m_align     = src.m_align;
            tar->m_fontStyle = src.m_fontStyle;
            tar->sizeFitter  = src.sizeFitter;
            tar->OutLine     = src.OutLine;
        }