public override void OnInspectorGUI()
{
MovieImporter target = base.target as MovieImporter;
if (target != null)
{
GUILayout.BeginVertical(new GUILayoutOption[0]);
this.m_linearTexture = EditorGUILayout.Toggle(linearTextureContent, this.m_linearTexture, new GUILayoutOption[0]);
int num = (int) (this.GetVideoBitrateForQuality((double) this.m_quality) + this.GetAudioBitrateForQuality((double) this.m_quality));
float num2 = (num / 8) * this.m_duration;
float num3 = 1048576f;
this.m_quality = EditorGUILayout.Slider("Quality", this.m_quality, 0f, 1f, new GUILayoutOption[0]);
GUILayout.Label(string.Format("Approx. {0:0.00} " + ((num2 >= num3) ? "MB" : "kB") + ", {1} kbps", num2 / ((num2 >= num3) ? num3 : 1024f), num / 0x3e8), EditorStyles.helpBox, new GUILayoutOption[0]);
GUILayout.EndVertical();
}
base.ApplyRevertGUI();
MovieTexture texture = this.assetEditor.target as MovieTexture;
if ((texture != null) && texture.loop)
{
EditorGUILayout.Space();
texture.loop = EditorGUILayout.Toggle("Loop", texture.loop, new GUILayoutOption[0]);
GUILayout.Label("The Loop setting in the Inspector is obsolete. Use the Scripting API to control looping instead.\n\nThe loop setting will be disabled on next re-import or by disabling it above.", EditorStyles.helpBox, new GUILayoutOption[0]);
}
}