public void SetBrush(IEditorBrush brush) { if (CurrentBrush != null) CurrentBrush.Dispose(); CurrentBrush = brush ?? defaultBrush; }
public void SetBrush(IEditorBrush brush) { if (CurrentBrush != null) { CurrentBrush.Dispose(); } CurrentBrush = brush ?? defaultBrush; }
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; }
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); }
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); }
public void SetBrush(IEditorBrush brush) { CurrentBrush?.Dispose(); CurrentBrush = brush ?? DefaultBrush; }
public void SetBrush(IEditorBrush brush) { CurrentBrush = brush ?? defaultBrush; }