public override void OnInspectorGUI(ParticleSystem s)
{
if (s_Texts == null)
{
s_Texts = new Texts();
}
ModuleUI.GUIIntDraggableX2(s_Texts.tiles, s_Texts.tilesX, this.m_TilesX, s_Texts.tilesY, this.m_TilesY);
int num = ModuleUI.GUIPopup(s_Texts.animation, this.m_AnimationType, s_Texts.types);
if (num == 1)
{
ModuleUI.GUIToggle(s_Texts.randomRow, this.m_RandomRow);
if (!this.m_RandomRow.boolValue)
{
ModuleUI.GUIInt(s_Texts.row, this.m_RowIndex);
}
}
if (num == 1)
{
this.m_FrameOverTime.m_RemapValue = this.m_TilesX.intValue;
}
if (num == 0)
{
this.m_FrameOverTime.m_RemapValue = this.m_TilesX.intValue * this.m_TilesY.intValue;
}
ModuleUI.GUIMinMaxCurve(s_Texts.frameOverTime, this.m_FrameOverTime);
ModuleUI.GUIFloat(s_Texts.cycles, this.m_Cycles);
}