private void InitAllShow()
 {
     InitStyleDropdownOptions();
     if (_curBulletId == 0)
     {
         _styleId    = -1;
         _colorId    = -1;
         _blendIndex = -1;
         UpdateColorDropdownOptions();
         StartCoroutine(UpdateDropdownText("undefined", "undefined", "undefined"));
     }
     else
     {
         _styleId     = (_curBulletId % 100000) / 1000;
         _colorId     = (_curBulletId % 1000) / 10;
         _blendIndex  = _curBulletId % 10;
         _curLaserCfg = DatabaseManager.LaserDatabase.GetLaserStyleCfg(_showType, _styleId);
         // 更新子弹颜色的下拉框
         UpdateColorDropdownOptions();
         ColorCfg colorCfg  = DatabaseManager.LaserDatabase.GetColorCfgByColorId(_colorId);
         string   blendText = ((eBlendMode)_blendIndex).ToString();
         StartCoroutine(UpdateDropdownText(_curLaserCfg.name, colorCfg.colorName, blendText));
     }
     UpdateBulletIdTextAndPreview();
 }
Exemplo n.º 2
0
        private void InitColorItems(List <int> availableColors)
        {
            _itemList = new List <ColorItem>();

            for (int i = 0; i < availableColors.Count; i++)
            {
                ColorCfg      cfg    = DatabaseManager.BulletDatabase.GetColorCfgByColorId(availableColors[i]);
                GameObject    item   = ResourceManager.GetInstance().GetPrefab("Prefabs/Views/EditViews", "BulletColorItem");
                RectTransform itemTf = item.GetComponent <RectTransform>();
                itemTf.SetParent(_itemContainerTf, false);
                // 初始化StyleItem结构
                ColorItem colorItem = new ColorItem();
                colorItem.colorId     = availableColors[i];
                colorItem.itemGo      = item;
                colorItem.btn         = itemTf.Find("BtnBg").gameObject;
                colorItem.selectImgGo = itemTf.Find("SelectImg").gameObject;
                // 设置选中
                colorItem.selectImgGo.SetActive(cfg.colorId == _colorId);
                // 设置子弹图像
                Image colorImg = itemTf.Find("ColorImg").GetComponent <Image>();
                colorImg.sprite = ResourceManager.GetInstance().GetSprite(cfg.packName, cfg.resName);
                // 添加事件监听
                UIEventListener.Get(colorItem.btn).AddClick(() =>
                {
                    OnColorItemClickHandler(cfg.colorId);
                });
                _itemList.Add(colorItem);
            }
        }
        private void SelectColorCallback(int colorId)
        {
            _colorId = colorId;
            ColorCfg colorCfg = DatabaseManager.BulletDatabase.GetColorCfgByColorId(_colorId);

            _colorText.text = colorCfg.colorName;
            UpdateBulletId();
            UpdateBulletIdTextAndPreview();
        }
        private void OnColorDropdownValueChangedHandler(int value)
        {
            _colorId = _colorList[value];
            ColorCfg colorCfg = DatabaseManager.BulletDatabase.GetColorCfgByColorId(_colorId);

            _colorText.text = colorCfg.colorName;
            UpdateBulletId();
            UpdateBulletIdTextAndPreview();
        }
        private void UpdateColorDropdownOptions()
        {
            _colorDropdown.onValueChanged.RemoveAllListeners();
            BulletStyleCfg bulletCfg = DatabaseManager.BulletDatabase.GetBulletStyleCfgByStyleId(_styleIndex);

            _colorList = bulletCfg.availableColors;
            List <Dropdown.OptionData> options = new List <Dropdown.OptionData>();

            for (int i = 0; i < _colorList.Count; i++)
            {
                ColorCfg            colorCfg   = DatabaseManager.BulletDatabase.GetColorCfgByColorId(_colorList[i]);
                Dropdown.OptionData optionData = new Dropdown.OptionData(colorCfg.colorName);
                options.Add(optionData);
            }
            _colorDropdown.options = options;
            _colorDropdown.onValueChanged.AddListener(OnColorDropdownValueChangedHandler);
        }
        private void UpdateColorDropdownOptions()
        {
            if (_styleId == -1)
            {
                return;
            }
            _colorDropdown.onValueChanged.RemoveAllListeners();
            LaserStyleCfg cfg = DatabaseManager.LaserDatabase.GetLaserStyleCfg(_showType, _styleId);

            _colorList = cfg.availableColors;
            List <Dropdown.OptionData> options = new List <Dropdown.OptionData>();

            for (int i = 0; i < _colorList.Count; i++)
            {
                ColorCfg            colorCfg   = DatabaseManager.BulletDatabase.GetColorCfgByColorId(_colorList[i]);
                Dropdown.OptionData optionData = new Dropdown.OptionData(colorCfg.colorName);
                options.Add(optionData);
            }
            _colorDropdown.options = options;
            _colorDropdown.onValueChanged.AddListener(OnColorDropdownValueChangedHandler);
        }
