Ejemplo n.º 1
0
    void LoadSavedInfo()
    {
        string assetpath = Pvr_LoadingEditor.assetPath + typeof(CLoadingAsset).ToString() + ".asset";

        if (File.Exists(assetpath))
        {
            CLoadingAsset asset = AssetDatabase.LoadAssetAtPath <CLoadingAsset>(assetpath);
            enumSplashType = (ESplashScreenType)asset.SplashScreenType;
            SplashImage.Clear();
            int size = asset.splashImage.Count;
            for (int i = 0; i < size; i++)
            {
                SplashImage.Add(asset.splashImage[i]);
            }
            texInside_bg = asset.Inside_background;

            //SplashText
            toggleUseSplashText = asset.UseSplashText;
            strLanText[0]       = asset.DefaultText;
            strLanText[1]       = asset.ChineseText;
            strLanText[2]       = asset.EnglishText;
            strLanText[3]       = asset.JapaneseText;
            strLanText[4]       = asset.KoreanText;

            //other
            labelFontSize     = asset.FontSize;
            colorSplashText   = asset.FontColor;
            labelTextHeight   = asset.TextHeight;
            toggleUseCarousel = asset.UseCarousel;
            enumAlignment     = (ESplashTextAlignment)asset.SplashTextAlignment;
        }
    }
Ejemplo n.º 2
0
    protected void OnGUI()
    {
        CreateSpace(2);
        EditorGUILayout.BeginHorizontal();
        EditorGUILayout.LabelField("SplashScreenType", GUILayout.Width(130));
        enumSplashType = (ESplashScreenType)EditorGUILayout.EnumPopup(enumSplashType, GUILayout.Width(200));
        EditorGUILayout.EndHorizontal();

        scrollpos = EditorGUILayout.BeginScrollView(scrollpos);
        EditorImage();
        EditorSplashText();
        EditorOtherTextAttribute();
        EditorButton();
        EditorGUILayout.EndScrollView();
    }