static public int get_componentName(IntPtr l) { try { FairyGUI.UIPanel self = (FairyGUI.UIPanel)checkSelf(l); pushValue(l, true); pushValue(l, self.componentName); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int get_fitScreen(IntPtr l) { try { FairyGUI.UIPanel self = (FairyGUI.UIPanel)checkSelf(l); pushValue(l, true); pushEnum(l, (int)self.fitScreen); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int get_EM_sortingOrder(IntPtr l) { try { FairyGUI.UIPanel self = (FairyGUI.UIPanel)checkSelf(l); pushValue(l, true); pushValue(l, self.EM_sortingOrder); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int EM_BeforeUpdate(IntPtr l) { try { FairyGUI.UIPanel self = (FairyGUI.UIPanel)checkSelf(l); self.EM_BeforeUpdate(); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int GetUIWorldPosition(IntPtr l) { try { FairyGUI.UIPanel self = (FairyGUI.UIPanel)checkSelf(l); var ret = self.GetUIWorldPosition(); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
private void CreateWindowAsync(string packageName, string name) { GameObject win = new GameObject(name); Utils.NormalizeTransform(win.transform); if (!win.activeSelf) { win.SetActive(true); } FairyGUI.UIPanel panel = win.AddComponent <FairyGUI.UIPanel>(); panel.container.renderMode = RenderMode.ScreenSpaceOverlay; panel.container.fairyBatching = true; panel.container.SetChildrenLayer(uiMrg.windowRoot.gameObject.layer); panel.packageName = packageName; panel.componentName = name; LuaWindow window = win.AddComponent <LuaWindow>(); window.Setup(uiMrg, this, name); panel.CreateUI(); Utils.AttachChild(uiMrg.windowRoot, win.transform, true); //UIPackage.CreateObjectAsync(packageName, name, (GObject result) => //{ // GameObject winObj = result.displayObject.gameObject; // if (!winObj) // { // LOG.Debug(string.Format("load window '{0}' fail.", name)); // return; // } // CClientCommon.AttachChild(uiMrg.windowRoot, winObj.transform); // CClientCommon.NormalizeTransform(winObj.transform); // if (!winObj.activeSelf) // winObj.SetActive(true); // Type winType = uiMrg.GetWindowType(name); // if (winType == null) // { // return; // } // FairyGUI.UIPanel panel = winObj.AddComponent<FairyGUI.UIPanel>(); // panel.container.renderMode = RenderMode.ScreenSpaceOverlay; // panel.container.fairyBatching = true; // UIWindow window = winObj.AddComponent(winType) as UIWindow; // window.Setup(uiMrg, name); //}); }
static int CacheNativeChildrenRenderers(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); FairyGUI.UIPanel obj = (FairyGUI.UIPanel)ToLua.CheckObject(L, 1, typeof(FairyGUI.UIPanel)); obj.CacheNativeChildrenRenderers(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static public int EM_Update(IntPtr l) { try { FairyGUI.UIPanel self = (FairyGUI.UIPanel)checkSelf(l); FairyGUI.UpdateContext a1; checkType(l, 2, out a1); self.EM_Update(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static int EM_Reload(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); FairyGUI.UIPanel obj = (FairyGUI.UIPanel)ToLua.CheckObject <FairyGUI.UIPanel>(L, 1); obj.EM_Reload(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int CreateUI(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); FairyGUI.UIPanel obj = (FairyGUI.UIPanel)ToLua.CheckObject(L, 1, typeof(FairyGUI.UIPanel)); obj.CreateUI(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static public int MoveUI(IntPtr l) { try { FairyGUI.UIPanel self = (FairyGUI.UIPanel)checkSelf(l); UnityEngine.Vector3 a1; checkType(l, 2, out a1); self.MoveUI(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int set_sortingOrder(IntPtr l) { try { FairyGUI.UIPanel self = (FairyGUI.UIPanel)checkSelf(l); System.Int32 v; checkType(l, 2, out v); self.sortingOrder = v; pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int set_fitScreen(IntPtr l) { try { FairyGUI.UIPanel self = (FairyGUI.UIPanel)checkSelf(l); FairyGUI.FitScreen v; checkEnum(l, 2, out v); self.fitScreen = v; pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int set_componentName(IntPtr l) { try { FairyGUI.UIPanel self = (FairyGUI.UIPanel)checkSelf(l); System.String v; checkType(l, 2, out v); self.componentName = v; pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static int GetUIWorldPosition(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); FairyGUI.UIPanel obj = (FairyGUI.UIPanel)ToLua.CheckObject(L, 1, typeof(FairyGUI.UIPanel)); UnityEngine.Vector3 o = obj.GetUIWorldPosition(); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int EM_Update(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); FairyGUI.UIPanel obj = (FairyGUI.UIPanel)ToLua.CheckObject(L, 1, typeof(FairyGUI.UIPanel)); FairyGUI.UpdateContext arg0 = (FairyGUI.UpdateContext)ToLua.CheckObject(L, 2, typeof(FairyGUI.UpdateContext)); obj.EM_Update(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int MoveUI(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); FairyGUI.UIPanel obj = (FairyGUI.UIPanel)ToLua.CheckObject(L, 1, typeof(FairyGUI.UIPanel)); UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2); obj.MoveUI(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SetHitTestMode(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); FairyGUI.UIPanel obj = (FairyGUI.UIPanel)ToLua.CheckObject(L, 1, typeof(FairyGUI.UIPanel)); FairyGUI.HitTestMode arg0 = (FairyGUI.HitTestMode)ToLua.CheckObject(L, 2, typeof(FairyGUI.HitTestMode)); obj.SetHitTestMode(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static public int SetSortingOrder(IntPtr l) { try { FairyGUI.UIPanel self = (FairyGUI.UIPanel)checkSelf(l); System.Int32 a1; checkType(l, 2, out a1); System.Boolean a2; checkType(l, 3, out a2); self.SetSortingOrder(a1, a2); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static int ApplyModifiedProperties(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); FairyGUI.UIPanel obj = (FairyGUI.UIPanel)ToLua.CheckObject(L, 1, typeof(FairyGUI.UIPanel)); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); bool arg1 = LuaDLL.luaL_checkboolean(L, 3); obj.ApplyModifiedProperties(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SetSortingOrder(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); FairyGUI.UIPanel obj = (FairyGUI.UIPanel)ToLua.CheckObject(L, 1, typeof(FairyGUI.UIPanel)); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); bool arg1 = LuaDLL.luaL_checkboolean(L, 3); obj.SetSortingOrder(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static public int ApplyModifiedProperties(IntPtr l) { try { FairyGUI.UIPanel self = (FairyGUI.UIPanel)checkSelf(l); System.Boolean a1; checkType(l, 2, out a1); System.Boolean a2; checkType(l, 3, out a2); self.ApplyModifiedProperties(a1, a2); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static int set_sortingOrder(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.UIPanel obj = (FairyGUI.UIPanel)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.sortingOrder = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index sortingOrder on a nil value" : e.Message)); } }
static int get_fitScreen(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.UIPanel obj = (FairyGUI.UIPanel)o; FairyGUI.FitScreen ret = obj.fitScreen; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index fitScreen on a nil value" : e.Message)); } }
static int get_container(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.UIPanel obj = (FairyGUI.UIPanel)o; FairyGUI.Container ret = obj.container; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index container on a nil value")); } }
static int set_componentName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.UIPanel obj = (FairyGUI.UIPanel)o; string arg0 = ToLua.CheckString(L, 2); obj.componentName = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index componentName on a nil value" : e.Message)); } }
static int get_componentName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.UIPanel obj = (FairyGUI.UIPanel)o; string ret = obj.componentName; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index componentName on a nil value" : e.Message)); } }
static int set_fitScreen(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.UIPanel obj = (FairyGUI.UIPanel)o; FairyGUI.FitScreen arg0 = (FairyGUI.FitScreen)ToLua.CheckObject(L, 2, typeof(FairyGUI.FitScreen)); obj.fitScreen = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index fitScreen on a nil value" : e.Message)); } }
static int get_ui(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.UIPanel obj = (FairyGUI.UIPanel)o; FairyGUI.GComponent ret = obj.ui; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index ui on a nil value" : e.Message)); } }
static int get_EM_sortingOrder(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.UIPanel obj = (FairyGUI.UIPanel)o; int ret = obj.EM_sortingOrder; LuaDLL.lua_pushinteger(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index EM_sortingOrder on a nil value" : e.Message)); } }