static int QPYX_SetLayers_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 1);
         GameModule QPYX_obj_YXQP = (GameModule)ToLua.CheckObject <GameModule>(L_YXQP, 1);
         QPYX_obj_YXQP.SetLayers();
         return(0);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
Beispiel #2
0
 static int SetLayers(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         GameModule obj = (GameModule)ToLua.CheckObject <GameModule>(L, 1);
         obj.SetLayers();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #3
0
    private void DrawInspector()
    {
        if (m_gameModule == null)
        {
            return;
        }
        GUILayout.BeginHorizontal();
        if (GUILayout.Button("Show"))
        {
            m_gameModule.SetLayers();
        }
        type = (SortOrderType)EditorGUILayout.EnumPopup(type, GUILayout.Width(60));
        if (GUILayout.Button("Add"))
        {
            if (m_gameModule.m_canvasList == null)
            {
                m_gameModule.m_canvasList = new List <CanvasData>();
            }
            CanvasData cd = new CanvasData();
            cd.type = type;
            m_gameModule.m_canvasList.Add(cd);
        }
        GUILayout.EndHorizontal();
        if (m_gameModule.m_canvasList == null || m_gameModule.m_canvasList.Count == 0)
        {
            return;
        }

        for (int i = 0; i < m_gameModule.m_canvasList.Count; i++)
        {
            GUILayout.BeginHorizontal();
            switch (m_gameModule.m_canvasList[i].type)
            {
            case SortOrderType.canvas:
                ShowCanvasInspect(i);
                break;

            case SortOrderType.renderer:
                ShowParticleInspect(i);
                break;
            }

            if (GUILayout.Button("-", GUILayout.Width(30)))
            {
                m_gameModule.m_canvasList.RemoveAt(i);
            }
            GUILayout.EndHorizontal();
        }
    }