mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 06:43:24 +00:00
Re-add recovery/recharge times and tweak styling
This commit is contained in:
@@ -32,13 +32,20 @@ export default class DefenceSummary extends TranslatedComponent {
|
|||||||
return (
|
return (
|
||||||
<span>
|
<span>
|
||||||
<h1>{translate('defence summary')}</h1>
|
<h1>{translate('defence summary')}</h1>
|
||||||
<table className='summary' style={{ width: '100%', lineHeight: '1em', backgroundColor: 'transparent' }}>
|
<table className='summary' style={{ marginLeft: 'auto', marginRight: 'auto', lineHeight: '1em', backgroundColor: 'transparent' }}>
|
||||||
<tbody>
|
<tbody>
|
||||||
{ship.shield ?
|
{ship.shield ?
|
||||||
<tr>
|
<tr>
|
||||||
<td colSpan='4' className='summary'><h2>{translate('shields')}: {formats.int(ship.shield)} {units.MJ}</h2></td>
|
<td colSpan='4' className='summary'><h2>{translate('shields')}: {formats.int(ship.shield)} {units.MJ}</h2></td>
|
||||||
</tr> : null }
|
</tr> : null }
|
||||||
{ship.shield ?
|
{ship.shield ?
|
||||||
|
<tr>
|
||||||
|
<td className='ri' onMouseEnter={termtip.bind(null, 'PHRASE_SG_RECOVER', { cap: 0 })} onMouseLeave={hide}>{translate('recovery')}</td>
|
||||||
|
<td className='le'>{formats.time(ship.calcShieldRecovery())}</td>
|
||||||
|
<td className='ri' onMouseEnter={termtip.bind(null, 'PHRASE_SG_RECHARGE', { cap: 0 })} onMouseLeave={hide}>{translate('recharge')}</td>
|
||||||
|
<td className='le'>{formats.time(ship.calcShieldRecharge())}</td>
|
||||||
|
</tr> : null }
|
||||||
|
{ship.shield ?
|
||||||
<tr>
|
<tr>
|
||||||
<td className='le'>{translate('damage from')}</td>
|
<td className='le'>{translate('damage from')}</td>
|
||||||
<td className='ri' onMouseOver={termtip.bind(null, 'explosive')} onMouseOut={tooltip.bind(null, null)}><DamageExplosive /> {formats.pct1(ship.shieldExplRes || 1)}</td>
|
<td className='ri' onMouseOver={termtip.bind(null, 'explosive')} onMouseOut={tooltip.bind(null, null)}><DamageExplosive /> {formats.pct1(ship.shieldExplRes || 1)}</td>
|
||||||
@@ -54,7 +61,6 @@ export default class DefenceSummary extends TranslatedComponent {
|
|||||||
<tr>
|
<tr>
|
||||||
<td colSpan='4'><h2>{translate('armour')}: {formats.int(ship.armour)}</h2></td>
|
<td colSpan='4'><h2>{translate('armour')}: {formats.int(ship.armour)}</h2></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td className='le'>{translate('damage from')}</td>
|
<td className='le'>{translate('damage from')}</td>
|
||||||
<td className='ri' onMouseOver={termtip.bind(null, 'explosive')} onMouseOut={tooltip.bind(null, null)}><DamageExplosive /> {formats.pct1(ship.hullExplRes || 1)}</td>
|
<td className='ri' onMouseOver={termtip.bind(null, 'explosive')} onMouseOut={tooltip.bind(null, null)}><DamageExplosive /> {formats.pct1(ship.hullExplRes || 1)}</td>
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ export default class OffenceSummary extends TranslatedComponent {
|
|||||||
return (
|
return (
|
||||||
<span>
|
<span>
|
||||||
<h1>{translate('offence summary')}</h1>
|
<h1>{translate('offence summary')}</h1>
|
||||||
<table className='summary' style={{ width: '100%', lineHeight: '1em', backgroundColor: 'transparent' }}>
|
<table className='summary' style={{ marginLeft: 'auto', marginRight: 'auto', lineHeight: '1em', backgroundColor: 'transparent' }}>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td colSpan='4' className='summary'><h2>{translate('dps')}: {formats.f1(ship.totalDps)}</h2></td>
|
<td colSpan='4' className='summary'><h2>{translate('dps')}: {formats.f1(ship.totalDps)}</h2></td>
|
||||||
|
|||||||
Reference in New Issue
Block a user