Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public GradientHair()
 {
     color1        = new HSVColor();
     color2        = new HSVColor();
     doRgbGradient = false;
 }
Ejemplo n.º 4
0
 public GradientHair(GradientHair rvalue)
 {
     color1        = rvalue.color1.Clone();
     color2        = rvalue.color2.Clone();
     doRgbGradient = rvalue.doRgbGradient;
 }
Ejemplo n.º 5
0
 public GradientHair()
 {
     Color1 = new HSVColor();
     Color2 = new HSVColor();
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 7
0
 public SolidHair(HSVColor color)
 {
     C = color;
 }
Ejemplo n.º 8
0
 public SolidHair()
 {
     C = new HSVColor();
 }
Ejemplo n.º 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());
        }