public override void OnInspectorGUI()
    {
        UITextTimeCountdown txt = target as UITextTimeCountdown;
        int Interval            = EditorGUILayout.IntField("Interval", txt.Interval);

        if (txt.Interval != Interval)
        {
            txt.Interval = Interval;
        }
        UITextTimeCountdown.DirectType direct = (UITextTimeCountdown.DirectType)EditorGUILayout.EnumPopup("Direct", txt.Direct);
        txt.Direct = direct;

        int controlID = EditorGUILayout.IntField("ControlID", txt.controlID);

        txt.controlID = controlID;

        //int duration = EditorGUILayout.IntField("Duration", txt.Duration);
        //if (duration != txt.Duration)
        //txt.Duration = duration;

        bool playOnEable = EditorGUILayout.Toggle("PlayOnEable", txt.playOnEable);

        txt.playOnEable = playOnEable;

        base.OnInspectorGUI();
    }
Example #2
0
 static int Update(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UITextTimeCountdown obj = (UITextTimeCountdown)ToLua.CheckObject(L, 1, typeof(UITextTimeCountdown));
         obj.Update();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Example #3
0
 static int SetTime(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         UITextTimeCountdown obj = (UITextTimeCountdown)ToLua.CheckObject(L, 1, typeof(UITextTimeCountdown));
         int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
         obj.SetTime(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    public override void OnInspectorGUI()
    {
        UITextTimeCountdown txt = target as UITextTimeCountdown;
        int Interval            = EditorGUILayout.IntField("Interval", txt.Interval);

        if (txt.Interval != Interval)
        {
            txt.Interval = Interval;
        }
        UITextTimeCountdown.DirectType direct = (UITextTimeCountdown.DirectType)EditorGUILayout.EnumPopup("Direct", txt.Direct);
        txt.Direct = direct;

        int controlID = EditorGUILayout.IntField("ControlID", txt.controlID);

        txt.controlID = controlID;

        //int duration = EditorGUILayout.IntField("Duration", txt.Duration);
        //if (duration != txt.Duration)
        //txt.Duration = duration;

        bool playOnEable = EditorGUILayout.Toggle("PlayOnEable", txt.playOnEable);

        txt.playOnEable = playOnEable;

        bool iso = EditorGUILayout.Toggle("iso", txt.iso);

        txt.iso = iso;

        bool showall = EditorGUILayout.Toggle("showall", txt.showall);

        txt.showall = showall;

        UIProgress uiProgress = EditorGUILayout.ObjectField("UIProgress", txt.uiProgress, typeof(UIProgress), true) as UIProgress;

        txt.uiProgress = uiProgress;

        UISlider uiSlider = EditorGUILayout.ObjectField("UISlider", txt.uiSlider, typeof(UISlider), true) as UISlider;

        txt.uiSlider = uiSlider;

        UITextAgent uiTextAgent = EditorGUILayout.ObjectField("UITextAgent", txt.uiTextAgent, typeof(UITextAgent), true) as UITextAgent;

        txt.uiTextAgent = uiTextAgent;

        base.OnInspectorGUI();
    }
Example #5
0
    static int set_Direct(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UITextTimeCountdown            obj  = (UITextTimeCountdown)o;
            UITextTimeCountdown.DirectType arg0 = (UITextTimeCountdown.DirectType)ToLua.CheckObject(L, 2, typeof(UITextTimeCountdown.DirectType));
            obj.Direct = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Direct on a nil value" : e.Message));
        }
    }
Example #6
0
    static int set_PassTime(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UITextTimeCountdown obj = (UITextTimeCountdown)o;
            int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
            obj.PassTime = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index PassTime on a nil value" : e.Message));
        }
    }
Example #7
0
    static int set_overText(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UITextTimeCountdown obj = (UITextTimeCountdown)o;
            string arg0             = ToLua.CheckString(L, 2);
            obj.overText = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index overText on a nil value" : e.Message));
        }
    }
Example #8
0
    static int set_showall(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UITextTimeCountdown obj = (UITextTimeCountdown)o;
            bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.showall = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index showall on a nil value" : e.Message));
        }
    }
Example #9
0
    static int set_uiSlider(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UITextTimeCountdown obj  = (UITextTimeCountdown)o;
            UISlider            arg0 = (UISlider)ToLua.CheckUnityObject(L, 2, typeof(UISlider));
            obj.uiSlider = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uiSlider on a nil value" : e.Message));
        }
    }
Example #10
0
    static int get_LeftTime(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UITextTimeCountdown obj = (UITextTimeCountdown)o;
            int ret = obj.LeftTime;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index LeftTime on a nil value" : e.Message));
        }
    }
Example #11
0
    static int get_Direct(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UITextTimeCountdown            obj = (UITextTimeCountdown)o;
            UITextTimeCountdown.DirectType ret = obj.Direct;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Direct on a nil value" : e.Message));
        }
    }
Example #12
0
    static int get_showall(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UITextTimeCountdown obj = (UITextTimeCountdown)o;
            bool ret = obj.showall;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index showall on a nil value" : e.Message));
        }
    }
Example #13
0
    static int get_overText(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UITextTimeCountdown obj = (UITextTimeCountdown)o;
            string ret = obj.overText;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index overText on a nil value" : e.Message));
        }
    }