From 5a2641603bc167c2fec6f4a6a073503c8bec7336 Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Fri, 10 May 2013 22:47:17 -0700 Subject: Achievement rounded unlocks. --- pages/achievements.php | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) (limited to 'pages') diff --git a/pages/achievements.php b/pages/achievements.php index fb20f2b..bef9adb 100644 --- a/pages/achievements.php +++ b/pages/achievements.php @@ -57,8 +57,7 @@ foreach ($ac3 as $c3) { foreach ($ac2 as $c2) { $c = "#$c1$c2$c3"; if ($_GET['showcolor'] == 'all') { - //echo ""; - echo ""; + echo ""; } //if ($c2 == 'f') break 2; } @@ -392,6 +391,8 @@ echo "
$UDisplay"; + + function unlockItemAsTD($uType, $item) { $aLevel = $item['aLevel']; @@ -411,28 +412,29 @@ function unlockItemAsTD($uType, $item) { $unlockTitle = "$item[name]"; } - $border = 'border: 1px solid #000; border-width: 2px 0px 2px 0px;'; - $border = 'border: 1px solid #000;'; + //$border = 'border: 1px solid #000; border-width: 2px 0px 2px 0px;'; + //$border = 'border: 1px solid #000;'; $class = 'grid_td_walls'; - //$r .= displayUnlock($uType, $item[value], $unlockTitle); - //return $r; + $class = 'displayWallUnlock'; switch ($uType) { case UNLOCK_WALL_COLOR: if ($GLOBALS['wallColor'] == $item[value]) { - $class = 'grid_td_active'; - $border = 'border: 1px solid #26b;'; - } - $r .= ""; + $class .= ' active'; + } else $class .= ' inactive'; + $r .= " -
"; + $class .= ' active'; + } else $class .= ' inactive'; + $r .= " +
"; + // USE THIS ? $style = "background-image: url(../images/marks/$item[value]);"; break; case UNLOCK_DISPLAY_COLOR: -- cgit v1.2.3