예제 #1
0
        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);
        }
예제 #2
0
 public static string WaveTypesToStringR(ccl.ShaderNodes.WaveTexture.WaveTypes d) => d.ToString().Replace("_", " ");