static int SetOpenOrder(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); cs.GuiObject obj = (cs.GuiObject)ToLua.CheckObject <cs.GuiObject>(L, 1); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.SetOpenOrder(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public void ResetOrderInLayer(EGuiLayer a_eGuiLayer, ref int a_nStartOrder) { for (int i = 0; i < m_listGuiInfos.Count; ++i) { GuiObject guiObject = m_listGuiInfos[i].guiObject; if ( guiObject.GuiLayer == a_eGuiLayer && (guiObject.State == EGuiState.FadeIn || guiObject.State == EGuiState.Opened || guiObject.State == EGuiState.FadeOut) ) { guiObject.SetOpenOrder(a_nStartOrder); a_nStartOrder++; } } }