Exemple #1
0
        public override List <TextMenu.Item> CreateMenu(TextMenu menu, bool inGame)
        {
            List <TextMenu.Item> colorMenus = new List <TextMenu.Item>();

            colorMenus.Add(new TextMenu.Button("Color 1: " + color1.ToString()).Pressed(() =>
            {
                Audio.Play(SFX.ui_main_savefile_rename_start);
                menu.SceneAs <Overworld>().Goto <OuiModOptionString>().Init <OuiModOptions>(color1.ToString(), v => { color1 = new HSVColor(v); }, 9);
            }));

            colorMenus.Add(new TextMenu.Button("Color 2: " + color2.ToString()).Pressed(() =>
            {
                Audio.Play(SFX.ui_main_savefile_rename_start);
                menu.SceneAs <Overworld>().Goto <OuiModOptionString>().Init <OuiModOptions>(color2.ToString(), v => { color2 = new HSVColor(v); }, 9);
            }));

            colorMenus.Add(new TextMenu.OnOff("Rgb Gradient", doRgbGradient).Change(v => doRgbGradient = v));

            return(colorMenus);
        }
        public override List <TextMenu.Item> CreateMenu(TextMenu menu, bool inGame)
        {
            List <TextMenu.Item> colorMenus = new List <TextMenu.Item>();

            colorMenus.Add(new TextMenu.Slider("Pattern Count: ", NumToString, 1, MAX_PATTERN_COUNT, patternCount).Change(UpdatePatternCount));
            for (int i = 0; i < MAX_PATTERN_COUNT; i++)
            {
                int counter = i;
                colorMenus.Add(new TextMenu.Button("Color " + (counter + 1) + ": " + colorList[counter].ToString()).Pressed(() =>
                {
                    Audio.Play(SFX.ui_main_savefile_rename_start);
                    menu.SceneAs <Overworld>().Goto <OuiModOptionString>().Init <OuiModOptions>(colorList[counter].ToString(), v => { colorList[counter] = new HSVColor(v); }, 9);
                }));
            }
            return(colorMenus);
        }
Exemple #3
0
 public GradientHair()
 {
     color1        = new HSVColor();
     color2        = new HSVColor();
     doRgbGradient = false;
 }
Exemple #4
0
 public GradientHair(GradientHair rvalue)
 {
     color1        = rvalue.color1.Clone();
     color2        = rvalue.color2.Clone();
     doRgbGradient = rvalue.doRgbGradient;
 }
 public GradientHair()
 {
     Color1 = new HSVColor();
     Color2 = new HSVColor();
 }
Exemple #6
0
        public List <TextMenu.Item> CreateMenu(TextMenu menu, bool inGame)
        {
            List <TextMenu.Item> colorMenus = new List <TextMenu.Item>();

            colorMenus.Add(new TextMenu.Button("Color 1: " + C.ToString()).Pressed(() =>
            {
                Audio.Play(SFX.ui_main_savefile_rename_start);
                menu.SceneAs <Overworld>().Goto <OuiModOptionString>().Init <OuiModOptions>(C.ToString(), v => { C = new HSVColor(v); }, 9);
            }));
            return(colorMenus);
        }
Exemple #7
0
 public SolidHair(HSVColor color)
 {
     C = color;
 }
Exemple #8
0
 public SolidHair()
 {
     C = new HSVColor();
 }
Exemple #9
0
        public override Color GetColor(Color colorOrig, float phase)
        {
            HSVColor returnV = new HSVColor(359 * phase, value / 10.0f, saturation / 10.0f);

            return(returnV.ToColor());
        }