Ejemplo n.º 1
0
        public EditorViewportControllerWidget(World world, WorldRenderer worldRenderer)
        {
            this.worldRenderer  = worldRenderer;
            tooltipContainer    = Exts.Lazy(() => Ui.Root.Get <TooltipContainerWidget>(TooltipContainer));
            CurrentBrush        = DefaultBrush = new EditorDefaultBrush(this, worldRenderer);
            editorActionManager = world.WorldActor.Trait <EditorActionManager>();

            editorActionManager.OnChange += EditorActionManagerOnChange;
        }
Ejemplo n.º 2
0
        public EditorViewportControllerWidget(World world, WorldRenderer worldRenderer)
        {
            this.worldRenderer  = worldRenderer;
            tooltipContainer    = Exts.Lazy(() => Ui.Root.Get <TooltipContainerWidget>(TooltipContainer));
            CurrentBrush        = DefaultBrush = new EditorDefaultBrush(this, worldRenderer);
            editorActionManager = world.WorldActor.Trait <EditorActionManager>();

            editorActionManager.OnChange += EditorActionManagerOnChange;

            // Allow zooming out to full map size
            worldRenderer.Viewport.UnlockMinimumZoom(0.25f);
        }
Ejemplo n.º 3
0
 public EditorViewportControllerWidget(World world, WorldRenderer worldRenderer)
 {
     this.worldRenderer = worldRenderer;
     tooltipContainer   = Exts.Lazy(() => Ui.Root.Get <TooltipContainerWidget>(TooltipContainer));
     CurrentBrush       = defaultBrush = new EditorDefaultBrush(this, worldRenderer);
 }
		public EditorViewportControllerWidget(World world, WorldRenderer worldRenderer)
		{
			this.worldRenderer = worldRenderer;
			tooltipContainer = Exts.Lazy(() => Ui.Root.Get<TooltipContainerWidget>(TooltipContainer));
			CurrentBrush = defaultBrush = new EditorDefaultBrush(this, worldRenderer);
		}