mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 22:01:45 +00:00
made an action for the 'fit to screen' feature
This commit is contained in:
parent
924a384aab
commit
7c0d59d4a2
2 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||||
|
|
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue