示例#1
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="container">容器实例</param>
 public ObjectLinker(UIContainer container, UIElement mod)
 {
     enityModel            = mod;
     enityModel.activeSelf = false;
     container.linkers.Add(this);
     GetElementCount(mod);
 }
示例#2
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="container">模型名称</param>
 /// <param name="mod">模式数据</param>
 public UILinker(UIContainer container, FakeStruct mod)
 {
     con   = container;
     model = mod;
     container.linkers.Add(this);
     initializer = new UIInitializer(TempReflection.ObjectFields(typeof(T)));
 }
示例#3
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="container">容器实例</param>
 /// <param name="mod">模型名称</param>
 public UILinker(UIContainer container, string mod)
 {
     if (container.model == null)
     {
         return;
     }
     con   = container;
     model = HGUIManager.FindChild(container.model, mod);
     container.linkers.Add(this);
     initializer = new UIInitializer(TempReflection.ObjectFields(typeof(T)));
 }
示例#4
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="container">模型名称</param>
 /// <param name="mod">模式数据</param>
 public UILinker(UIContainer container, UIElement mod)
 {
     enityModel            = mod;
     enityModel.activeSelf = false;
     con   = container;
     model = enityModel.mod;
     container.linkers.Add(this);
     initializer = new UIInitializer(TempReflection.ObjectFields(typeof(T)));
     uiModel     = new T();
     initializer.ReflectionEnity(uiModel, mod);
     GetElementCount(mod);
 }
 public ObjectLinker(UIContainer container, ModelElement mod)
 {
     con   = container;
     model = mod;
 }
 public UILinker(UIContainer container, ModelElement mod)
 {
     con   = container;
     model = mod;
     container.linkers.Add(this);
 }
示例#7
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="container">容器实例</param>
 public ObjectLinker(UIContainer container)
 {
     container.linkers.Add(this);
 }