public override void OnInspectorGUI(ParticleSystem s) { if (UVModuleUI.s_Texts == null) { UVModuleUI.s_Texts = new UVModuleUI.Texts(); } ModuleUI.GUIIntDraggableX2(UVModuleUI.s_Texts.tiles, UVModuleUI.s_Texts.tilesX, this.m_TilesX, UVModuleUI.s_Texts.tilesY, this.m_TilesY); int num = ModuleUI.GUIPopup(UVModuleUI.s_Texts.animation, this.m_AnimationType, UVModuleUI.s_Texts.types); if (num == 1) { ModuleUI.GUIToggle(UVModuleUI.s_Texts.randomRow, this.m_RandomRow); if (!this.m_RandomRow.boolValue) { ModuleUI.GUIInt(UVModuleUI.s_Texts.row, this.m_RowIndex); } } if (num == 1) { this.m_FrameOverTime.m_RemapValue = (float)this.m_TilesX.intValue; } if (num == 0) { this.m_FrameOverTime.m_RemapValue = (float)(this.m_TilesX.intValue * this.m_TilesY.intValue); } ModuleUI.GUIMinMaxCurve(UVModuleUI.s_Texts.frameOverTime, this.m_FrameOverTime); ModuleUI.GUIFloat(UVModuleUI.s_Texts.cycles, this.m_Cycles); }
public override void OnInspectorGUI(ParticleSystem s) { if (UVModuleUI.s_Texts == null) { UVModuleUI.s_Texts = new UVModuleUI.Texts(); } ModuleUI.GUIIntDraggableX2(UVModuleUI.s_Texts.tiles, UVModuleUI.s_Texts.tilesX, this.m_TilesX, UVModuleUI.s_Texts.tilesY, this.m_TilesY); int num1 = ModuleUI.GUIPopup(UVModuleUI.s_Texts.animation, this.m_AnimationType, UVModuleUI.s_Texts.types); if (num1 == 1) { ModuleUI.GUIToggle(UVModuleUI.s_Texts.randomRow, this.m_RandomRow); if (!this.m_RandomRow.boolValue) { ModuleUI.GUIInt(UVModuleUI.s_Texts.row, this.m_RowIndex); } } if (num1 == 1) { this.m_FrameOverTime.m_RemapValue = (float)this.m_TilesX.intValue; } if (num1 == 0) { this.m_FrameOverTime.m_RemapValue = (float)(this.m_TilesX.intValue * this.m_TilesY.intValue); } ModuleUI.GUIMinMaxCurve(UVModuleUI.s_Texts.frameOverTime, this.m_FrameOverTime); double num2 = (double)ModuleUI.GUIFloat(UVModuleUI.s_Texts.cycles, this.m_Cycles); }
public override void OnInspectorGUI(ParticleSystem s) { if (UVModuleUI.s_Texts == null) { UVModuleUI.s_Texts = new UVModuleUI.Texts(); } ModuleUI.GUIIntDraggableX2(UVModuleUI.s_Texts.tiles, UVModuleUI.s_Texts.tilesX, this.m_TilesX, UVModuleUI.s_Texts.tilesY, this.m_TilesY); int num = ModuleUI.GUIPopup(UVModuleUI.s_Texts.animation, this.m_AnimationType, UVModuleUI.s_Texts.types); if (num == 1) { ModuleUI.GUIToggle(UVModuleUI.s_Texts.randomRow, this.m_RandomRow); if (!this.m_RandomRow.boolValue) { ModuleUI.GUIInt(UVModuleUI.s_Texts.row, this.m_RowIndex); } } if (num == 1) { this.m_FrameOverTime.m_RemapValue = (float)this.m_TilesX.intValue; this.m_StartFrame.m_RemapValue = (float)this.m_TilesX.intValue; } if (num == 0) { this.m_FrameOverTime.m_RemapValue = (float)(this.m_TilesX.intValue * this.m_TilesY.intValue); this.m_StartFrame.m_RemapValue = (float)(this.m_TilesX.intValue * this.m_TilesY.intValue - 1); } ModuleUI.GUIMinMaxCurve(UVModuleUI.s_Texts.frameOverTime, this.m_FrameOverTime); ModuleUI.GUIMinMaxCurve(UVModuleUI.s_Texts.startFrame, this.m_StartFrame); ModuleUI.GUIFloat(UVModuleUI.s_Texts.cycles, this.m_Cycles); this.m_UVChannelMask.intValue = (int)((UVChannelFlags)ModuleUI.GUIEnumMask(UVModuleUI.s_Texts.uvChannelMask, (UVChannelFlags)this.m_UVChannelMask.intValue)); }
protected override void Init() { if (this.m_TilesX != null) return; if (UVModuleUI.s_Texts == null) UVModuleUI.s_Texts = new UVModuleUI.Texts(); this.m_FrameOverTime = new SerializedMinMaxCurve((ModuleUI) this, UVModuleUI.s_Texts.frameOverTime, "frameOverTime"); this.m_TilesX = this.GetProperty("tilesX"); this.m_TilesY = this.GetProperty("tilesY"); this.m_AnimationType = this.GetProperty("animationType"); this.m_Cycles = this.GetProperty("cycles"); this.m_RandomRow = this.GetProperty("randomRow"); this.m_RowIndex = this.GetProperty("rowIndex"); }
public override void OnInspectorGUI(InitialModuleUI initial) { if (UVModuleUI.s_Texts == null) { UVModuleUI.s_Texts = new UVModuleUI.Texts(); } ModuleUI.GUIIntDraggableX2(UVModuleUI.s_Texts.tiles, UVModuleUI.s_Texts.tilesX, this.m_TilesX, UVModuleUI.s_Texts.tilesY, this.m_TilesY, new GUILayoutOption[0]); int num = ModuleUI.GUIPopup(UVModuleUI.s_Texts.animation, this.m_AnimationType, UVModuleUI.s_Texts.types, new GUILayoutOption[0]); if (num == 1) { ModuleUI.GUIToggle(UVModuleUI.s_Texts.randomRow, this.m_RandomRow, new GUILayoutOption[0]); if (!this.m_RandomRow.boolValue) { ModuleUI.GUIInt(UVModuleUI.s_Texts.row, this.m_RowIndex, new GUILayoutOption[0]); } } if (num == 1) { this.m_FrameOverTime.m_RemapValue = (float)this.m_TilesX.intValue; this.m_StartFrame.m_RemapValue = (float)this.m_TilesX.intValue; } if (num == 0) { this.m_FrameOverTime.m_RemapValue = (float)(this.m_TilesX.intValue * this.m_TilesY.intValue); this.m_StartFrame.m_RemapValue = (float)(this.m_TilesX.intValue * this.m_TilesY.intValue); } ModuleUI.GUIMinMaxCurve(UVModuleUI.s_Texts.frameOverTime, this.m_FrameOverTime, new GUILayoutOption[0]); ModuleUI.GUIMinMaxCurve(UVModuleUI.s_Texts.startFrame, this.m_StartFrame, new GUILayoutOption[0]); ModuleUI.GUIFloat(UVModuleUI.s_Texts.cycles, this.m_Cycles, new GUILayoutOption[0]); bool disabled = false; ParticleSystem[] particleSystems = this.m_ParticleSystemUI.m_ParticleSystems; for (int i = 0; i < particleSystems.Length; i++) { ParticleSystem particleSystem = particleSystems[i]; ParticleSystemRenderer component = particleSystem.GetComponent <ParticleSystemRenderer>(); if (component != null && component.renderMode == ParticleSystemRenderMode.Mesh) { disabled = true; break; } } using (new EditorGUI.DisabledScope(disabled)) { ModuleUI.GUIFloat(UVModuleUI.s_Texts.flipU, this.m_FlipU, new GUILayoutOption[0]); ModuleUI.GUIFloat(UVModuleUI.s_Texts.flipV, this.m_FlipV, new GUILayoutOption[0]); } this.m_UVChannelMask.intValue = (int)((UVChannelFlags)ModuleUI.GUIEnumMask(UVModuleUI.s_Texts.uvChannelMask, (UVChannelFlags)this.m_UVChannelMask.intValue, new GUILayoutOption[0])); }
protected override void Init() { if (this.m_TilesX != null) { return; } if (UVModuleUI.s_Texts == null) { UVModuleUI.s_Texts = new UVModuleUI.Texts(); } this.m_FrameOverTime = new SerializedMinMaxCurve((ModuleUI)this, UVModuleUI.s_Texts.frameOverTime, "frameOverTime"); this.m_TilesX = this.GetProperty("tilesX"); this.m_TilesY = this.GetProperty("tilesY"); this.m_AnimationType = this.GetProperty("animationType"); this.m_Cycles = this.GetProperty("cycles"); this.m_RandomRow = this.GetProperty("randomRow"); this.m_RowIndex = this.GetProperty("rowIndex"); }
protected override void Init() { if (this.m_TilesX != null) { return; } if (UVModuleUI.s_Texts == null) { UVModuleUI.s_Texts = new UVModuleUI.Texts(); } this.m_FrameOverTime = new SerializedMinMaxCurve(this, UVModuleUI.s_Texts.frameOverTime, "frameOverTime"); this.m_StartFrame = new SerializedMinMaxCurve(this, UVModuleUI.s_Texts.startFrame, "startFrame"); this.m_StartFrame.m_AllowCurves = false; this.m_TilesX = base.GetProperty("tilesX"); this.m_TilesY = base.GetProperty("tilesY"); this.m_AnimationType = base.GetProperty("animationType"); this.m_Cycles = base.GetProperty("cycles"); this.m_RandomRow = base.GetProperty("randomRow"); this.m_RowIndex = base.GetProperty("rowIndex"); this.m_UVChannelMask = base.GetProperty("uvChannelMask"); }