Exemplo n.º 1
0
        // -------------------------------------------------------------------
        // Constructor
        // -------------------------------------------------------------------

        public DialogSystemColors(SystemColor color)
        {
            InitializeComponent();

            Control = new DialogSystemColorControl(color);
            ViewModelBindingSource.DataSource = Control;
            panelColor.BackColor = color.GetWinformsColor();
            textBoxName.Select();

            InitializeDataBindings();
        }
Exemplo n.º 2
0
        // -------------------------------------------------------------------
        // Constructor
        // -------------------------------------------------------------------

        public SystemDatas(string gameName)
        {
            // Game name and langages
            GameName = new Dictionary <string, string>();
            Langs    = new List <string>(new string[] { "eng" });
            for (int i = 0; i < Langs.Count; i++)
            {
                GameName[Langs[i]] = gameName;
            }

            // Path RTP
            PathRTP = Path.Combine(WANOK.ExcecutablePathDir, "RTP");

            // Get defaults lists
            Colors = SystemColor.GetDefaultColors();

            // Switches
            for (int i = 1; i <= 500; i++)
            {
                Switches.Add(new SuperListItemNameWithoutLang(i));
            }
        }
Exemplo n.º 3
0
        // -------------------------------------------------------------------
        // GetMonogameColor
        // -------------------------------------------------------------------

        public static Microsoft.Xna.Framework.Color GetMonogameColor(SystemColor c)
        {
            return(new Microsoft.Xna.Framework.Color(c.Color[0], c.Color[1], c.Color[2]));
        }
Exemplo n.º 4
0
        // -------------------------------------------------------------------
        // GetColor
        // -------------------------------------------------------------------

        public static Color GetColor(int id)
        {
            return(SystemColor.GetMonogameColor(Game.System.GetColorById(id)));
        }
Exemplo n.º 5
0
        // -------------------------------------------------------------------
        // Constructors
        // -------------------------------------------------------------------

        public DialogSystemColorControl(SystemColor color)
        {
            Model = color;
        }