public static void LOAD_LAYOUT_ASYNC(LAYOUT_TYPE type, int renderOrder, LayoutAsyncDone callback) { CommandLayoutManagerLoadLayout cmd = mCommandSystem.newCmd <CommandLayoutManagerLoadLayout>(true, false); cmd.mLayoutType = type; cmd.mRenderOrder = renderOrder; cmd.mAsync = true; cmd.mCallback = callback; mCommandSystem.pushCommand(cmd, mLayoutManager); }
// 布局 //------------------------------------------------------------------------------------------------------------------------------------ public static void LOAD_LAYOUT(LAYOUT_TYPE type, int renderOrder, bool visible) { CommandLayoutManagerLoadLayout cmd = mCommandSystem.newCmd <CommandLayoutManagerLoadLayout>(true, false); cmd.mLayoutType = type; cmd.mVisible = visible; cmd.mRenderOrder = renderOrder; cmd.mAsync = false; mCommandSystem.pushCommand(cmd, mLayoutManager); }
public static void LOAD_UGUI_ASYNC(LAYOUT_TYPE type, int renderOrder, LayoutAsyncDone callback) { CommandLayoutManagerLoadLayout cmd = newCmd(out cmd, true, false); cmd.mLayoutType = type; cmd.mRenderOrder = renderOrder; cmd.mAsync = true; cmd.mCallback = callback; cmd.mIsNGUI = false; pushCommand(cmd, mLayoutManager); }
// 布局 //------------------------------------------------------------------------------------------------------------------------------------ public static void LOAD_LAYOUT(LAYOUT_TYPE type, int renderOrder, bool visible, bool immediately, string param) { CommandLayoutManagerLoadLayout cmd = mCommandSystem.newCmd <CommandLayoutManagerLoadLayout>(true, false); cmd.mLayoutType = type; cmd.mVisible = visible; cmd.mRenderOrder = renderOrder; cmd.mAsync = false; cmd.mImmediatelyShow = immediately; cmd.mParam = param; mCommandSystem.pushCommand(cmd, mLayoutManager); }
// 布局 //------------------------------------------------------------------------------------------------------------------------------------ public static void LOAD_NGUI(LAYOUT_TYPE type, int renderOrder, bool visible, bool immediately, string param) { CommandLayoutManagerLoadLayout cmd = newCmd(out cmd, true, false); cmd.mLayoutType = type; cmd.mVisible = visible; cmd.mRenderOrder = renderOrder; cmd.mAsync = false; cmd.mImmediatelyShow = immediately; cmd.mParam = param; cmd.mIsNGUI = true; pushCommand(cmd, mLayoutManager); }