Пример #1
0
        public EditScreen(Vector2f WindowSize, Map Map, TileRenderer TileRenderer)
            : base(WindowSize, Map, TileRenderer)
        {
            _FileDropDown.Add(new SelectionOption <object>("select-option")
            {
                DisplayedString = "File"
            });

            var newOption = new SelectionOption <object>("select-option")
            {
                DisplayedString = "New "
            };

            newOption.OnClick += HandleNewClicked;
            _FileDropDown.Add(newOption);

            var openOption = new SelectionOption <object>("select-option")
            {
                DisplayedString = "Open"
            };

            openOption.OnClick += HandleOpenClicked;
            _FileDropDown.Add(openOption);

            var saveOption = new SelectionOption <object>("select-option")
            {
                DisplayedString = "Save"
            };

            saveOption.OnClick += HandleSaveClicked;
            _FileDropDown.Add(saveOption);

            _Items.Add(_FileDropDown);
        }