public void appendWaveTypesMenu(ccl.ShaderNodes.WaveTexture.WaveTypes it, ToolStripDropDown menu) { var u = this; Menu_AppendItem( menu, Utils.WaveTypesToStringR(it), ((_, __) => { u.Wave = it; ((ccl.ShaderNodes.WaveTexture)u.ShaderNode).WaveType = it; u.ExpireSolution(true); }), true, u.Wave == it); }
public static string WaveTypesToStringR(ccl.ShaderNodes.WaveTexture.WaveTypes d) => d.ToString().Replace("_", " ");