added controls to move texture offsets in Visual Mode by 8 pixels

This commit is contained in:
codeimp 2009-01-09 22:45:29 +00:00
parent 0faabbcdae
commit 299f29dfe0
2 changed files with 92 additions and 12 deletions

View file

@ -345,9 +345,9 @@ raisebrightness8
movetextureleft
{
title = "Move Texture Left";
title = "Move Texture Left by 1";
category = "visual";
description = "Moves the offset of the targeted or selected textures to the left.";
description = "Moves the offset of the targeted or selected textures to the left by 1 pixel.";
allowkeys = true;
allowmouse = true;
allowscroll = true;
@ -356,9 +356,9 @@ movetextureleft
movetextureright
{
title = "Move Texture Right";
title = "Move Texture Right by 1";
category = "visual";
description = "Moves the offset of the targeted or selected textures to the right.";
description = "Moves the offset of the targeted or selected textures to the right by 1 pixel.";
allowkeys = true;
allowmouse = true;
allowscroll = true;
@ -367,9 +367,9 @@ movetextureright
movetextureup
{
title = "Move Texture Up";
title = "Move Texture Up by 1";
category = "visual";
description = "Moves the offset of the targeted or selected textures up.";
description = "Moves the offset of the targeted or selected textures up by 1 pixel.";
allowkeys = true;
allowmouse = true;
allowscroll = true;
@ -378,15 +378,63 @@ movetextureup
movetexturedown
{
title = "Move Texture Down";
title = "Move Texture Down by 1";
category = "visual";
description = "Moves the offset of the targeted or selected textures down.";
description = "Moves the offset of the targeted or selected textures down by 1 pixel.";
allowkeys = true;
allowmouse = true;
allowscroll = true;
repeat = true;
}
movetextureleft8
{
title = "Move Texture Left by 8";
category = "visual";
description = "Moves the offset of the targeted or selected textures to the left by 8 pixels.";
allowkeys = true;
allowmouse = true;
allowscroll = true;
repeat = true;
default = 65573;
}
movetextureright8
{
title = "Move Texture Right by 8";
category = "visual";
description = "Moves the offset of the targeted or selected textures to the right by 8 pixels.";
allowkeys = true;
allowmouse = true;
allowscroll = true;
repeat = true;
default = 65575;
}
movetextureup8
{
title = "Move Texture Up by 8";
category = "visual";
description = "Moves the offset of the targeted or selected textures up by 8 pixels.";
allowkeys = true;
allowmouse = true;
allowscroll = true;
repeat = true;
default = 65574;
}
movetexturedown8
{
title = "Move Texture Down by 8";
category = "visual";
description = "Moves the offset of the targeted or selected textures down by 8 pixels.";
allowkeys = true;
allowmouse = true;
allowscroll = true;
repeat = true;
default = 65576;
}
textureselect
{
title = "Texture Select";

View file

@ -397,7 +397,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
}
[BeginAction("movetextureleft")]
public void MoveTextureLeft()
public void MoveTextureLeft1()
{
PickTargetUnlocked();
if(target.picked != null) (target.picked as IVisualEventReceiver).OnChangeTextureOffset(-1, 0);
@ -405,7 +405,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
}
[BeginAction("movetextureright")]
public void MoveTextureRight()
public void MoveTextureRight1()
{
PickTargetUnlocked();
if(target.picked != null) (target.picked as IVisualEventReceiver).OnChangeTextureOffset(1, 0);
@ -413,7 +413,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
}
[BeginAction("movetextureup")]
public void MoveTextureUp()
public void MoveTextureUp1()
{
PickTargetUnlocked();
if(target.picked != null) (target.picked as IVisualEventReceiver).OnChangeTextureOffset(0, -1);
@ -421,13 +421,45 @@ namespace CodeImp.DoomBuilder.BuilderModes
}
[BeginAction("movetexturedown")]
public void MoveTextureDown()
public void MoveTextureDown1()
{
PickTargetUnlocked();
if(target.picked != null) (target.picked as IVisualEventReceiver).OnChangeTextureOffset(0, 1);
ShowTargetInfo();
}
[BeginAction("movetextureleft8")]
public void MoveTextureLeft8()
{
PickTargetUnlocked();
if(target.picked != null) (target.picked as IVisualEventReceiver).OnChangeTextureOffset(-8, 0);
ShowTargetInfo();
}
[BeginAction("movetextureright8")]
public void MoveTextureRight8()
{
PickTargetUnlocked();
if(target.picked != null) (target.picked as IVisualEventReceiver).OnChangeTextureOffset(8, 0);
ShowTargetInfo();
}
[BeginAction("movetextureup8")]
public void MoveTextureUp8()
{
PickTargetUnlocked();
if(target.picked != null) (target.picked as IVisualEventReceiver).OnChangeTextureOffset(0, -8);
ShowTargetInfo();
}
[BeginAction("movetexturedown8")]
public void MoveTextureDown8()
{
PickTargetUnlocked();
if(target.picked != null) (target.picked as IVisualEventReceiver).OnChangeTextureOffset(0, 8);
ShowTargetInfo();
}
[BeginAction("textureselect")]
public void TextureSelect()
{