Exemplo n.º 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);
 }
Exemplo n.º 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)));
 }
Exemplo n.º 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)));
 }
Exemplo n.º 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);
 }
Exemplo n.º 5
0
 public ObjectLinker(UIContainer container, ModelElement mod)
 {
     con   = container;
     model = mod;
 }
 public UILinker(UIContainer container, ModelElement mod)
 {
     con   = container;
     model = mod;
     container.linkers.Add(this);
 }
Exemplo n.º 7
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="container">容器实例</param>
 public ObjectLinker(UIContainer container)
 {
     container.linkers.Add(this);
 }