made an action for the 'fit to screen' feature

This commit is contained in:
codeimp 2008-01-06 03:59:35 +00:00
parent 924a384aab
commit 7c0d59d4a2
2 changed files with 10 additions and 0 deletions

View file

@ -225,6 +225,7 @@ namespace CodeImp.DoomBuilder.Editing
} }
// This zooms and scrolls to fit the map in the window // This zooms and scrolls to fit the map in the window
[Action("centerinscreen", BaseAction = true)]
public void CenterInScreen() public void CenterInScreen()
{ {
float left = float.MaxValue; float left = float.MaxValue;

View file

@ -167,6 +167,15 @@ zoomout
allowscroll = true; allowscroll = true;
} }
centerinscreen
{
title = "2D: Fit To Screen";
description = "Zooms out the map and centers it to make it completely fit in the screen, giving a high overview of the map.";
allowkeys = true;
allowmouse = true;
allowscroll = true;
}
gridsetup gridsetup
{ {
title = "View: Grid Setup"; title = "View: Grid Setup";