#1470 minor bugfixes with app rendering; added Tieable interface

This commit is contained in:
SirCotare 2012-06-03 23:03:33 +02:00
parent 945b3d695e
commit c0778e9fd9
4 changed files with 24 additions and 5 deletions

View file

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

View file

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

View file

@ -234,9 +234,11 @@
$perk = $ach->getChild($perk_list[0]); $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()) { if($perk->objDrawable()) {
$html .= "<br>".ach_render_obj_list($perk->getChildren()); $html .= ach_render_obj_list($perk->getChildren());
} }
return $html; return $html;

View file

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