mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-12-17 23:51:10 +00:00
b77b8e61d9
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.
64 lines
1.9 KiB
C#
64 lines
1.9 KiB
C#
|
|
#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);
|
|
void OnChangeTextureOffset(int horizontal, int vertical, bool doSurfaceAngleCorrection);
|
|
void OnChangeTextureScale(float incrementX, float incrementY); //mxd
|
|
void OnResetTextureOffset();
|
|
void OnSelectTexture();
|
|
void OnCopyTexture();
|
|
void OnPasteTexture();
|
|
void OnCopyTextureOffsets();
|
|
void OnPasteTextureOffsets();
|
|
void OnCopyProperties();
|
|
void OnPasteProperties();
|
|
void OnTextureAlign(bool alignx, bool aligny);
|
|
void OnTextureFit(bool fitWidth, bool fitHeight); //mxd
|
|
void OnTextureFloodfill();
|
|
void OnToggleUpperUnpegged();
|
|
void OnToggleLowerUnpegged();
|
|
void OnProcess(float deltatime);
|
|
void OnInsert();
|
|
void OnDelete();
|
|
|
|
// Assist functions
|
|
void ApplyTexture(string texture);
|
|
void ApplyUpperUnpegged(bool set);
|
|
void ApplyLowerUnpegged(bool set);
|
|
|
|
// Other methods
|
|
string GetTextureName();
|
|
void SelectNeighbours(bool select, bool withSameTexture, bool withSameHeight); //mxd
|
|
bool IsSelected(); //mxd
|
|
}
|
|
}
|