private void CreateCaracterisique()
        {
            Log.Warning("Ecran perso du jeu");
            UIControl      Panneau_caracteristique        = (UIControl)GetComponent <UIControl>("Panneau_caracteristique");
            UIImage        cartouche_caracterisique       = (UIImage)Panneau_caracteristique.GetComponent <UIImage>("caracterisique_image");
            double         marge_top_first                = 0.0955178451138557;
            double         hauteur_cartouche              = 0.1;
            double         largeur_cartouche              = 0.33;
            double         marge_left_first               = 0;
            List <UIImage> List_cartouche_caracteristique = new List <UIImage>();

            for (int i = 0; i <= 4; i++)
            {
                for (int j = 0; j <= 2; j++)
                {
                    Log.Warning("Creation cartouche {0}", i);
                    List_cartouche_caracteristique.Add((UIImage)cartouche_caracterisique.Clone());
                    Panneau_caracteristique.AddComponent(List_cartouche_caracteristique.Last());
                    List_cartouche_caracteristique.Last().PropertySet("Margin", new UIMeasureValueRectangle
                    {
                        Measure = UIMeasure.Parent,
                        Top     = marge_top_first * (i + 1) + hauteur_cartouche * (i),
                        Left    = marge_left_first * (j + 1) + largeur_cartouche * (j)
                    });
                }
            }
        }
        public static ResultData Show(UIControl parent, string text, string caption, EMessageBoxButtons buttons)
        {
            var window = CreateWindow(parent, text, caption);

            if (window == null)
            {
                return(null);
            }

            EDialogResult[] results = null;
            switch (buttons)
            {
            case EMessageBoxButtons.OK:
                results = new EDialogResult[] { EDialogResult.OK };
                break;

            case EMessageBoxButtons.OKCancel:
                results = new EDialogResult[] { EDialogResult.OK, EDialogResult.Cancel };
                break;

            case EMessageBoxButtons.AbortRetryIgnore:
                results = new EDialogResult[] { EDialogResult.Abort, EDialogResult.Retry, EDialogResult.Ignore };
                break;

            case EMessageBoxButtons.YesNoCancel:
                results = new EDialogResult[] { EDialogResult.Yes, EDialogResult.No, EDialogResult.Cancel };
                break;

            case EMessageBoxButtons.YesNo:
                results = new EDialogResult[] { EDialogResult.Yes, EDialogResult.No };
                break;

            case EMessageBoxButtons.RetryCancel:
                results = new EDialogResult[] { EDialogResult.Retry, EDialogResult.Cancel };
                break;
            }

            var resultData = new ResultData();

            ConfigureButtons(window, results, resultData);

            //add to parent and enable
            parent.AddComponent(window);

            return(resultData);
        }