#1470 minor bugfixes with app rendering; added Tieable interface

--HG--
branch : gsoc2012-achievements
hg/feature/gsoc2013-dfighter
SirCotare 13 years ago
parent 39e57873be
commit a71989e70f

@ -1,5 +1,5 @@
<?php
class AchCategory extends AchList {
class AchCategory extends AchList implements Tieable {
private $id = false;
private $ties_cult;
private $ties_civ;

@ -1,5 +1,5 @@
<?php
class AchSummary extends AchList {
class AchSummary extends AchList implements Tieable {
private $menu;
private $stats;
@ -65,5 +65,21 @@
return array($done,$total);
}
function isTiedCult() {
return false;
}
function isTiedCiv() {
return false;
}
function getCurrentCiv() {
return "c_neutral";
}
function getCurrentCult() {
return "c_neutral";
}
}
?>

@ -234,9 +234,11 @@
$perk = $ach->getChild($perk_list[0]);
$html .= "<span style='color:#999999;font-weight:bold;'>".$perk->getName()."</span>";
if($perk->getName() != null) {
$html .= "<span style='color:#999999;font-weight:bold;display:block;'>".$perk->getName()."</span>";
}
if($perk->objDrawable()) {
$html .= "<br>".ach_render_obj_list($perk->getChildren());
$html .= ach_render_obj_list($perk->getChildren());
}
return $html;

@ -34,6 +34,7 @@ require_once("include/ach_render_common.php");
require_once("class/RenderNodeIteraor_abstract.php");
require_once("class/AchList_abstract.php");
require_once("class/Tieable_inter.php");
require_once("class/AchMenu_class.php");
require_once("class/AchSummary_class.php");

Loading…
Cancel
Save