Beispiel #1
0
	public override void OnInspectorGUI ()
	{
        UITweenColor tweencolor = target as UITweenColor;
		base.OnInspectorGUI ();

		EditorETweenUITools.OnDrawGUI<Graphic> (tweencolor.gameObject, tweencolor.listGraphic);

		if (GUI.changed) {
			EditorTools.SetDirty(tweencolor);
		}
	}
Beispiel #2
0
 static int ToInit(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UITweenColor obj = (UITweenColor)ToLua.CheckObject(L, 1, typeof(UITweenColor));
         obj.ToInit();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #3
0
 static int Kill(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UITweenColor obj  = (UITweenColor)ToLua.CheckObject(L, 1, typeof(UITweenColor));
         bool         arg0 = LuaDLL.luaL_checkboolean(L, 2);
         obj.Kill(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #4
0
    static int get_from(IntPtr L)
    {
        object o = null;

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

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