예제 #1
0
 public void Awake()
 {
     if (Content == null)
     {
         Content = new Core.HGUI.UIElement();
     }
     ContextID = Content.GetInstanceID();
 }
예제 #2
0
 public override Core.HGUI.UIElement GetUIData()
 {
     if (Content == null)
     {
         Content = new Core.HGUI.UIElement();
     }
     return(Content);
 }
예제 #3
0
        protected unsafe void SaveScript(byte *ip, huqiang.Core.HGUI.UIElement ui)
        {
            var            src = ui;
            UIElementData *tar = (UIElementData *)ip;

            tar->m_sizeDelta     = src.m_sizeDelta;
            tar->Pivot           = src.Pivot;
            tar->scaleType       = src.scaleType;
            tar->anchorType      = src.anchorType;
            tar->anchorPointType = src.anchorPointType;
            tar->anchorOffset    = src.anchorOffset;
            tar->marginType      = src.marginType;
            tar->parentType      = src.parentType;
            tar->margin          = src.margin;
            tar->Mask            = src.Mask;
            tar->eventType       = src.eventType;
            tar->compositeType   = src.compositeType;
        }