Beispiel #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;
        }
Beispiel #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);
        }
Beispiel #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);
		}