Exemplo n.º 7
0
        public LaserDatabase()
        {
            #region Style
            _styleCfgList = new List <LaserStyleCfg>();
            // Laser
            #region 普通激光
            LaserStyleCfg cfg = new LaserStyleCfg
            {
                type            = BulletType.Laser,
                typePrefixNum   = 2,
                styleId         = 1,
                name            = "Style1",
                packName        = "STGLaserAtlas0",
                resName         = "Laser201010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 尖头激光
            cfg = new LaserStyleCfg
            {
                type            = BulletType.Laser,
                typePrefixNum   = 2,
                styleId         = 2,
                name            = "Style2",
                packName        = "STGLaserAtlas0",
                resName         = "Laser202010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 鳞弹头激光
            cfg = new LaserStyleCfg
            {
                type            = BulletType.Laser,
                typePrefixNum   = 2,
                styleId         = 3,
                name            = "Style3",
                packName        = "STGLaserAtlas0",
                resName         = "Laser203010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 米弹激光
            cfg = new LaserStyleCfg
            {
                type            = BulletType.Laser,
                typePrefixNum   = 2,
                styleId         = 4,
                name            = "Style4",
                packName        = "STGLaserAtlas0",
                resName         = "Laser204010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            // LinearLaser
            #region 尖头激光
            cfg = new LaserStyleCfg
            {
                type            = BulletType.LinearLaser,
                typePrefixNum   = 3,
                styleId         = 2,
                name            = "Style2",
                packName        = "STGLinearLaserAtlas0",
                resName         = "Laser302010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 鳞弹头激光
            cfg = new LaserStyleCfg
            {
                type            = BulletType.LinearLaser,
                typePrefixNum   = 3,
                styleId         = 3,
                name            = "Style3",
                packName        = "STGLinearLaserAtlas0",
                resName         = "Laser303010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 米弹激光
            cfg = new LaserStyleCfg
            {
                type            = BulletType.LinearLaser,
                typePrefixNum   = 3,
                styleId         = 4,
                name            = "Style4",
                packName        = "STGLinearLaserAtlas0",
                resName         = "Laser304010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 曲线激光贴图
            cfg = new LaserStyleCfg
            {
                type            = BulletType.LinearLaser,
                typePrefixNum   = 3,
                styleId         = 5,
                name            = "Style5",
                packName        = "STGLinearLaserAtlas1",
                resName         = "Laser305010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            // CurveLaser
            #region 曲线激光贴图
            cfg = new LaserStyleCfg
            {
                type            = BulletType.CurveLaser,
                typePrefixNum   = 4,
                styleId         = 1,
                name            = "Style1",
                packName        = "STGCurveLaserAtlas",
                resName         = "Laser401010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 闪电激光
            cfg = new LaserStyleCfg
            {
                type            = BulletType.CurveLaser,
                typePrefixNum   = 4,
                styleId         = 10,
                name            = "Style10",
                packName        = "STGCurveLaserAtlas1",
                resName         = "Laser410000",
                showScale       = 1,
                availableColors = new List <int> {
                    0
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #endregion

            #region color
            _colorCfgList = new List <ColorCfg>();
            #region DeepGray
            ColorCfg colorCfg = new ColorCfg
            {
                colorId   = 0,
                colorName = "DeepGray",
                packName  = "ColorAtlas",
                resName   = "COLOR_DEEP_GRAY",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region DeepRed
            colorCfg = new ColorCfg
            {
                colorId   = 1,
                colorName = "DeepRed",
                packName  = "ColorAtlas",
                resName   = "COLOR_DEEP_RED",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region Red
            colorCfg = new ColorCfg
            {
                colorId   = 2,
                colorName = "Red",
                packName  = "ColorAtlas",
                resName   = "COLOR_RED",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region DeepPurple
            colorCfg = new ColorCfg
            {
                colorId   = 3,
                colorName = "DeepPurple",
                packName  = "ColorAtlas",
                resName   = "COLOR_DEEP_PURPLE",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region Purple
            colorCfg = new ColorCfg
            {
                colorId   = 4,
                colorName = "Purple",
                packName  = "ColorAtlas",
                resName   = "COLOR_PURPLE",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region DeepBlue
            colorCfg = new ColorCfg
            {
                colorId   = 5,
                colorName = "DeepBlue",
                packName  = "ColorAtlas",
                resName   = "COLOR_DEEP_BLUE",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region Blue
            colorCfg = new ColorCfg
            {
                colorId   = 6,
                colorName = "Blue",
                packName  = "ColorAtlas",
                resName   = "COLOR_BLUE",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region RoyalBlue
            colorCfg = new ColorCfg
            {
                colorId   = 7,
                colorName = "RoyalBlue",
                packName  = "ColorAtlas",
                resName   = "COLOR_ROYAL_BLUE",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region Cyan
            colorCfg = new ColorCfg
            {
                colorId   = 8,
                colorName = "Cyan",
                packName  = "ColorAtlas",
                resName   = "COLOR_DEEP_CYAN",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region DeepGreen
            colorCfg = new ColorCfg
            {
                colorId   = 9,
                colorName = "DeepGreen",
                packName  = "ColorAtlas",
                resName   = "COLOR_DEEP_GREEN",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region Green
            colorCfg = new ColorCfg
            {
                colorId   = 10,
                colorName = "Green",
                packName  = "ColorAtlas",
                resName   = "COLOR_GREEN",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region Chartreuse
            colorCfg = new ColorCfg
            {
                colorId   = 11,
                colorName = "Chartreuse",
                packName  = "ColorAtlas",
                resName   = "COLOR_CHARTREUSE",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region Yellow
            colorCfg = new ColorCfg
            {
                colorId   = 12,
                colorName = "Yellow",
                packName  = "ColorAtlas",
                resName   = "COLOR_YELLOW",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region GoldenYellow
            colorCfg = new ColorCfg
            {
                colorId   = 13,
                colorName = "GoldenYellow",
                packName  = "ColorAtlas",
                resName   = "COLOR_GOLDEN_YELLOW",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region Orange
            colorCfg = new ColorCfg
            {
                colorId   = 14,
                colorName = "Orange",
                packName  = "ColorAtlas",
                resName   = "COLOR_ORANGE",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region Gray
            colorCfg = new ColorCfg
            {
                colorId   = 15,
                colorName = "Gray",
                packName  = "ColorAtlas",
                resName   = "COLOR_GRAY",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #endregion
        }
Exemplo n.º 8
0
        public BulletDatabase()
        {
            #region bulletStyle
            _styleCfgList = new List <BulletStyleCfg>();
            #region 点弹
            BulletStyleCfg cfg = new BulletStyleCfg
            {
                styleId         = 0,
                name            = "点弹",
                packName        = "STGBulletsAtlas",
                resName         = "Bullet100010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 葡萄弹
            cfg = new BulletStyleCfg
            {
                styleId         = 1,
                name            = "葡萄弹",
                packName        = "STGBulletsAtlas",
                resName         = "Bullet101010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 小玉
            cfg = new BulletStyleCfg
            {
                styleId         = 2,
                name            = "小玉",
                packName        = "STGBulletsAtlas",
                resName         = "Bullet102010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 环玉
            cfg = new BulletStyleCfg
            {
                styleId         = 3,
                name            = "环玉",
                packName        = "STGBulletsAtlas",
                resName         = "Bullet103010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 米弹
            cfg = new BulletStyleCfg
            {
                styleId         = 4,
                name            = "米弹",
                packName        = "STGBulletsAtlas",
                resName         = "Bullet104010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 链弹
            cfg = new BulletStyleCfg
            {
                styleId         = 5,
                name            = "链弹",
                packName        = "STGBulletsAtlas",
                resName         = "Bullet105010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 针弹
            cfg = new BulletStyleCfg
            {
                styleId         = 6,
                name            = "针弹",
                packName        = "STGBulletsAtlas",
                resName         = "Bullet106010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 札弹
            cfg = new BulletStyleCfg
            {
                styleId         = 7,
                name            = "札弹",
                packName        = "STGBulletsAtlas",
                resName         = "Bullet107010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 鳞弹
            cfg = new BulletStyleCfg
            {
                styleId         = 8,
                name            = "鳞弹",
                packName        = "STGBulletsAtlas",
                resName         = "Bullet108010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 铳弹
            cfg = new BulletStyleCfg
            {
                styleId         = 9,
                name            = "铳弹",
                packName        = "STGBulletsAtlas",
                resName         = "Bullet109010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 杆菌弹
            cfg = new BulletStyleCfg
            {
                styleId         = 10,
                name            = "杆菌弹",
                packName        = "STGBulletsAtlas",
                resName         = "Bullet110010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 星弹(小)
            cfg = new BulletStyleCfg
            {
                styleId         = 11,
                name            = "星弹(小)",
                packName        = "STGBulletsAtlas",
                resName         = "Bullet111010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 钱币
            cfg = new BulletStyleCfg
            {
                styleId         = 12,
                name            = "钱币",
                packName        = "STGBulletsAtlas",
                resName         = "Bullet112120",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 12, 14
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 中玉
            cfg = new BulletStyleCfg
            {
                styleId         = 13,
                name            = "中玉",
                packName        = "STGBulletsAtlas",
                resName         = "Bullet113010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 椭弹
            cfg = new BulletStyleCfg
            {
                styleId         = 14,
                name            = "椭弹",
                packName        = "STGBulletsAtlas",
                resName         = "Bullet114010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 3, 5, 7, 9, 13, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 刀弹
            cfg = new BulletStyleCfg
            {
                styleId         = 15,
                name            = "刀弹",
                packName        = "STGBulletsAtlas",
                resName         = "Bullet115010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 3, 5, 7, 9, 13, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 蝶弹
            cfg = new BulletStyleCfg
            {
                styleId         = 16,
                name            = "蝶弹",
                packName        = "STGBulletsAtlas",
                resName         = "Bullet116010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 3, 5, 7, 9, 13, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 星弹(大)
            cfg = new BulletStyleCfg
            {
                styleId         = 17,
                name            = "星弹(大)",
                packName        = "STGBulletsAtlas",
                resName         = "Bullet117010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 3, 5, 7, 9, 13, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 大玉
            cfg = new BulletStyleCfg
            {
                styleId         = 18,
                name            = "大玉",
                packName        = "STGBulletsAtlas",
                resName         = "Bullet118010",
                showScale       = 1,
                availableColors = new List <int> {
                    1, 5, 9, 13
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 蔷薇
            cfg = new BulletStyleCfg
            {
                styleId         = 19,
                name            = "蔷薇",
                packName        = "STGBulletsAtlas",
                resName         = "Bullet119010",
                showScale       = 1,
                availableColors = new List <int> {
                    1, 5, 9, 13
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 心弹
            cfg = new BulletStyleCfg
            {
                styleId         = 20,
                name            = "心弹",
                packName        = "STGBulletsAtlas",
                resName         = "Bullet120010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 滴弹
            cfg = new BulletStyleCfg
            {
                styleId         = 21,
                name            = "滴弹",
                packName        = "STGBulletsAtlas",
                resName         = "Bullet121010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 3, 5, 7, 9, 13, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 大光玉
            cfg = new BulletStyleCfg
            {
                styleId         = 22,
                name            = "大光玉",
                packName        = "STGBulletsAtlas",
                resName         = "Bullet122010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 3, 5, 7, 9, 13, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 箭弹
            cfg = new BulletStyleCfg
            {
                styleId         = 23,
                name            = "箭弹",
                packName        = "STGBulletsAtlas",
                resName         = "Bullet123010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 3, 5, 7, 9, 13, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 小光玉
            cfg = new BulletStyleCfg
            {
                styleId         = 24,
                name            = "小光玉",
                packName        = "STGBulletsAtlas",
                resName         = "Bullet124010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 3, 5, 7, 9, 13, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 休止符
            cfg = new BulletStyleCfg
            {
                styleId         = 25,
                name            = "休止符",
                packName        = "STGBulletsAtlas",
                resName         = "Bullet125010",
                showScale       = 1,
                availableColors = new List <int> {
                    0, 1, 3, 5, 7, 9, 13, 15
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 炎弹
            cfg = new BulletStyleCfg
            {
                styleId         = 26,
                name            = "炎弹",
                packName        = "STGBulletsAtlas",
                resName         = "Bullet126010",
                showScale       = 1,
                availableColors = new List <int> {
                    1, 3, 5, 13
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #region 音符
            cfg = new BulletStyleCfg
            {
                styleId         = 27,
                name            = "音符",
                packName        = "STGBulletsAtlas",
                resName         = "Bullet127010",
                showScale       = 1,
                availableColors = new List <int> {
                    1, 5, 9, 13
                },
            };
            _styleCfgList.Add(cfg);
            #endregion
            #endregion

            #region color
            _colorCfgList = new List <ColorCfg>();
            #region DeepGray
            ColorCfg colorCfg = new ColorCfg
            {
                colorId   = 0,
                colorName = "DeepGray",
                packName  = "ColorAtlas",
                resName   = "COLOR_DEEP_GRAY",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region DeepRed
            colorCfg = new ColorCfg
            {
                colorId   = 1,
                colorName = "DeepRed",
                packName  = "ColorAtlas",
                resName   = "COLOR_DEEP_RED",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region Red
            colorCfg = new ColorCfg
            {
                colorId   = 2,
                colorName = "Red",
                packName  = "ColorAtlas",
                resName   = "COLOR_RED",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region DeepPurple
            colorCfg = new ColorCfg
            {
                colorId   = 3,
                colorName = "DeepPurple",
                packName  = "ColorAtlas",
                resName   = "COLOR_DEEP_PURPLE",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region Purple
            colorCfg = new ColorCfg
            {
                colorId   = 4,
                colorName = "Purple",
                packName  = "ColorAtlas",
                resName   = "COLOR_PURPLE",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region DeepBlue
            colorCfg = new ColorCfg
            {
                colorId   = 5,
                colorName = "DeepBlue",
                packName  = "ColorAtlas",
                resName   = "COLOR_DEEP_BLUE",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region Blue
            colorCfg = new ColorCfg
            {
                colorId   = 6,
                colorName = "Blue",
                packName  = "ColorAtlas",
                resName   = "COLOR_BLUE",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region RoyalBlue
            colorCfg = new ColorCfg
            {
                colorId   = 7,
                colorName = "RoyalBlue",
                packName  = "ColorAtlas",
                resName   = "COLOR_ROYAL_BLUE",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region Cyan
            colorCfg = new ColorCfg
            {
                colorId   = 8,
                colorName = "Cyan",
                packName  = "ColorAtlas",
                resName   = "COLOR_CYAN",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region DeepGreen
            colorCfg = new ColorCfg
            {
                colorId   = 9,
                colorName = "DeepGreen",
                packName  = "ColorAtlas",
                resName   = "COLOR_DEEP_GREEN",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region Green
            colorCfg = new ColorCfg
            {
                colorId   = 10,
                colorName = "Green",
                packName  = "ColorAtlas",
                resName   = "COLOR_GREEN",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region Chartreuse
            colorCfg = new ColorCfg
            {
                colorId   = 11,
                colorName = "Chartreuse",
                packName  = "ColorAtlas",
                resName   = "COLOR_CHARTREUSE",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region Yellow
            colorCfg = new ColorCfg
            {
                colorId   = 12,
                colorName = "Yellow",
                packName  = "ColorAtlas",
                resName   = "COLOR_YELLOW",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region GoldenYellow
            colorCfg = new ColorCfg
            {
                colorId   = 13,
                colorName = "GoldenYellow",
                packName  = "ColorAtlas",
                resName   = "COLOR_GOLDEN_YELLOW",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region Orange
            colorCfg = new ColorCfg
            {
                colorId   = 14,
                colorName = "Orange",
                packName  = "ColorAtlas",
                resName   = "COLOR_ORANGE",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #region Gray
            colorCfg = new ColorCfg
            {
                colorId   = 15,
                colorName = "Gray",
                packName  = "ColorAtlas",
                resName   = "COLOR_GRAY",
            };
            _colorCfgList.Add(colorCfg);
            #endregion
            #endregion
        }