Skip to content

Commit

Permalink
Fix new tag button in Edit Thing
Browse files Browse the repository at this point in the history
  • Loading branch information
thekovic committed Feb 22, 2023
1 parent c04a534 commit 83366a4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
22 changes: 0 additions & 22 deletions Source/Core/Windows/LinedefEditForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -557,28 +557,6 @@ private void browseaction_Click(object sender, EventArgs e)
action.Value = ActionBrowserForm.BrowseAction(this, action.Value);
}

// Custom fields on front sides
private void customfrontbutton_Click(object sender, EventArgs e)
{
// Make collection of front sides
List<MapElement> sides = new List<MapElement>(lines.Count);
foreach (Linedef l in lines) if (l.Front != null) sides.Add(l.Front);

// Edit these
CustomFieldsForm.ShowDialog(this, "Front side custom fields", "sidedef", sides, General.Map.Config.SidedefFields);
}

// Custom fields on back sides
private void custombackbutton_Click(object sender, EventArgs e)
{
// Make collection of back sides
List<MapElement> sides = new List<MapElement>(lines.Count);
foreach (Linedef l in lines) if (l.Back != null) sides.Add(l.Back);

// Edit these
CustomFieldsForm.ShowDialog(this, "Back side custom fields", "sidedef", sides, General.Map.Config.SidedefFields);
}

// Help!
private void LinedefEditForm_HelpRequested(object sender, HelpEventArgs hlpevent)
{
Expand Down
1 change: 1 addition & 0 deletions Source/Core/Windows/ThingEditForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 83366a4

Please sign in to comment.