AddUISource() 공개 메소드

Set a UISource to this window. It must call before the window is shown. When the window is first time to show, UISource.Load is called. Only after all UISource is loaded, the window will continue to init. 为窗口添加一个源。这个方法建议在构造函数调用。当窗口第一次显示前,UISource的Load方法将被调用,然后只有所有的UISource 都ready后,窗口才会继续初始化和显示。
public AddUISource ( IUISource source ) : void
source IUISource
리턴 void
 static public int AddUISource(IntPtr l)
 {
     try {
         FairyGUI.Window    self = (FairyGUI.Window)checkSelf(l);
         FairyGUI.IUISource a1;
         checkType(l, 2, out a1);
         self.AddUISource(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
예제 #2
0
 static int AddUISource(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         FairyGUI.Window    obj  = (FairyGUI.Window)ToLua.CheckObject(L, 1, typeof(FairyGUI.Window));
         FairyGUI.IUISource arg0 = (FairyGUI.IUISource)ToLua.CheckObject(L, 2, typeof(FairyGUI.IUISource));
         obj.AddUISource(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }