Inheritance: UnityEngine.MonoBehaviour, EMRenderTarget
示例#1
0
 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));
     }
 }
示例#2
0
 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));
     }
 }
示例#3
0
 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));
     }
 }
示例#4
0
 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));
     }
 }
示例#5
0
 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));
     }
 }
示例#6
0
        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);
            //});
        }
示例#7
0
 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));
     }
 }
示例#8
0
 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));
     }
 }
示例#9
0
 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));
     }
 }
示例#10
0
 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));
     }
 }
示例#11
0
 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));
     }
 }
示例#12
0
 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));
     }
 }
示例#13
0
 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));
     }
 }
示例#14
0
 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));
     }
 }
示例#15
0
 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));
     }
 }
示例#16
0
 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));
     }
 }
示例#17
0
 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));
     }
 }
示例#18
0
 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));
     }
 }
示例#19
0
 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));
     }
 }
示例#20
0
 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));
     }
 }
示例#21
0
 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));
     }
 }
示例#22
0
 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));
     }
 }
示例#23
0
    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));
        }
    }
示例#24
0
    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));
        }
    }
示例#25
0
    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"));
        }
    }
示例#26
0
    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));
        }
    }
示例#27
0
    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));
        }
    }
示例#28
0
    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));
        }
    }
示例#29
0
    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));
        }
    }
示例#30
0
    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));
        }
    }