Beispiel #1
0
 static int setValue(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         UITextAgent obj  = (UITextAgent)ToLua.CheckObject(L, 1, typeof(UITextAgent));
         int         arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         int         arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
         obj.setValue(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();
    }
Beispiel #3
0
    static int set_uiTextAgent(IntPtr L)
    {
        object o = null;

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

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

        try
        {
            o = ToLua.ToObject(L, 1);
            UITextAgent obj = (UITextAgent)o;
            UITextAgent.TextAgentMode ret = obj._mode;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index _mode on a nil value" : e.Message));
        }
    }
Beispiel #6
0
    static int get__formatText(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UITextAgent obj = (UITextAgent)o;
            string      ret = obj._formatText;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index _formatText on a nil value" : e.Message));
        }
    }
Beispiel #7
0
    static int set__mode(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UITextAgent obj = (UITextAgent)o;
            UITextAgent.TextAgentMode arg0 = (UITextAgent.TextAgentMode)ToLua.CheckObject(L, 2, typeof(UITextAgent.TextAgentMode));
            obj._mode = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index _mode on a nil value" : e.Message));
        }
    }
Beispiel #8
0
    static int set__formatText(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UITextAgent obj  = (UITextAgent)o;
            string      arg0 = ToLua.CheckString(L, 2);
            obj._formatText = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index _formatText on a nil value" : e.Message));
        }
    }