Add another screenshot and make the preview size specifiable.

This commit is contained in:
Bill Currie 2011-12-23 09:00:17 +09:00
parent 6f7fd4b233
commit 2c0b933ad7
3 changed files with 3 additions and 2 deletions

BIN
img/screenshots/eels.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

BIN
img/screenshots/eels.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

View file

@ -4,10 +4,10 @@
$currPage = "shots"; // Name of the page, for the menu
require "parts/preamble.php"; // Load most of document
function screenshot ($name, $caption)
function screenshot ($name, $caption, $width=200, $height=150)
{
echo '<P class="lined">'
.' <CENTER><A class="screenshot" href="/img/screenshots/' . $name . '.png"><IMG src="/img/screenshots/' . $name . '.jpg" width="200" height="150" alt="View at full size"></A></CENTER><BR>'
.' <CENTER><A class="screenshot" href="/img/screenshots/' . $name . '.png"><IMG src="/img/screenshots/' . $name . '.jpg" width="' . $width . '" height="' . $height . '" alt="View at full size"></A></CENTER><BR>'
. $caption
.'</P>';
}
@ -21,6 +21,7 @@
<DIV class="featureBox">
<DIV class="featureTitle">QuakeForge: Newtree</DIV>
<?
screenshot ('eels', 'Vondur\'s <a href="http://wp.vondur.net/?page_id=1047">Elements</a>, with tasty GL fog.', 240, 150);
screenshot ('marcher', 'Kinn\'s amazing <a href="https://www.quaddicted.com/reviews/kinn_marcher.html">The Marcher Fortress</a>, with a skybox force-loaded.');
screenshot ('wateralpha-0.3', 'The Elder World pool, with a watervised map and with r_wateralpha 0.3. If you look closely, you can see the partially fullbright texture on the nail box below.');
screenshot ('dlights-quad-rocket', 'This one really shows off dynamic lighting and fullbrights. The player has quad damage, causing them to give off a blue dynamic light. A rocket is exploding after hitting a wall, and in the background you see the fullbrights on the exit glowing bright red.');