UltimateZoneBuilder/Source/Core/Controls/HintsPanel.cs
MaxED 88b12750c1 Linedef info panel: tag is no longer shown in Hexen map format.
Numeric textbox: in addition to '++NN' and '--NN', you can use '*NN' and '/NN' to multiply or divide the values.
Configurations, ZDoom_linedefs.cfg: some linedef action arguments were missing a proper type.
Rewritten parts of hints system. Hints are now loaded from "Hints.cfg" file.
2014-01-23 13:36:51 +00:00

28 lines
604 B
C#

using System;
using System.Windows.Forms;
namespace CodeImp.DoomBuilder.Controls
{
internal partial class HintsPanel : UserControl
{
public HintsPanel() {
InitializeComponent();
hints.Clear();
}
//hints should be in rtf markup!
internal void SetHints(string hintsText) {
hints.Clear();
hints.SelectedRtf = hintsText;
}
internal void ClearHints() {
hints.Clear();
}
// Fight TextBoxes habit of not releasing the focus by using a carefully placed label
private void hints_Enter(object sender, EventArgs e) {
label1.Focus();
}
}
}