boss fight design

This commit is contained in:
Daniel 2014-04-16 15:28:09 +02:00
commit 1d7cfc6ceb
3 changed files with 75 additions and 78 deletions

View file

@ -1,39 +1,31 @@
<table>
<tbody>
<tr>
<td>
<img src="<?=$linker->link(array('media','seminary',$seminary['url'],$character['avatar_url']))?>" />
</td>
<td>
<?php if(array_key_exists('bossmedia', $fight)) : ?>
<img src="<?=$linker->link(array('media','seminary',$seminary['url'],$fight['bossmedia']['url']))?>" />
<?php endif ?>
</td>
</tr>
<tr>
<td>
<?=$character['name']?>:
<?php if($lives['character'] > 0) : ?>
<?php foreach(range(1,$lives['character']) as $i) : ?>
<?php endforeach ?>
<?php else : ?>
<?=_('lost')?>
<?php endif ?>
</td>
<td>
<?=$fight['bossname']?>:
<?php if($lives['boss'] > 0) : ?>
<?php foreach(range(1,$lives['boss']) as $i) : ?>
<?php endforeach ?>
<?php else : ?>
<?=_('lost')?>
<?php endif ?>
</td>
</tr>
</tbody>
</table>
<div class="cf">
<section class="opponent">
<p class="fwb"><?=$character['name']?></p>
<p class="portrait"><img src="<?=$linker->link(array('media','seminary',$seminary['url'],$character['avatar_url']))?>" class="hero" /></p>
<p>
<?php if($lives['character'] > 0) : ?>
<?php foreach(range(1,$lives['character']) as $i) : ?>
<i class="fa fa-heart fa-fw"></i>
<?php endforeach ?>
<?php else : ?>
<?=_('lost')?>
<?php endif ?>
</p>
</section>
<section class="opponent">
<p class="fwb"><?=$fight['bossname']?></p>
<p class="portrait"><img src="<?=$linker->link(array('media','seminary',$seminary['url'],$fight['bossmedia']['url']))?>" class="boss" /></p>
<p>
<?php if($lives['boss'] > 0) : ?>
<?php foreach(range(1,$lives['boss']) as $i) : ?>
<i class="fa fa-heart fa-fw"></i>
<?php endforeach ?>
<?php else : ?>
<?=_('lost')?>
<?php endif ?>
</p>
</section>
</div>
<p><?=\hhu\z\Utils::t($stage['text'])?></p>

View file

@ -1,43 +1,38 @@
<table>
<tbody>
<tr>
<td>
<img src="<?=$linker->link(array('media','seminary',$seminary['url'],$character['avatar_url']))?>" />
</td>
<td>
<?php if(array_key_exists('bossmedia', $fight)) : ?>
<img src="<?=$linker->link(array('media','seminary',$seminary['url'],$fight['bossmedia']['url']))?>" />
<?php endif ?>
</td>
</tr>
<?php foreach($stages as &$stage) : ?>
<tr>
<td colspan="2">
<?=$stage['question']?>
</td>
</tr>
<tr>
<td>
<?=$character['name']?>:
<?php if($stage['lives']['character'] > 0) : ?>
<?php foreach(range(1,$stage['lives']['character']) as $i) : ?>
<?php endforeach ?>
<?php else : ?>
<?=_('lost')?>
<?php endif ?>
</td>
<td>
<?=$fight['bossname']?>:
<?php if($stage['lives']['boss'] > 0) : ?>
<?php foreach(range(1,$stage['lives']['boss']) as $i) : ?>
<?php endforeach ?>
<?php else : ?>
<?=_('lost')?>
<?php endif ?>
</td>
</tr>
<div class="cf">
<section class="opponent">
<p class="portrait"><img src="<?=$linker->link(array('media','seminary',$seminary['url'],$character['avatar_url']))?>" class="hero" /></p>
</section>
<section class="opponent">
<p class="portrait"><img src="<?=$linker->link(array('media','seminary',$seminary['url'],$fight['bossmedia']['url']))?>" class="boss" /></p>
</section>
</div>
<?php foreach($stages as &$stage) : ?>
<p><?=$stage['question']?></p>
<div class="cf">
<section class="opponent">
<p class="fwb"><?=$character['name']?></p>
<p>
<?php if($lives['character'] > 0) : ?>
<?php foreach(range(1,$lives['character']) as $i) : ?>
<i class="fa fa-heart fa-fw"></i>
<?php endforeach ?>
</tbody>
</table>
<?php else : ?>
<?=_('lost')?>
<?php endif ?>
</p>
</section>
<section class="opponent">
<p class="fwb"><?=$fight['bossname']?></p>
<p>
<?php if($lives['boss'] > 0) : ?>
<?php foreach(range(1,$lives['boss']) as $i) : ?>
<i class="fa fa-heart fa-fw"></i>
<?php endforeach ?>
<?php else : ?>
<?=_('lost')?>
<?php endif ?>
</p>
</section>
</div>
<?php endforeach ?>