static int MoveAbsolute(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); UIScrollView obj = (UIScrollView)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UIScrollView"); Vector3 arg0 = LuaScriptMgr.GetVector3(L, 2); obj.MoveAbsolute(arg0); return(0); }
private static int MoveAbsolute(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); UIScrollView uIScrollView = (UIScrollView)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UIScrollView"); Vector3 vector = LuaScriptMgr.GetVector3(L, 2); uIScrollView.MoveAbsolute(vector); return(0); }
static public int MoveAbsolute(IntPtr l) { try { UIScrollView self = (UIScrollView)checkSelf(l); UnityEngine.Vector3 a1; checkType(l, 2, out a1); self.MoveAbsolute(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static int MoveAbsolute(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UIScrollView obj = (UIScrollView)ToLua.CheckObject <UIScrollView>(L, 1); UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2); obj.MoveAbsolute(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
private static int MoveAbsolute(IntPtr L) { int result; try { ToLua.CheckArgsCount(L, 2); UIScrollView uIScrollView = (UIScrollView)ToLua.CheckObject(L, 1, typeof(UIScrollView)); Vector3 absolute = ToLua.ToVector3(L, 2); uIScrollView.MoveAbsolute(absolute); result = 0; } catch (Exception e) { result = LuaDLL.toluaL_exception(L, e, null); } return(result); }
public static int MoveAbsolute(IntPtr l) { int result; try { UIScrollView uIScrollView = (UIScrollView)LuaObject.checkSelf(l); Vector3 absolute; LuaObject.checkType(l, 2, out absolute); uIScrollView.MoveAbsolute(absolute); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
static int _m_MoveAbsolute(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UIScrollView gen_to_be_invoked = (UIScrollView)translator.FastGetCSObj(L, 1); { UnityEngine.Vector3 _absolute; translator.Get(L, 2, out _absolute); gen_to_be_invoked.MoveAbsolute(_absolute); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
// 최초 진입점. public void setData(UIScrollView scrollView, List <object> list, bool isResetPos, int startIndex = -1) { dataCount = 0; _firstResetDraw = isResetPos; if (gameObject.activeInHierarchy == false) { Debug.LogError("Active GameObject First!"); return; } if (listItem == null) { Debug.LogError("listItem is Null"); return; } itemList.Clear(); dataList = list; dataCount = dataList.Count; itemClear(); if (isResetPos) { panel.transform.localPosition = Vector3.zero; panel.clipOffset = Vector2.zero; if (springPanel != null) { springPanel.target = Vector3.zero; springPanel.enabled = false; } } if (direction == Direction.vertical) { panelPrevPosition = panelTf.localPosition.y; } else { panelPrevPosition = panelTf.localPosition.x; } int itemMax; if (direction == Direction.vertical) { itemMax = Mathf.CeilToInt(panel.finalClipRegion.w / cellHeight) + dummyNum; } else { itemMax = Mathf.CeilToInt(panel.finalClipRegion.z / cellWidth) + dummyNum; } totalItemNumber = Mathf.Min(itemMax, dataCount); createItemPanel(); if (isResetPos) { _index = 0; scrollView.ResetPosition(); } if (startIndex > -1) { if (direction == Direction.vertical) { scrollView.MoveAbsolute(new Vector3(0, cellHeight * startIndex, 0)); } else { scrollView.MoveAbsolute(new Vector3(-cellWidth * startIndex, 0, 0)); } } reposition(isResetPos); _listDrawStatus = ListDrawStatus.start; }