protected void SetupScroll(ByteBuffer buffer) { if (rootContainer == container) { container = new Container(); rootContainer.AddChild(container); } scrollPane = new ScrollPane(this); scrollPane.Setup(buffer); }
static int Setup(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); FairyGUI.ScrollPane obj = (FairyGUI.ScrollPane)ToLua.CheckObject <FairyGUI.ScrollPane>(L, 1); FairyGUI.Utils.ByteBuffer arg0 = (FairyGUI.Utils.ByteBuffer)ToLua.CheckObject <FairyGUI.Utils.ByteBuffer>(L, 2); obj.Setup(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }