private void ShowAlphaSourceGUI(ProceduralMaterial material, ProceduralTexture tex, ref Rect rect)
{
GUIStyle style = "ObjectPickerResultsGridLabel";
float num = 10f;
rect.y = rect.yMax + 2f;
if (m_Importer != null)
{
using (new EditorGUI.DisabledScope(EditorApplication.isPlaying))
{
if ((tex.GetProceduralOutputType() != ProceduralOutputType.Normal) && tex.hasAlpha)
{
rect.height = style.fixedHeight;
string[] displayedOptions = new string[] { "Source (A)", "Diffuse (A)", "Normal (A)", "Height (A)", "Emissive (A)", "Specular (A)", "Opacity (A)", "Smoothness (A)", "Amb. Occlusion (A)", "Detail Mask (A)", "Metallic (A)", "Roughness (A)" };
EditorGUILayout.Space();
EditorGUILayout.Space();
EditorGUI.BeginChangeCheck();
int num2 = EditorGUI.Popup(rect, (int) m_Importer.GetTextureAlphaSource(material, tex.name), displayedOptions);
if (EditorGUI.EndChangeCheck())
{
this.RecordForUndo(material, m_Importer, "Modify " + material.name + "'s Alpha Modifier");
m_Importer.SetTextureAlphaSource(material, tex.name, (ProceduralOutputType) num2);
}
rect.y = rect.yMax + 2f;
}
}
}
rect.width += num;
}