forked from halo-battle/game
Permet l'affichage de la description de la techno
This commit is contained in:
parent
6112a55cc0
commit
cbc12502f5
2 changed files with 31 additions and 8 deletions
|
|
@ -1,13 +1,23 @@
|
|||
{include file='game/header.tpl'}
|
||||
<h2>Détails {$type}</h2>
|
||||
<dl id="description">
|
||||
{if $type == 'technologies'}
|
||||
<dt>{$LANG[$raceAff][$type].noms_sing.$branche.$id|ucfirst}</dt>
|
||||
<dd><img src="{$url_images}images/{$type}/{$image}" alt="{$type|ucfirst}" /><p>{$LANG[$raceAff][$type].descriptions.$branche.$id}</p>
|
||||
{else}
|
||||
<dt>{$LANG[$raceAff][$type].noms_sing[$id]|ucfirst}</dt>
|
||||
<dd><img src="{$url_images}images/{$type}/{$image}" alt="{$type|ucfirst}" /><p>{$LANG[$raceAff][$type].descriptions.$id}</p>
|
||||
<div><h5>Actuellement : </h5>{if $type == 'caserne'}{$planete->casernes.$id} unité(s){elseif $type == 'terrestre'}{$planete->terrestres.$id} unité(s){elseif $type == 'vaisseaux'}{$planete->vaisseaux[$id]} vaisseau(x){else}niveau {$planete->batiments[$id]}{/if}</div>
|
||||
{if $ressourcesNext.0}<div><h5>Coût {$LANG[$raceAff].ressources.noms.metal|ucfirst} : </h5>{$ressourcesNext.0|separerNombres}</div>{/if}
|
||||
{if $ressourcesNext.1}<div><h5>Coût {$LANG[$raceAff].ressources.noms.cristal|ucfirst} : </h5>{$ressourcesNext.1|separerNombres}</div>{/if}
|
||||
{if $ressourcesNext.2}<div><h5>Coût {$LANG[$raceAff].ressources.noms.hydrogene|ucfirst} : </h5>{$ressourcesNext.2|separerNombres}</div>{/if}
|
||||
<div><h5>Temps de construction : </h5>{$ressourcesNext.3|temps}</div>
|
||||
{/if}
|
||||
<div><h5>Actuellement : </h5>{if $type == 'caserne'}{$planete->casernes.$id} unité(s){elseif $type == 'terrestre'}{$planete->terrestres.$id} unité(s){elseif $type == 'vaisseaux'}{$planete->vaisseaux[$id]} vaisseau(x){elseif $type == 'technologies'}niveau {$niveau} sur {$niveau_max}{else}niveau {$planete->batiments[$id]}{/if}</div>
|
||||
{if $type == 'technologies'}
|
||||
{if $ressourcesNext.0}<div><h5>Coût {$LANG[$raceAff].ressources.noms.credits|ucfirst} : </h5>{$ressourcesNext.0|separerNombres}</div>{/if}
|
||||
{if $ressourcesNext.1}<div><h5>Temps de recherche : </h5>{$ressourcesNext.1|temps}</div>{/if}
|
||||
{else}
|
||||
{if $ressourcesNext.0}<div><h5>Coût {$LANG[$raceAff].ressources.noms.metal|ucfirst} : </h5>{$ressourcesNext.0|separerNombres}</div>{/if}
|
||||
{if $ressourcesNext.1}<div><h5>Coût {$LANG[$raceAff].ressources.noms.cristal|ucfirst} : </h5>{$ressourcesNext.1|separerNombres}</div>{/if}
|
||||
{if $ressourcesNext.2}<div><h5>Coût {$LANG[$raceAff].ressources.noms.hydrogene|ucfirst} : </h5>{$ressourcesNext.2|separerNombres}</div>{/if}
|
||||
<div><h5>Temps de construction : </h5>{$ressourcesNext.3|temps}</div>
|
||||
{/if}
|
||||
{if $caract}
|
||||
<div><h5>Attaque : </h5>{$caract.0|separerNombres}</div>
|
||||
<div><h5>Bouclier : </h5>{$caract.1|separerNombres}</div>
|
||||
|
|
@ -44,4 +54,4 @@
|
|||
{/if}
|
||||
</dd>
|
||||
</dl>
|
||||
{include file='game/footer.tpl'}
|
||||
{include file='game/footer.tpl'}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue