Ejemplo n.º 1
0
    static int OnPan(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        UIProgressBar obj  = (UIProgressBar)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UIProgressBar");
        Vector2       arg0 = LuaScriptMgr.GetVector2(L, 2);

        obj.OnPan(arg0);
        return(0);
    }
Ejemplo n.º 2
0
 static public int OnPan(IntPtr l)
 {
     try {
         UIProgressBar       self = (UIProgressBar)checkSelf(l);
         UnityEngine.Vector2 a1;
         checkType(l, 2, out a1);
         self.OnPan(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 3
0
 static int OnPan(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UIProgressBar       obj  = (UIProgressBar)ToLua.CheckObject(L, 1, typeof(UIProgressBar));
         UnityEngine.Vector2 arg0 = ToLua.ToVector2(L, 2);
         obj.OnPan(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Ejemplo n.º 4
0
    /// <summary>
    /// Pan the scroll view.
    /// </summary>

    public void OnPan(Vector2 delta)
    {
        if (horizontalScrollBar != null)
        {
            horizontalScrollBar.OnPan(delta);
        }
        if (verticalScrollBar != null)
        {
            verticalScrollBar.OnPan(delta);
        }

        if (horizontalScrollBar == null && verticalScrollBar == null)
        {
            if (scale.x != 0f)
            {
                Scroll(delta.x);
            }
            else if (scale.y != 0f)
            {
                Scroll(delta.y);
            }
        }
    }
Ejemplo n.º 5
0
    /// <summary>
    /// Pan the scroll view.
    /// </summary>

    public void OnPan(Vector2 delta)
    {
        if (horizontalScrollBar != null)
        {
            horizontalScrollBar.OnPan(delta);
        }
        if (verticalScrollBar != null)
        {
            verticalScrollBar.OnPan(delta);
        }

        if (horizontalScrollBar == null && verticalScrollBar == null)
        {
            if (canMoveHorizontally)
            {
                Scroll(delta.x);
            }
            else if (canMoveVertically)
            {
                Scroll(delta.y);
            }
        }
    }