Esempio n. 1
0
        private GridPanel CreateSubPanel(int begin, int end)
        {
            GridPanel backgroundPanel = new GridPanel(Simulator.Scene, Vector3.Zero, new Vector2(500, 500), Preferences.PrioriteGUIPanneauGeneral, Color.White)
            {
                NbColumns = 4,
                OnlyShowWidgets = true
            };

            for (int i = begin; i <= end; i++)
                backgroundPanel.AddWidget("background" + i, new ImageWidget("background" + i, 0.1f));

            return backgroundPanel;
        }