Beispiel #1
0
        public override List <LogicDefine> GetLogicDefines()
        {
            List <LogicDefine> defineList = new List <LogicDefine>(3);

            // Only true if a color has been selected
            if (Active)
            {
                defineList.Add(new LogicDefine(Name));

                for (int i = 0; i < InitialColors.Count; i++)
                {
                    // Adjust colors so they work with the selected color, then define
                    ColorUtil.GBAColor newColor = new ColorUtil.GBAColor(ColorUtil.AdjustHue(InitialColors[i], BaseColor, DefinedColor));
                    defineList.Add(new LogicDefine(Name + "_" + i, StringUtil.AsStringHex4(newColor.CombinedValue)));
                }
            }

            return(defineList);
        }