feat: update game interface to support planet pictures

This commit is contained in:
Emmanuel BENOîT 2024-12-31 19:53:17 +01:00
parent 4d48fba21b
commit da42f6db52
Signed by: Emmanuel BENOîT
SSH key fingerprint: SHA256:l7PFUUF5TCDsvYeQC9OnTNz08dFY7Fvf4Hv3neIqYpg
10 changed files with 28 additions and 15 deletions

View file

@ -12,7 +12,7 @@ $config = array(
"scriptdir" => __DIR__,
// Path to the cache
"cachedir" => "/tmp/lwcache",
"cachedir" => "/var/cache/lw",
// Debugging level
"debug" => 2,

View file

@ -14,7 +14,7 @@
<Param name="sessname" value="legacy_alpha_sid" />
<!-- Planet generator script -->
<Param name="pgenreq" value="/tmp/pgen" />
<Param name="pgenreq" value="/var/cache/pgen" />
</MainParams>
<!-- This part configures the general ticks that are not related to a

View file

@ -115,7 +115,8 @@ class page_layout {
// JavaScript variables (static access URL, color, etc...)
$jsConf = "var staticurl=\"".config::$main['staticurl']
. "\";\nvar color=\"$col\";\nvar ttFontSize = '" . ($fs + 9) . "px';\n"
. "var ttDelay = " . ($tt * 500) . ";\n";
. "var ttDelay = " . ($tt * 500) . ";\nvar gameId = \""
. input::$game->name . "\";\n";
// AJAX-specified initialization code
if (ajax::$init != "" || $tt) {