Example #1
0
 public static ColorSelector Show(Vector2 pos)
 {
     var a = new ColorSelector(pos);
     a.Initialize();
     a.isVisible = true;
     GUIEngine.AddHUDScene(a);
     a.wasJustOpened = true;
     return a;
 }
Example #2
0
        public static ColorSelector Show(Vector2 pos)
        {
            var a = new ColorSelector(pos);

            a.Initialize();
            a.isVisible = true;
            GUIEngine.AddHUDScene(a);
            a.wasJustOpened = true;
            return(a);
        }
Example #3
0
 void colsel_onColorSelected(object sender, ColorSelector.ColorSelectedArgs e)
 {
     color.background = e.color;
     color.disabledColor = color.background;
     color.mouseOverColor = color.background;
     color.pressedColor = color.background;
 }
Example #4
0
 void color_onClicked(object sender, InputEngine.MouseArgs e)
 {
     colsel = ColorSelector.Show(position + color.Position + new Vector2(color.Size.X, 0));
     colsel.onColorSelected += new ColorSelector.ColorSelectedEventHandler(colsel_onColorSelected);
 }
Example #5
0
 void color_onClicked(object sender, InputEngine.MouseArgs e)
 {
     colsel = ColorSelector.Show(position + color.Position + new Vector2(color.Size.X, 0));
     colsel.onColorSelected += new ColorSelector.ColorSelectedEventHandler(colsel_onColorSelected);
 }