mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-24 04:41:10 +00:00
117 lines
2.9 KiB
C#
117 lines
2.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;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Globalization;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
using System.IO;
|
|
using System.Reflection;
|
|
using CodeImp.DoomBuilder.Windows;
|
|
using CodeImp.DoomBuilder.IO;
|
|
using CodeImp.DoomBuilder.Map;
|
|
using CodeImp.DoomBuilder.Rendering;
|
|
using CodeImp.DoomBuilder.Geometry;
|
|
using CodeImp.DoomBuilder.Editing;
|
|
using CodeImp.DoomBuilder.Actions;
|
|
using CodeImp.DoomBuilder.Types;
|
|
using CodeImp.DoomBuilder.Config;
|
|
|
|
#endregion
|
|
|
|
namespace CodeImp.DoomBuilder.BuilderModes
|
|
{
|
|
public class ErrorResult
|
|
{
|
|
#region ================== Variables
|
|
|
|
protected string description;
|
|
|
|
#endregion
|
|
|
|
#region ================== Properties
|
|
|
|
public string Description { get { return description; } }
|
|
|
|
// Override these properties to create buttons
|
|
public virtual int Buttons { get { return 0; } }
|
|
public virtual string Button1Text { get { return ""; } }
|
|
public virtual string Button2Text { get { return ""; } }
|
|
public virtual string Button3Text { get { return ""; } }
|
|
|
|
#endregion
|
|
|
|
#region ================== Constructor / Destructor
|
|
|
|
// Constructor
|
|
public ErrorResult()
|
|
{
|
|
// Initialize
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region ================== Methods
|
|
|
|
// When the first button is clicked
|
|
// Return true when map geometry or things have been added/removed so that the checker can restart
|
|
public virtual bool Button1Click()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
// When the second button is clicked
|
|
// Return true when map geometry or things have been added/removed so that the checker can restart
|
|
public virtual bool Button2Click()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
// When the third button is clicked
|
|
// Return true when map geometry or things have been added/removed so that the checker can restart
|
|
public virtual bool Button3Click()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
// This must return the string that is displayed in the listbox
|
|
public override string ToString()
|
|
{
|
|
return "Unknown result";
|
|
}
|
|
|
|
// This is called for rendering
|
|
public virtual void PlotSelection(IRenderer2D renderer)
|
|
{
|
|
}
|
|
|
|
// This is called for rendering
|
|
public virtual void RenderThingsSelection(IRenderer2D renderer)
|
|
{
|
|
}
|
|
|
|
// This is called for rendering
|
|
public virtual void RenderOverlaySelection(IRenderer2D renderer)
|
|
{
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|