mirror of
https://github.com/kwsch/NHSE.git
synced 2026-09-28 21:06:30 -05:00
Add road tile detail copy
Copies only the road portion of the terrain tile, not the ground detail. Closes #203
This commit is contained in:
@@ -817,5 +817,18 @@ private void B_SetAllTerrain_Click(object sender, EventArgs e)
|
||||
ReloadBuildingsTerrain();
|
||||
System.Media.SystemSounds.Asterisk.Play();
|
||||
}
|
||||
|
||||
private void B_SetAllRoadTiles_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (DialogResult.Yes != WinFormsUtil.Prompt(MessageBoxButtons.YesNo, MessageStrings.MsgTerrainSetAll))
|
||||
return;
|
||||
|
||||
var pgt = (TerrainTile)PG_TerrainTile.SelectedObject;
|
||||
bool interiorOnly = DialogResult.Yes == WinFormsUtil.Prompt(MessageBoxButtons.YesNo, MessageStrings.MsgTerrainSetAllSkipExterior);
|
||||
Map.Terrain.SetAll(pgt, interiorOnly);
|
||||
|
||||
ReloadBuildingsTerrain();
|
||||
System.Media.SystemSounds.Asterisk.Play();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user