2009-04-19 18:07:22 +00:00
|
|
|
|
|
|
|
#region ================== Copyright (c) 2007 Pascal vd Heiden
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2007 Pascal vd Heiden, www.codeimp.com
|
|
|
|
* This program is released under GNU General Public License
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region ================== Namespaces
|
|
|
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
namespace CodeImp.DoomBuilder.BuilderModes
|
|
|
|
{
|
|
|
|
internal interface IVisualEventReceiver
|
|
|
|
{
|
|
|
|
// The events that must be handled
|
|
|
|
void OnSelectBegin();
|
|
|
|
void OnSelectEnd();
|
|
|
|
void OnEditBegin();
|
|
|
|
void OnEditEnd();
|
|
|
|
void OnMouseMove(MouseEventArgs e);
|
|
|
|
void OnChangeTargetHeight(int amount);
|
|
|
|
void OnChangeTargetBrightness(bool up);
|
2013-04-26 12:32:51 +00:00
|
|
|
void OnChangeTextureOffset(int horizontal, int vertical, bool doSurfaceAngleCorrection);
|
Visual mode, UDMF: added "Scale Texture Up (X)", "Scale Texture Down (X)", "Scale Texture Up (Y)", "Scale Texture Down (Y)" actions. Default keys are Num6, Num4, Num8, Num5.
Visual mode, UDMF: renamed "Rotate Thing Clockwise" and "Rotate Thing Counterclockwise" actions to "Rotate Clockwise" and "Rotate Counterclockwise". These actions can now be used to change rotation of floor/ceiling textures.
Visual mode, UDMF: "Reset Texture Offsets" action now also resets sidedef's scale and floor/ceiling's scale and rotation.
Visual mode, UDMF: control line's OffsetX and OffsetY were not taken into account when calculating texture offsets of 3d floors' sides.
Visual mode, UDMF: fixed a ton of bugs in Auto align functions.
Visual mode, UDMF: when using "Move Texture Left/Right/Up/Down by 1" actions texture offsets were not updated properly when texture's scale was < 1.0.
Visual mode, UDMF: OffsetX and OffsetY were not taken into account in "Fit Texture Width/Height" actions.
Dockers Panel: added Pin/Unpin button, which acts the same as "Preferences -> Interface -> Side panels -> Auto hide" checkbox.
Texture size labels can now be disabled by unchecking "Preferences -> Interface -> Show texture and flat sizes in browsers" checkbox.
Texture size labels now are not shown for unknown textures.
Most of texture size labels had incorrect bg color.
ZDoom_linedefs.cfg: action specials 223 and 224 had incorrect Arg0.
2013-06-24 14:21:13 +00:00
|
|
|
void OnChangeTextureScale(float incrementX, float incrementY); //mxd
|
2009-04-19 18:07:22 +00:00
|
|
|
void OnResetTextureOffset();
|
2013-09-19 09:17:49 +00:00
|
|
|
void OnResetLocalTextureOffset(); //mxd. This should reset upper/middle/lower offsets (UDMF only)
|
2009-04-19 18:07:22 +00:00
|
|
|
void OnSelectTexture();
|
|
|
|
void OnCopyTexture();
|
|
|
|
void OnPasteTexture();
|
|
|
|
void OnCopyTextureOffsets();
|
|
|
|
void OnPasteTextureOffsets();
|
|
|
|
void OnCopyProperties();
|
|
|
|
void OnPasteProperties();
|
|
|
|
void OnTextureAlign(bool alignx, bool aligny);
|
2013-05-02 07:47:22 +00:00
|
|
|
void OnTextureFit(bool fitWidth, bool fitHeight); //mxd
|
2009-04-19 18:07:22 +00:00
|
|
|
void OnTextureFloodfill();
|
|
|
|
void OnToggleUpperUnpegged();
|
|
|
|
void OnToggleLowerUnpegged();
|
2012-07-12 22:34:12 +00:00
|
|
|
void OnProcess(float deltatime);
|
2009-04-19 18:07:22 +00:00
|
|
|
void OnInsert();
|
|
|
|
void OnDelete();
|
2009-05-03 19:22:32 +00:00
|
|
|
|
|
|
|
// Assist functions
|
|
|
|
void ApplyTexture(string texture);
|
|
|
|
void ApplyUpperUnpegged(bool set);
|
|
|
|
void ApplyLowerUnpegged(bool set);
|
2009-04-19 18:07:22 +00:00
|
|
|
|
|
|
|
// Other methods
|
|
|
|
string GetTextureName();
|
2013-04-01 11:06:01 +00:00
|
|
|
void SelectNeighbours(bool select, bool withSameTexture, bool withSameHeight); //mxd
|
|
|
|
bool IsSelected(); //mxd
|
2009-04-19 18:07:22 +00:00
|
|
|
}
|
|
|
|
}
|