Esempio n. 1
0
        public SlideshowPanel(Scene scene, Vector3 position, Vector2 size, double visualPriority, Color color)
            : base(scene, position, size, visualPriority, color)
        {
            Slider = new NumericHorizontalSlider("", 0, 0, 0, 1, 200)
            {
                Scene = scene
            };

            Slider.Initialize();
            Slider.VisualPriority = visualPriority;

            Panels = new List<PanelWidget>();
        }
Esempio n. 2
0
        public OptionsPanel(Scene scene, Vector3 position, Vector2 size, double visualPriority, Color color)
            : base(scene, position, size, visualPriority, color)
        {
            SetTitle("Options");

            Music = new NumericHorizontalSlider("Music", 0, 10, 5, 1, 100);
            Sfx = new NumericHorizontalSlider("Sfx  ", 0, 10, 5, 1, 100);
            Fullscreen = new CheckBox("Fullscreen") { MinSpaceLabelX = 292 };
            ShowHelpBar = new CheckBox("Show help bar") { MinSpaceLabelX = 292 };

            AddWidget("Music", Music);
            AddWidget("Sfx", Sfx);
            AddWidget("Fullscreen", Fullscreen);
            AddWidget("ShowHelpBar", ShowHelpBar);

            Alpha = 0;
        }