Exemple #1
0
        public static void LoadCategories()
        {
            loadedCategories.Clear();

            EditorExtensions.LoadAssetsToList(loadedCategories, "t:productioncategory");

            loadedDatasCount = loadedCategories.Count;
        }
        static void LoadUnitDatas()
        {
            loadedUnitDatas.Clear();

            EditorExtensions.LoadAssetsToList(loadedUnitDatas, "t:unitdata");

            loadedDatasCount = loadedUnitDatas.Count;
        }
Exemple #3
0
        static void Load()
        {
            var storages = new List <Storage>();

            EditorExtensions.LoadAssetsToList(storages, "t:storage");

            if (storages.Count > 0)
            {
                loadedStorage = storages[0];
            }

            storageDatasFoundCount = storages.Count;
        }
        public static void Reload()
        {
            var bgColor = EditorGUIUtility.isProSkin ? new Color(0.35f, 0.35f, 0.35f, 1f) : new Color(0.85f, 0.85f, 0.85f, 1f);

            paddedBoxStyle                   = new GUIStyle();
            paddedBoxStyle.padding           = new RectOffset(5, 5, 5, 5);
            paddedBoxStyle.normal.background = EditorExtensions.MakeTex(2, 2, bgColor);

            headerTextStyle          = new GUIStyle();
            headerTextStyle.fontSize = 16;
            headerTextStyle.padding  = new RectOffset(3, 3, 5, 5);

            smallHeaderTextStyle           = new GUIStyle();
            smallHeaderTextStyle.fontSize  = 14;
            smallHeaderTextStyle.padding   = new RectOffset(3, 3, 5, 5);
            smallHeaderTextStyle.fontStyle = FontStyle.Bold;
        }