public void OnGUI() { if (isCritical) { lastFontSize = playerInterface.damageLabelStyle.fontSize; playerInterface.damageLabelStyle.fontSize += (int)(1.5f * playerInterface.damageLabelStyle.fontSize * floatTime / duration); PlayerInterfaceHelper.DrawShadow(labelRect, damage.ToString(), playerInterface.damageLabelStyle, playerInterface.damageLabelStyle.normal.textColor, Color.black, new Vector2(1, 1)); playerInterface.damageLabelStyle.fontSize = lastFontSize; } else { PlayerInterfaceHelper.DrawShadow(labelRect, damage.ToString(), playerInterface.damageLabelStyle, playerInterface.damageLabelStyle.normal.textColor, Color.black, new Vector2(1, 1)); } }
public void OnGUI() { GUI.DrawTexture(skillIconRect, playerInterface.world.SpellIcons[spellData.iconName].texture); PlayerInterfaceHelper.DrawShadow(labelRect, spellData.spellName, playerInterface.skillUseNameStyle, playerInterface.skillUseNameStyle.normal.textColor, Color.black, new Vector2(1, 1)); }