private void ShowStun(HitIcon.Data data) { data.middleMesh.text = this.GetString("HitIconStun"); this.ChangeFontTexture(this.standardEffectFontTexture.blue, new TextMeshPro[] { data.middleMesh }); }
private void ShowClearTolerance(HitIcon.Data data) { data.middleMesh.text = this.GetString("HitIconClearTolerance"); this.ChangeFontTexture(this.standardEffectFontTexture.red, new TextMeshPro[] { data.middleMesh }); }
private void ShowReflection(HitIcon.Data data, int value) { data.bottomMesh.text = this.GetString("HitIconReflection"); this.ChangeFontTexture(this.standardEffectFontTexture.yellow, new TextMeshPro[] { data.bottomMesh }); }
private void ShowInstantDeath(HitIcon.Data data) { data.middleMesh.text = this.GetString("HitIconInstantDeath"); this.ChangeFontTexture(this.standardEffectFontTexture.red, new TextMeshPro[] { data.middleMesh }); }
private void ShowConfusion(HitIcon.Data data) { data.middleMesh.text = this.GetString("HitIconConfusion"); this.ChangeFontTexture(this.standardEffectFontTexture.yellow, new TextMeshPro[] { data.middleMesh }); }
private void ShowTurnEvasion(HitIcon.Data data) { data.middleMesh.text = this.GetString("HitIconTurnEvasion"); this.ChangeFontTexture(this.standardEffectFontTexture.red, new TextMeshPro[] { data.middleMesh }); }
private void ShowSkillLock(HitIcon.Data data) { data.middleMesh.text = this.GetString("HitIconSkillLock"); this.ChangeFontTexture(this.standardEffectFontTexture.green, new TextMeshPro[] { data.middleMesh }); }
private void ShowInvalid(HitIcon.Data data) { data.middleMesh.text = this.GetString("HitIconInvalid"); this.ChangeFontTexture(this.standardEffectFontTexture.gray, new TextMeshPro[] { data.middleMesh }); }
private void ShowDamageRateUp(HitIcon.Data data) { data.middleMesh.text = this.GetString("HitIconDamageRateUp"); this.ChangeFontTexture(this.standardEffectFontTexture.red, new TextMeshPro[] { data.middleMesh }); }
private void ShowSufferStatusClear(HitIcon.Data data) { data.middleMesh.text = this.GetString("HitIconSufferStatusClear"); this.ChangeFontTexture(this.standardEffectFontTexture.yellow, new TextMeshPro[] { data.middleMesh }); }
private void ShowCorrectionDownReset(HitIcon.Data data) { data.middleMesh.text = this.GetString("HitIconCorrectionDownReset"); this.ChangeFontTexture(this.standardEffectFontTexture.red, new TextMeshPro[] { data.middleMesh }); }
private void ShowAttributeTolerance(HitIcon.Data data, AffectEffectProperty affectEffectProperty, bool up) { int num = 0; float num2 = 0f; string text = "HitIconAttributeToleranceUp"; string text2 = "HitIconStateToleranceUp"; string text3 = "HitIconAttributeToleranceDown"; string text4 = "HitIconStateToleranceDown"; for (int i = 0; i < affectEffectProperty.toleranceValue.Length; i++) { if (affectEffectProperty.toleranceValue[i] > 0f) { num = i; num2 = affectEffectProperty.toleranceValue[i]; break; } } if (num2 == 100f) { if (num <= 6) { data.middleMesh.text = this.GetString("HitIconAttributeAbsorption"); } } else if (num2 == 101f) { if (num <= 6) { data.middleMesh.text = this.GetString("HitIconInvalidAttribute"); } else if (num > 6 && num < 100) { data.middleMesh.text = this.GetString("HitIconInvalidState"); } } else if (num <= 6) { data.middleMesh.text = this.GetString((!up) ? text3 : text); } else if (num > 6 && num < 100) { data.middleMesh.text = this.GetString((!up) ? text4 : text2); } this.ChangeFontTexture((!up) ? this.standardEffectFontTexture.blue : this.standardEffectFontTexture.red, new TextMeshPro[] { data.middleMesh }); }
private void ShowDamage(HitIcon.Data data, int value, Strength strength, bool isCritical, bool isCounter, bool isReflection, ExtraEffectType extraEffectType) { if (isCounter) { data.bottomMesh.text = this.GetString("HitIconCounter"); data.numMesh.text = value.ToString(); this.ChangeFontTexture(this.standardEffectFontTexture.yellow, new TextMeshPro[] { data.numMesh, data.bottomMesh }); } if (isReflection) { data.bottomMesh.text = this.GetString("HitIconReflection"); data.numMesh.text = value.ToString(); this.ChangeFontTexture(this.standardEffectFontTexture.yellow, new TextMeshPro[] { data.numMesh, data.bottomMesh }); } else { if (isCritical) { data.bottomMesh.text = this.GetString("HitIconCritical"); this.ChangeFontTexture(this.standardEffectFontTexture.yellow, new TextMeshPro[] { data.bottomMesh }); } data.numMesh.text = value.ToString(); Texture resistanceFontTextureForNumber = this.GetResistanceFontTextureForNumber(strength); this.ChangeFontTexture(resistanceFontTextureForNumber, new TextMeshPro[] { data.numMesh }); data.topMesh.text = this.GetWeakName(strength); Texture resistanceFontTextureForTop = this.GetResistanceFontTextureForTop(strength); this.ChangeFontTexture(resistanceFontTextureForTop, new TextMeshPro[] { data.topMesh }); } }
private void ShowHpRevival(HitIcon.Data data, int value, bool isDrain) { if (isDrain) { data.numMesh.text = value.ToString(); data.bottomMesh.text = this.GetString("HitIconDrain"); } else { data.numMesh.text = value.ToString(); data.bottomMesh.text = this.GetString("HitIconHpRevival"); } this.ChangeFontTexture(this.standardEffectFontTexture.pink, new TextMeshPro[] { data.numMesh, data.bottomMesh }); }
private void ShowRegenerate(HitIcon.Data data, int value) { if (value > 0) { BattleStateUIProperty uiProperty = BattleStateManager.current.uiProperty; base.transform.localScale = uiProperty.hitIconLocalScale * uiProperty.onPoisonScalingSizeHitIcon; data.bottomMesh.text = this.GetString("HitIconRegenerate"); data.numMesh.text = value.ToString(); this.ChangeFontTexture(this.standardEffectFontTexture.pink, new TextMeshPro[] { data.numMesh, data.bottomMesh }); } else { data.middleMesh.text = this.GetString("HitIconRegenerate"); this.ChangeFontTexture(this.standardEffectFontTexture.pink, new TextMeshPro[] { data.middleMesh }); } }
public void ApplyShowHitIcon(AffectEffect affect, int onDamage, Strength onWeak, bool onMiss, bool onCrithical, bool isDrain, bool isCounter, bool isReflection, ExtraEffectType extraEffectType = ExtraEffectType.Non, AffectEffectProperty affectEffectProperty = null) { this.ApplyHitIconPlayAnimation(onWeak); bool flag = false; HitIcon.Data data = (!flag) ? this.standard : this.gimmick; this.standard.gameObject.SetActive(!flag); this.gimmick.gameObject.SetActive(flag); base.transform.localScale = Vector3.one; data.numMesh.text = string.Empty; data.topMesh.text = string.Empty; data.middleMesh.text = string.Empty; data.bottomMesh.text = string.Empty; this.upSprite.gameObject.SetActive(false); this.downSprite.gameObject.SetActive(false); if (onMiss) { this.ShowMiss(data); } else { switch (affect) { case AffectEffect.Damage: case AffectEffect.ReferenceTargetHpRate: case AffectEffect.HpBorderlineDamage: case AffectEffect.HpBorderlineSpDamage: case AffectEffect.DefenseThroughDamage: case AffectEffect.SpDefenseThroughDamage: case AffectEffect.RefHpRateNonAttribute: this.ShowDamage(data, onDamage, onWeak, onCrithical, isCounter, isReflection, extraEffectType); return; case AffectEffect.AttackUp: this.ShowAttackUp(data); return; case AffectEffect.AttackDown: this.ShowAttackDown(data); return; case AffectEffect.DefenceUp: this.ShowDefenceUp(data); return; case AffectEffect.DefenceDown: this.ShowDefenceDown(data); return; case AffectEffect.SpAttackUp: this.ShowSpAttackUp(data); return; case AffectEffect.SpAttackDown: this.ShowSpAttackDown(data); return; case AffectEffect.SpDefenceUp: this.ShowSpDefenceUp(data); return; case AffectEffect.SpDefenceDown: this.ShowSpDefenceDown(data); return; case AffectEffect.SpeedUp: this.ShowSpeedUp(data); return; case AffectEffect.SpeedDown: this.ShowSpeedDown(data); return; case AffectEffect.CorrectionUpReset: this.ShowCorrectionUpReset(data); return; case AffectEffect.CorrectionDownReset: this.ShowCorrectionDownReset(data); return; case AffectEffect.HpRevival: this.ShowHpRevival(data, onDamage, isDrain); return; case AffectEffect.Counter: this.ShowCounter(data, onDamage); return; case AffectEffect.Reflection: this.ShowReflection(data, onDamage); return; case AffectEffect.Protect: this.ShowProtect(data); return; case AffectEffect.PowerCharge: this.ShowPowerCharge(data); return; case AffectEffect.Destruct: this.ShowDestruct(data); return; case AffectEffect.Paralysis: this.ShowParalysis(data); return; case AffectEffect.Poison: this.ShowPoison(data, onDamage); return; case AffectEffect.Sleep: this.ShowSleep(data); return; case AffectEffect.SkillLock: this.ShowSkillLock(data); return; case AffectEffect.HitRateUp: this.ShowHitRateUp(data); return; case AffectEffect.HitRateDown: this.ShowHitRateDown(data); return; case AffectEffect.InstantDeath: this.ShowInstantDeath(data); return; case AffectEffect.Confusion: this.ShowConfusion(data); return; case AffectEffect.Stun: this.ShowStun(data); return; case AffectEffect.SufferStatusClear: this.ShowSufferStatusClear(data); return; case AffectEffect.SatisfactionRateUp: this.ShowSatisfactionRateUp(data); return; case AffectEffect.SatisfactionRateDown: this.ShowSatisfactionRateDown(data); return; case AffectEffect.ApRevival: this.ShowApRevival(data); return; case AffectEffect.ApUp: this.ShowApUp(data); return; case AffectEffect.ApDown: this.ShowApDown(data); return; case AffectEffect.ApConsumptionUp: this.ShowApConsumptionUp(data); return; case AffectEffect.ApConsumptionDown: this.ShowApConsumptionDown(data); return; case AffectEffect.TurnBarrier: this.ShowTurnBarrier(data); return; case AffectEffect.CountBarrier: this.ShowCountBarrier(data); return; case AffectEffect.Invalid: this.ShowInvalid(data); return; case AffectEffect.Recommand: this.ShowRecommand(data); return; case AffectEffect.DamageRateUp: this.ShowDamageRateUp(data); return; case AffectEffect.DamageRateDown: this.ShowDamageRateDown(data); return; case AffectEffect.Regenerate: this.ShowRegenerate(data, onDamage); return; case AffectEffect.TurnEvasion: this.ShowTurnEvasion(data); return; case AffectEffect.CountEvasion: this.ShowCountEvasion(data); return; case AffectEffect.Escape: this.ShowEscape(data); return; case AffectEffect.ChangeToleranceUp: this.ShowAttributeTolerance(data, affectEffectProperty, true); return; case AffectEffect.ChangeToleranceDown: this.ShowAttributeTolerance(data, affectEffectProperty, false); return; case AffectEffect.ClearTolerance: this.ShowClearTolerance(data); return; } NGUITools.SetActiveSelf(base.gameObject, false); } }