Exemplo n.º 1
0
 protected override void OnInitUI()
 {
     //生成相应的组件
     m_graph = Create <FGraph>(new FairyGUI.GGraph());
     m_graph.DrawEllipse(16, 16, Color.red);
     AddChild(m_graph);
 }
Exemplo n.º 2
0
        public override Wrapper <GObject> InitWithObj(GObject obj)
        {
            base.InitWithObj(obj);

            icon        = GetChild <FLoader>(iconName);
            title       = GetChild <FRichText>(titleName);
            closeButton = GetChild <FButton>(closeBtnName);
            dragArea    = GetChild <FGraph>(dragAreaName);
            contentArea = GetChild <FGraph>(contentAreaName);

            return(this);
        }