Esempio n. 1
0
 private static void Creater()
 {
     if (windows != null)
     {
         windows.Close();
     }
     windows = CreateInstance <OneKeyBuildPackage>();
     windows.titleContent = new GUIContent("一键打包");
     windows.Show();
     ChannelData.Refresh();
 }
Esempio n. 2
0
        private void ComponentOnGUIBundleIdentify()
        {
            EditorGUILayout.BeginVertical(EditorStyles.helpBox);
            {
                EditorGUILayout.Space();
                EditorGUILayout.BeginHorizontal();
                {
                    EditorGUILayout.LabelField("应用标识: ", GUILayout.Width(80));
                    usebundleidCount = EditorGUILayout.Popup(usebundleidCount, bundleIndetfi, GUILayout.Width(300));
                    if (usebundleidCount >= 0)
                    {
                        bundleidf = bundleIndetfi[usebundleidCount];
                        ChannelData.SetByBundleid(bundleidf);
                    }
                    else
                    {
                        bundleidf = string.Empty;
                    }
                }
                EditorGUILayout.EndHorizontal();
                EditorGUILayout.BeginHorizontal();
                {
                    EditorGUILayout.LabelField("应用名称: ", GUILayout.Width(80));
                    EditorGUILayout.LabelField(ChannelData.current.appName, GUILayout.Width(300));
                }
                EditorGUILayout.EndHorizontal();

                EditorGUILayout.BeginHorizontal();
                {
                    EditorGUILayout.LabelField("使用渠道: ", GUILayout.Width(80));
                    useChannle = EditorGUILayout.Popup(useChannle, channels, GUILayout.Width(300));
                }
                EditorGUILayout.EndHorizontal();

                EditorGUILayout.BeginHorizontal();
                {
                    EditorGUILayout.LabelField("版本号: ", GUILayout.Width(40));
                    int _ma = EditorGUILayout.IntField(version.Major, GUILayout.Width(36));
                    EditorGUILayout.LabelField(".", GUILayout.Width(7));
                    int _mi = EditorGUILayout.IntField(version.Minor, GUILayout.Width(36));
                    EditorGUILayout.LabelField(".", GUILayout.Width(7));
                    string _bu = DateTime.Now.ToString("MMdd");
                    EditorGUILayout.LabelField(_bu, GUILayout.Width(36));
                    EditorGUILayout.LabelField(".", GUILayout.Width(7));
                    EditorGUILayout.LabelField(buidle.ToString(), GUILayout.Width(36));

                    version = new Version(_ma + "." + _mi + "." + _bu + "." + buidle);
                }
                EditorGUILayout.EndHorizontal();
                EditorGUILayout.Space();
            }
            EditorGUILayout.EndVertical();
        }
Esempio n. 3
0
        private void ComponentOnBuildBundleIdentify()
        {
            CopyChannelFiles();
            ChannelData.SetByBundleid(bundleidf);
            if (useChannle > 0)
            {
                ChannelData.SetChannelByIndex(useChannle);
            }
            AssetDatabase.Refresh();

            if (!isDebug)
            {
                buidle++;
                PersistenceData.SavePrefsData("LOCAL_VERSION_BUIDLE", buidle);
            }
        }
    static int _CreateGameFramework_ChannelData(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                GameFramework.ChannelData obj = new GameFramework.ChannelData();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: GameFramework.ChannelData.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }