void Start()
    {
        _mainView = this.GetComponent<UIPanel>().ui;

        BlurFilter blurFilter = new BlurFilter();
        blurFilter.blurSize = 2;
        _mainView.GetChild("n21").filter = blurFilter;

        _s0 = _mainView.GetChild("s0").asSlider;
        _s1 = _mainView.GetChild("s1").asSlider;
        _s2 = _mainView.GetChild("s2").asSlider;
        _s3 = _mainView.GetChild("s3").asSlider;
        _s4 = _mainView.GetChild("s4").asSlider;

        _s0.value = 100;
        _s1.value = 100;
        _s2.value = 100;
        _s3.value = 200;
        _s4.value = 20;

        _s0.onChanged.Add(__sliderChanged);
        _s1.onChanged.Add(__sliderChanged);
        _s2.onChanged.Add(__sliderChanged);
        _s3.onChanged.Add(__sliderChanged);
        _s4.onChanged.Add(__sliderChanged);
    }
Exemplo n.º 2
0
 static public int get_target(IntPtr l)
 {
     try {
         FairyGUI.BlurFilter self = (FairyGUI.BlurFilter)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.target);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 3
0
 static public int Update(IntPtr l)
 {
     try {
         FairyGUI.BlurFilter self = (FairyGUI.BlurFilter)checkSelf(l);
         self.Update();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 4
0
 static public int constructor(IntPtr l)
 {
     try {
         FairyGUI.BlurFilter o;
         o = new FairyGUI.BlurFilter();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 5
0
 static public int set_target(IntPtr l)
 {
     try {
         FairyGUI.BlurFilter    self = (FairyGUI.BlurFilter)checkSelf(l);
         FairyGUI.DisplayObject v;
         checkType(l, 2, out v);
         self.target = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 6
0
 static public int set_blurSize(IntPtr l)
 {
     try {
         FairyGUI.BlurFilter self = (FairyGUI.BlurFilter)checkSelf(l);
         System.Single       v;
         checkType(l, 2, out v);
         self.blurSize = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static int Update(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         FairyGUI.BlurFilter obj = (FairyGUI.BlurFilter)ToLua.CheckObject <FairyGUI.BlurFilter>(L, 1);
         obj.Update();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int get_target(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.BlurFilter    obj = (FairyGUI.BlurFilter)o;
            FairyGUI.DisplayObject ret = obj.target;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index target on a nil value"));
        }
    }
    static int get_blurSize(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.BlurFilter obj = (FairyGUI.BlurFilter)o;
            float ret = obj.blurSize;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index blurSize on a nil value"));
        }
    }
Exemplo n.º 10
0
    static int set_target(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.BlurFilter    obj  = (FairyGUI.BlurFilter)o;
            FairyGUI.DisplayObject arg0 = (FairyGUI.DisplayObject)ToLua.CheckObject <FairyGUI.DisplayObject>(L, 2);
            obj.target = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index target on a nil value"));
        }
    }
Exemplo n.º 11
0
    static int set_blurSize(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.BlurFilter obj = (FairyGUI.BlurFilter)o;
            float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.blurSize = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index blurSize on a nil value"));
        }
    }
Exemplo n.º 12
0
    static int _CreateFairyGUI_BlurFilter(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

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