mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-29 20:30:54 +00:00
#1470 minor bugfixes with app rendering; added Tieable interface
--HG-- branch : gsoc2012-achievements
This commit is contained in:
parent
39e57873be
commit
a71989e70f
4 changed files with 24 additions and 5 deletions
|
@ -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";
|
||||
}
|
||||
}
|
||||
?>
|
|
@ -233,10 +233,12 @@
|
|||
$perk_list = $ach->getOpen();
|
||||
|
||||
$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…
Reference in a new issue