Runeword Browser Images added, almost finalized.

This commit is contained in:
Hash Borgir 2022-03-22 06:37:01 -06:00
parent a96518f942
commit 5ced1b7b18

View File

@ -217,7 +217,9 @@ $htmltop = <<<EOT
.uitem { .uitem {
} }
.rprops {
font-family: ExocetHeavy;
}
.rw { .rw {
text-align: center; text-align: center;
@ -230,6 +232,13 @@ $htmltop = <<<EOT
.rw-name {} .rw-name {}
.rw-type {} .rw-type {}
.rw-rune { color: #ccc;} .rw-rune { color: #ccc;}
.rune-img {
padding: 1px;
margin:1px;
height: 42px;
width: 42px;
}
</style> </style>
@ -1429,6 +1438,12 @@ if ($cmd == 'genDocRunewords'){
$sql = 'SELECT * FROM runes'; $sql = 'SELECT * FROM runes';
$runes = array_filter(PDO_FetchAll($sql)); $runes = array_filter(PDO_FetchAll($sql));
$sql = 'SELECT code,invfile from misc';
$rune_inv_codes = array_filter(PDO_FetchAssoc($sql));
// ddump($rune_inv_codes);
$sql = 'SELECT * FROM strings'; $sql = 'SELECT * FROM strings';
$strings = array_filter(PDO_FetchAssoc($sql)); $strings = array_filter(PDO_FetchAssoc($sql));
@ -1460,6 +1475,15 @@ if ($cmd == 'genDocRunewords'){
$itype5 = $itypes[$rune['itype5']]; $itype5 = $itypes[$rune['itype5']];
$itype6 = $itypes[$rune['itype6']]; $itype6 = $itypes[$rune['itype6']];
$rr_img[1] = $rune_inv_codes[$rune['Rune1']];
$rr_img[2] = $rune_inv_codes[$rune['Rune2']];
$rr_img[3] = $rune_inv_codes[$rune['Rune3']];
$rr_img[4] = $rune_inv_codes[$rune['Rune4']];
$rr_img[5] = $rune_inv_codes[$rune['Rune5']];
$rr_img[6] = $rune_inv_codes[$rune['Rune6']];
$rr[1] = str_replace(' Rune', '', $strings[$rune['Rune1']]); $rr[1] = str_replace(' Rune', '', $strings[$rune['Rune1']]);
$rr[2] = str_replace(' Rune', '', $strings[$rune['Rune2']]); $rr[2] = str_replace(' Rune', '', $strings[$rune['Rune2']]);
$rr[3] = str_replace(' Rune', '', $strings[$rune['Rune3']]); $rr[3] = str_replace(' Rune', '', $strings[$rune['Rune3']]);
@ -1540,7 +1564,16 @@ if ($cmd == 'genDocRunewords'){
// var_dump($props); // var_dump($props);
$tableRowsRunes .= <<<EOT $rr_img = array_filter($rr_img);
$img_s = '';
foreach ($rr_img as $k){
$img_s .= "<img class='rune-img' src='img/items/{$k}.png'>";
}
//ddump($img_s);
$tableRowsRunes .= <<<EOT
<tr class="rw"> <tr class="rw">
@ -1549,16 +1582,20 @@ if ($cmd == 'genDocRunewords'){
<td> <td>
<p class="rw-rune"> <p class="rw-rune">
$rcd[0] <br> <p>$img_s</p>
$rcd[1] <br> $rcd[0] <br>
$rcd[2] <br> $rcd[1] <br>
$rcd[3] <br> $rcd[2] <br>
$rcd[4] <br> $rcd[3] <br>
$rcd[5] <br> $rcd[4] <br>
$rcd[5] <br>
</p></td> </p></td>
<td> <td>
<ul> <ul class="rprops blue">
<li style="font-size: 140%;margin: 5px;" class="gold">$name</li>
<li> $props[1] </li> <li> $props[1] </li>
<li> $props[2] </li> <li> $props[2] </li>
<li> $props[3] </li> <li> $props[3] </li>