Строчка имени, клана, склонности.

This commit is contained in:
Igor Barkov (iwork) 2020-07-06 15:26:50 +03:00
parent f4d51b69af
commit 0183cfed0e
2 changed files with 18 additions and 0 deletions

View File

@ -78,7 +78,21 @@ class User
{
$captions = 'Уровень:<br>Сила:<br>Ловкость:<br>Интуиция:<br>Выносливость:<br>Интеллект:<br>Мудрость:<br>Местонахождение:';
$variables = $this->level . '<br>' . $this->strength . '<br>' . $this->dexterity . '<br>' . $this->intuition . '<br>' . $this->endurance . '<br>' . $this->intelligence . '<br>' . $this->wisdom . '<br>' . $this->getRoomName($this->room);
if ($this->align) {
$nameString = sprintf('<img src="/i/align_%s.png" >', $this->align);
}
if ($this->block) {
$nameString .= '<span class="private"><s>'.$this->login.'</s></span>';
} else {
$nameString .= ' <b>'.$this->login.'</b> ';
}
if ($this->clan) {
$nameString .= sprintf('<img src="/i/klan/%s.png" >', ClanImage($this->clan));
}
echo '<div class="user-info">';
echo '<div class="info">';
echo '<b>' .$nameString. '</b>';
echo '</div><!-- info -->';
echo '<div class="stats-container">';
echo '<div class="column">';
echo $captions;

View File

@ -396,6 +396,10 @@ div.user-info-container > div.user-info > div.stats-container {
width: 350px;
}
div.user-info-container > div.user-info > div.info {
width: 350px;
}
div.user-info-container > div.user-info > div.stats-container > div.column {
padding: 10px;
font-size: larger;