Inheritance: GraphicsDeviceControl, IScrollableControl, IPointerTarget
Example #1
0
        public ImportTilePool(Project project)
        {
            InitializeComponent();

            _project = project;

            _localTexturePool = new TexturePool();
            _localManager = new TilePoolManager(_localTexturePool);

            _buttonOK.Enabled = false;

            _layerControl = new LayerGraphicsControl();
            _layerControl.Dock = DockStyle.Fill;
            _layerControl.WidthSynced = true;
            _layerControl.CanvasAlignment = CanvasAlignment.UpperLeft;
            _layerControl.TextureCache.SourcePool = _localManager.TexturePool;

            _rootLayer = new GroupLayerPresenter();
            _layerControl.RootLayer = new GroupLayer(_rootLayer);

            _previewPanel.Controls.Add(_layerControl);

            _message.Text = "";

            _buttonTransColor.Click += ButtonTransColorClickHandler;
            _checkboxTransColor.Click += CheckboxTransColorClickHandler;
            _layerControl.MouseDown += PreviewControlClickHandler;
        }
Example #2
0
        public LevelPanel()
        {
            InitializeComponent();

            _layerControl = new LayerGraphicsControl();
            _layerControl.Dock = DockStyle.Fill;

            _viewportControl.Control = _layerControl;

            _pointerController = new ControlPointerEventController(_layerControl, _layerControl);
        }
Example #3
0
        public LevelPanel()
        {
            InitializeComponent();

            _layerControl = new LayerGraphicsControl();
            _layerControl.Dock = DockStyle.Fill;

            _layerControl.Scroll += (s, e) => InvalidateGeometry();
            _layerControl.VirtualSizeChanged += (s, e) => InvalidateGeometry();

            _viewportControl.Control = _layerControl;

            _pointerController = new ControlPointerEventController(_layerControl, _layerControl);
        }
Example #4
0
 public LayerGraphicsControlGeometry(LayerGraphicsControl control)
 {
     _control = control;
 }
 public LayerGraphicsControlGeometry(LayerGraphicsControl control)
 {
     _control = control;
 }