GButton class.
Inheritance: GComponent
Exemplo n.º 1
0
    static int AddItemAt(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(FairyGUI.PopupMenu), typeof(string), typeof(int), typeof(FairyGUI.EventCallback1)))
            {
                FairyGUI.PopupMenu obj  = (FairyGUI.PopupMenu)ToLua.ToObject(L, 1);
                string             arg0 = ToLua.ToString(L, 2);
                int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
                FairyGUI.EventCallback1 arg2 = null;
                LuaTypes funcType4           = LuaDLL.lua_type(L, 4);

                if (funcType4 != LuaTypes.LUA_TFUNCTION)
                {
                    arg2 = (FairyGUI.EventCallback1)ToLua.ToObject(L, 4);
                }
                else
                {
                    LuaFunction func = ToLua.ToLuaFunction(L, 4);
                    arg2 = DelegateFactory.CreateDelegate(typeof(FairyGUI.EventCallback1), func) as FairyGUI.EventCallback1;
                }

                FairyGUI.GButton o = obj.AddItemAt(arg0, arg1, arg2);
                ToLua.PushObject(L, o);
                return(1);
            }
            else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(FairyGUI.PopupMenu), typeof(string), typeof(int), typeof(FairyGUI.EventCallback0)))
            {
                FairyGUI.PopupMenu obj  = (FairyGUI.PopupMenu)ToLua.ToObject(L, 1);
                string             arg0 = ToLua.ToString(L, 2);
                int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
                FairyGUI.EventCallback0 arg2 = null;
                LuaTypes funcType4           = LuaDLL.lua_type(L, 4);

                if (funcType4 != LuaTypes.LUA_TFUNCTION)
                {
                    arg2 = (FairyGUI.EventCallback0)ToLua.ToObject(L, 4);
                }
                else
                {
                    LuaFunction func = ToLua.ToLuaFunction(L, 4);
                    arg2 = DelegateFactory.CreateDelegate(typeof(FairyGUI.EventCallback0), func) as FairyGUI.EventCallback0;
                }

                FairyGUI.GButton o = obj.AddItemAt(arg0, arg1, arg2);
                ToLua.PushObject(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: FairyGUI.PopupMenu.AddItemAt"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
    static int AddItem(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 3 && TypeChecker.CheckTypes <FairyGUI.EventCallback1>(L, 3))
            {
                FairyGUI.PopupMenu      obj  = (FairyGUI.PopupMenu)ToLua.CheckObject <FairyGUI.PopupMenu>(L, 1);
                string                  arg0 = ToLua.CheckString(L, 2);
                FairyGUI.EventCallback1 arg1 = (FairyGUI.EventCallback1)ToLua.ToObject(L, 3);
                FairyGUI.GButton        o    = obj.AddItem(arg0, arg1);
                ToLua.PushObject(L, o);
                return(1);
            }
            else if (count == 3 && TypeChecker.CheckTypes <FairyGUI.EventCallback0>(L, 3))
            {
                FairyGUI.PopupMenu      obj  = (FairyGUI.PopupMenu)ToLua.CheckObject <FairyGUI.PopupMenu>(L, 1);
                string                  arg0 = ToLua.CheckString(L, 2);
                FairyGUI.EventCallback0 arg1 = (FairyGUI.EventCallback0)ToLua.ToObject(L, 3);
                FairyGUI.GButton        o    = obj.AddItem(arg0, arg1);
                ToLua.PushObject(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: FairyGUI.PopupMenu.AddItem"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Exemplo n.º 3
0
    static int FireClick(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                FairyGUI.GButton obj  = (FairyGUI.GButton)ToLua.CheckObject <FairyGUI.GButton>(L, 1);
                bool             arg0 = LuaDLL.luaL_checkboolean(L, 2);
                obj.FireClick(arg0);
                return(0);
            }
            else if (count == 3)
            {
                FairyGUI.GButton obj  = (FairyGUI.GButton)ToLua.CheckObject <FairyGUI.GButton>(L, 1);
                bool             arg0 = LuaDLL.luaL_checkboolean(L, 2);
                bool             arg1 = LuaDLL.luaL_checkboolean(L, 3);
                obj.FireClick(arg0, arg1);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: FairyGUI.GButton.FireClick"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Exemplo n.º 4
0
	static public int get_changeStateOnClick(IntPtr l) {
		try {
			FairyGUI.GButton self=(FairyGUI.GButton)checkSelf(l);
			pushValue(l,true);
			pushValue(l,self.changeStateOnClick);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
Exemplo n.º 5
0
	static public int get_selected(IntPtr l) {
		try {
			FairyGUI.GButton self=(FairyGUI.GButton)checkSelf(l);
			pushValue(l,true);
			pushValue(l,self.selected);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
Exemplo n.º 6
0
	static public int get_mode(IntPtr l) {
		try {
			FairyGUI.GButton self=(FairyGUI.GButton)checkSelf(l);
			pushValue(l,true);
			pushEnum(l,(int)self.mode);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
Exemplo n.º 7
0
	static public int get_relatedController(IntPtr l) {
		try {
			FairyGUI.GButton self=(FairyGUI.GButton)checkSelf(l);
			pushValue(l,true);
			pushValue(l,self.relatedController);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
Exemplo n.º 8
0
 static public int get_soundVolumeScale(IntPtr l)
 {
     try {
         FairyGUI.GButton self = (FairyGUI.GButton)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.soundVolumeScale);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 9
0
 static public int get_titleColor(IntPtr l)
 {
     try {
         FairyGUI.GButton self = (FairyGUI.GButton)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.titleColor);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 10
0
	static public int constructor(IntPtr l) {
		try {
			FairyGUI.GButton o;
			o=new FairyGUI.GButton();
			pushValue(l,true);
			pushValue(l,o);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
Exemplo n.º 11
0
	static public int FireClick(IntPtr l) {
		try {
			FairyGUI.GButton self=(FairyGUI.GButton)checkSelf(l);
			System.Boolean a1;
			checkType(l,2,out a1);
			self.FireClick(a1);
			pushValue(l,true);
			return 1;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
Exemplo n.º 12
0
	static public int set_soundVolumeScale(IntPtr l) {
		try {
			FairyGUI.GButton self=(FairyGUI.GButton)checkSelf(l);
			System.Single v;
			checkType(l,2,out v);
			self.soundVolumeScale=v;
			pushValue(l,true);
			return 1;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
Exemplo n.º 13
0
	static public int set_sound(IntPtr l) {
		try {
			FairyGUI.GButton self=(FairyGUI.GButton)checkSelf(l);
			UnityEngine.AudioClip v;
			checkType(l,2,out v);
			self.sound=v;
			pushValue(l,true);
			return 1;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
Exemplo n.º 14
0
	static public int set_changeStateOnClick(IntPtr l) {
		try {
			FairyGUI.GButton self=(FairyGUI.GButton)checkSelf(l);
			System.Boolean v;
			checkType(l,2,out v);
			self.changeStateOnClick=v;
			pushValue(l,true);
			return 1;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
Exemplo n.º 15
0
	static public int set_linkedPopup(IntPtr l) {
		try {
			FairyGUI.GButton self=(FairyGUI.GButton)checkSelf(l);
			FairyGUI.GObject v;
			checkType(l,2,out v);
			self.linkedPopup=v;
			pushValue(l,true);
			return 1;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
Exemplo n.º 16
0
	static public int set_relatedController(IntPtr l) {
		try {
			FairyGUI.GButton self=(FairyGUI.GButton)checkSelf(l);
			FairyGUI.Controller v;
			checkType(l,2,out v);
			self.relatedController=v;
			pushValue(l,true);
			return 1;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
Exemplo n.º 17
0
	static public int Setup_AfterAdd(IntPtr l) {
		try {
			FairyGUI.GButton self=(FairyGUI.GButton)checkSelf(l);
			FairyGUI.Utils.XML a1;
			checkType(l,2,out a1);
			self.Setup_AfterAdd(a1);
			pushValue(l,true);
			return 1;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
Exemplo n.º 18
0
	static public int set_mode(IntPtr l) {
		try {
			FairyGUI.GButton self=(FairyGUI.GButton)checkSelf(l);
			FairyGUI.ButtonMode v;
			checkEnum(l,2,out v);
			self.mode=v;
			pushValue(l,true);
			return 1;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
Exemplo n.º 19
0
	static public int set_selected(IntPtr l) {
		try {
			FairyGUI.GButton self=(FairyGUI.GButton)checkSelf(l);
			bool v;
			checkType(l,2,out v);
			self.selected=v;
			pushValue(l,true);
			return 1;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
Exemplo n.º 20
0
	static public int set_titleColor(IntPtr l) {
		try {
			FairyGUI.GButton self=(FairyGUI.GButton)checkSelf(l);
			UnityEngine.Color v;
			checkType(l,2,out v);
			self.titleColor=v;
			pushValue(l,true);
			return 1;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
Exemplo n.º 21
0
	static public int HandleControllerChanged(IntPtr l) {
		try {
			FairyGUI.GButton self=(FairyGUI.GButton)checkSelf(l);
			FairyGUI.Controller a1;
			checkType(l,2,out a1);
			self.HandleControllerChanged(a1);
			pushValue(l,true);
			return 1;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
Exemplo n.º 22
0
	static public int set_text(IntPtr l) {
		try {
			FairyGUI.GButton self=(FairyGUI.GButton)checkSelf(l);
			string v;
			checkType(l,2,out v);
			self.text=v;
			pushValue(l,true);
			return 1;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
Exemplo n.º 23
0
 static public int set_selectedTitle(IntPtr l)
 {
     try {
         FairyGUI.GButton self = (FairyGUI.GButton)checkSelf(l);
         string           v;
         checkType(l, 2, out v);
         self.selectedTitle = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 24
0
 static public int ConstructFromXML(IntPtr l)
 {
     try {
         FairyGUI.GButton   self = (FairyGUI.GButton)checkSelf(l);
         FairyGUI.Utils.XML a1;
         checkType(l, 2, out a1);
         self.ConstructFromXML(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static int ConstructFromXML(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         FairyGUI.GButton   obj  = (FairyGUI.GButton)ToLua.CheckObject(L, 1, typeof(FairyGUI.GButton));
         FairyGUI.Utils.XML arg0 = (FairyGUI.Utils.XML)ToLua.CheckObject(L, 2, typeof(FairyGUI.Utils.XML));
         obj.ConstructFromXML(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int HandleControllerChanged(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         FairyGUI.GButton    obj  = (FairyGUI.GButton)ToLua.CheckObject(L, 1, typeof(FairyGUI.GButton));
         FairyGUI.Controller arg0 = (FairyGUI.Controller)ToLua.CheckObject(L, 2, typeof(FairyGUI.Controller));
         obj.HandleControllerChanged(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int FireClick(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         FairyGUI.GButton obj  = (FairyGUI.GButton)ToLua.CheckObject(L, 1, typeof(FairyGUI.GButton));
         bool             arg0 = LuaDLL.luaL_checkboolean(L, 2);
         obj.FireClick(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 28
0
 static int GetTextField(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         FairyGUI.GButton    obj = (FairyGUI.GButton)ToLua.CheckObject <FairyGUI.GButton>(L, 1);
         FairyGUI.GTextField o   = obj.GetTextField();
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 29
0
 static int Setup_AfterAdd(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         FairyGUI.GButton   obj  = (FairyGUI.GButton)ToLua.CheckObject <FairyGUI.GButton>(L, 1);
         FairyGUI.Utils.XML arg0 = (FairyGUI.Utils.XML)ToLua.CheckObject <FairyGUI.Utils.XML>(L, 2);
         obj.Setup_AfterAdd(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 30
0
 static int Setup_AfterAdd(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         FairyGUI.GButton          obj  = (FairyGUI.GButton)ToLua.CheckObject <FairyGUI.GButton>(L, 1);
         FairyGUI.Utils.ByteBuffer arg0 = (FairyGUI.Utils.ByteBuffer)ToLua.CheckObject <FairyGUI.Utils.ByteBuffer>(L, 2);
         int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
         obj.Setup_AfterAdd(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }