Ejemplo n.º 1
0
        public GButton()
        {
            pageOption = new PageOption();

            sound              = UIConfig.buttonSound;
            soundVolumeScale   = UIConfig.buttonSoundVolumeScale;
            changeStateOnClick = true;
            _downEffectValue   = 0.8f;
            _title             = string.Empty;
        }
Ejemplo n.º 2
0
        public GButton()
        {
            pageOption = new PageOption();

            sound              = UIConfig.buttonSound;
            soundVolumeScale   = UIConfig.buttonSoundVolumeScale;
            changeStateOnClick = true;

            onChanged = new EventListener(this, "onChanged");
        }
Ejemplo n.º 3
0
        public GButton()
        {
            pageOption = new PageOption();

            sound = UIConfig.buttonSound;
            soundVolumeScale = UIConfig.buttonSoundVolumeScale;
            changeStateOnClick = true;

            onChanged = new EventListener(this, "onChanged");
        }
Ejemplo n.º 4
0
        public GButton()
        {
            pageOption = new PageOption();

            sound              = UIConfig.buttonSound;
            soundVolumeScale   = UIConfig.buttonSoundVolumeScale;
            changeStateOnClick = true;
            _downEffectValue   = 0.8f;
            _title             = string.Empty;

            onChanged = new EventListener(this, "onChanged");
        }
Ejemplo n.º 5
0
 static public int Clear(IntPtr l)
 {
     try {
         FairyGUI.PageOption self = (FairyGUI.PageOption)checkSelf(l);
         self.Clear();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 6
0
        public GButton()
        {
            pageOption = new PageOption();

            sound = UIConfig.buttonSound;
            soundVolumeScale = UIConfig.buttonSoundVolumeScale;
            changeStateOnClick = true;
            _downEffectValue = 0.8f;
            _title = string.Empty;

            onChanged = new EventListener(this, "onChanged");
        }
Ejemplo n.º 7
0
 static public int get_name(IntPtr l)
 {
     try {
         FairyGUI.PageOption self = (FairyGUI.PageOption)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.name);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 8
0
 static public int constructor(IntPtr l)
 {
     try {
         FairyGUI.PageOption o;
         o = new FairyGUI.PageOption();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 9
0
 static int Clear(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         FairyGUI.PageOption obj = (FairyGUI.PageOption)ToLua.CheckObject(L, 1, typeof(FairyGUI.PageOption));
         obj.Clear();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Ejemplo n.º 10
0
 static public int set_name(IntPtr l)
 {
     try {
         FairyGUI.PageOption self = (FairyGUI.PageOption)checkSelf(l);
         string v;
         checkType(l, 2, out v);
         self.name = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 11
0
 static public int set_controller(IntPtr l)
 {
     try {
         FairyGUI.PageOption self = (FairyGUI.PageOption)checkSelf(l);
         FairyGUI.Controller v;
         checkType(l, 2, out v);
         self.controller = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 12
0
    static int get_id(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.PageOption obj = (FairyGUI.PageOption)o;
            string ret = obj.id;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index id on a nil value" : e.Message));
        }
    }
Ejemplo n.º 13
0
    static int set_id(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.PageOption obj = (FairyGUI.PageOption)o;
            string arg0             = ToLua.CheckString(L, 2);
            obj.id = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index id on a nil value" : e.Message));
        }
    }
Ejemplo n.º 14
0
    static int set_index(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.PageOption obj = (FairyGUI.PageOption)o;
            int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
            obj.index = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index index on a nil value" : e.Message));
        }
    }
Ejemplo n.º 15
0
    static int set_controller(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.PageOption obj  = (FairyGUI.PageOption)o;
            FairyGUI.Controller arg0 = (FairyGUI.Controller)ToLua.CheckObject(L, 2, typeof(FairyGUI.Controller));
            obj.controller = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index controller on a nil value" : e.Message));
        }
    }
    static int get_pageOption(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GButton    obj = (FairyGUI.GButton)o;
            FairyGUI.PageOption ret = obj.pageOption;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index pageOption on a nil value" : e.Message));
        }
    }
Ejemplo n.º 17
0
    static int _CreateFairyGUI_PageOption(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                FairyGUI.PageOption obj = new FairyGUI.PageOption();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: FairyGUI.PageOption.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }