mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Quest/Detailpage
* fixed breadcrumb trail for quests categorized to subzones * display auto accept status in infobox
This commit is contained in:
@@ -1167,6 +1167,7 @@ $lang = array(
|
|||||||
'bonusTalents' => "%d |4Talentpunkt:Talentpunkte;",
|
'bonusTalents' => "%d |4Talentpunkt:Talentpunkte;",
|
||||||
'spellDisplayed'=> ' (<a href="?spell=%d">%s</a> wird angezeigt)',
|
'spellDisplayed'=> ' (<a href="?spell=%d">%s</a> wird angezeigt)',
|
||||||
'questPoolDesc' => 'Nur %d |4Quest kann:Quests können; aus diesem Tab gleichzeitig aktiv sein',
|
'questPoolDesc' => 'Nur %d |4Quest kann:Quests können; aus diesem Tab gleichzeitig aktiv sein',
|
||||||
|
'autoaccept' => 'Automatisches Annehmen',
|
||||||
'questInfo' => array(
|
'questInfo' => array(
|
||||||
0 => "Normal", 1 => "Gruppe", 21 => "Leben", 41 => "PvP", 62 => "Schlachtzug", 81 => "Dungeon", 82 => "Weltereignis",
|
0 => "Normal", 1 => "Gruppe", 21 => "Leben", 41 => "PvP", 62 => "Schlachtzug", 81 => "Dungeon", 82 => "Weltereignis",
|
||||||
83 => "Legendär", 84 => "Eskorte", 85 => "Heroisch", 88 => "Schlachtzug (10)", 89 => "Schlachtzug (25)"
|
83 => "Legendär", 84 => "Eskorte", 85 => "Heroisch", 88 => "Schlachtzug (10)", 89 => "Schlachtzug (25)"
|
||||||
|
|||||||
@@ -1167,6 +1167,7 @@ $lang = array(
|
|||||||
'bonusTalents' => "%d talent |4point:points;", // partly LEVEL_UP_CHAR_POINTS
|
'bonusTalents' => "%d talent |4point:points;", // partly LEVEL_UP_CHAR_POINTS
|
||||||
'spellDisplayed'=> ' (<a href="?spell=%d">%s</a> is displayed)',
|
'spellDisplayed'=> ' (<a href="?spell=%d">%s</a> is displayed)',
|
||||||
'questPoolDesc' => 'Only %d |4Quest:Quests; from this tab will be available at a time',
|
'questPoolDesc' => 'Only %d |4Quest:Quests; from this tab will be available at a time',
|
||||||
|
'autoaccept' => 'Auto Accept',
|
||||||
'questInfo' => array(
|
'questInfo' => array(
|
||||||
0 => "Normal", 1 => "Group", 21 => "Life", 41 => "PvP", 62 => "Raid", 81 => "Dungeon", 82 => "World Event",
|
0 => "Normal", 1 => "Group", 21 => "Life", 41 => "PvP", 62 => "Raid", 81 => "Dungeon", 82 => "World Event",
|
||||||
83 => "Legendary", 84 => "Escort", 85 => "Heroic", 88 => "Raid (10)", 89 => "Raid (25)"
|
83 => "Legendary", 84 => "Escort", 85 => "Heroic", 88 => "Raid (10)", 89 => "Raid (25)"
|
||||||
|
|||||||
@@ -1167,6 +1167,7 @@ $lang = array(
|
|||||||
'bonusTalents' => "%d |4punto:puntos; de talento",
|
'bonusTalents' => "%d |4punto:puntos; de talento",
|
||||||
'spellDisplayed'=> ' (mostrando <a href="?spell=%d">%s</a>)',
|
'spellDisplayed'=> ' (mostrando <a href="?spell=%d">%s</a>)',
|
||||||
'questPoolDesc' => 'Only %d |4Quest:Quests; from this tab will be available at a time',
|
'questPoolDesc' => 'Only %d |4Quest:Quests; from this tab will be available at a time',
|
||||||
|
'autoaccept' => 'Auto aceptar',
|
||||||
'questInfo' => array(
|
'questInfo' => array(
|
||||||
0 => "Normal", 1 => "Élite", 21 => "Vida", 41 => "JcJ", 62 => "Banda", 81 => "Mazmorra", 82 => "Evento del mundo",
|
0 => "Normal", 1 => "Élite", 21 => "Vida", 41 => "JcJ", 62 => "Banda", 81 => "Mazmorra", 82 => "Evento del mundo",
|
||||||
83 => "Legendaria", 84 => "Escolta", 85 => "Heroica", 88 => "Banda (10)", 89 => "Banda (25)"
|
83 => "Legendaria", 84 => "Escolta", 85 => "Heroica", 88 => "Banda (10)", 89 => "Banda (25)"
|
||||||
|
|||||||
@@ -1167,6 +1167,7 @@ $lang = array(
|
|||||||
'bonusTalents' => "%d |4point:points; de talent",
|
'bonusTalents' => "%d |4point:points; de talent",
|
||||||
'spellDisplayed'=> ' (<a href="?spell=%d">%s</a> affichés)',
|
'spellDisplayed'=> ' (<a href="?spell=%d">%s</a> affichés)',
|
||||||
'questPoolDesc' => 'Only %d |4Quest:Quests; from this tab will be available at a time',
|
'questPoolDesc' => 'Only %d |4Quest:Quests; from this tab will be available at a time',
|
||||||
|
'autoaccept' => 'Acceptation Automatique',
|
||||||
'questInfo' => array(
|
'questInfo' => array(
|
||||||
0 => "Standard", 1 => "Groupe", 21 => "Vie", 41 => "JcJ", 62 => "Raid", 81 => "Donjon", 82 => "Évènement mondial",
|
0 => "Standard", 1 => "Groupe", 21 => "Vie", 41 => "JcJ", 62 => "Raid", 81 => "Donjon", 82 => "Évènement mondial",
|
||||||
83 => "Légendaire", 84 => "Escorte", 85 => "Héroïque", 88 => "Raid (10)", 89 => "Raid (25)"
|
83 => "Légendaire", 84 => "Escorte", 85 => "Héroïque", 88 => "Raid (10)", 89 => "Raid (25)"
|
||||||
|
|||||||
@@ -1167,6 +1167,7 @@ $lang = array(
|
|||||||
'bonusTalents' => "%d |4очко талантов:очка талантов:очков талантов;",
|
'bonusTalents' => "%d |4очко талантов:очка талантов:очков талантов;",
|
||||||
'spellDisplayed'=> ' (показано: <a href="?spell=%d">%s</a>)',
|
'spellDisplayed'=> ' (показано: <a href="?spell=%d">%s</a>)',
|
||||||
'questPoolDesc' => 'Only %d |4Quest:Quests; from this tab will be available at a time',
|
'questPoolDesc' => 'Only %d |4Quest:Quests; from this tab will be available at a time',
|
||||||
|
'autoaccept' => 'Автопринятие',
|
||||||
'questInfo' => array(
|
'questInfo' => array(
|
||||||
0 => "Обычный", 1 => "Группа", 21 => "Жизнь", 41 => "PvP", 62 => "Рейд", 81 => "Подземелье", 82 => "Игровое событие",
|
0 => "Обычный", 1 => "Группа", 21 => "Жизнь", 41 => "PvP", 62 => "Рейд", 81 => "Подземелье", 82 => "Игровое событие",
|
||||||
83 => "Легенда", 84 => "Сопровождение", 85 => "Героическое", 88 => "Рейд (10)", 89 => "Рейд (25)"
|
83 => "Легенда", 84 => "Сопровождение", 85 => "Героическое", 88 => "Рейд (10)", 89 => "Рейд (25)"
|
||||||
|
|||||||
@@ -1167,6 +1167,7 @@ $lang = array(
|
|||||||
'bonusTalents' => "%d天赋|4点数:点数;",
|
'bonusTalents' => "%d天赋|4点数:点数;",
|
||||||
'spellDisplayed'=> ' (<a href="?spell=%d">%s</a> is displayed)',
|
'spellDisplayed'=> ' (<a href="?spell=%d">%s</a> is displayed)',
|
||||||
'questPoolDesc' => 'Only %d |4Quest:Quests; from this tab will be available at a time',
|
'questPoolDesc' => 'Only %d |4Quest:Quests; from this tab will be available at a time',
|
||||||
|
'autoaccept' => '自动接收',
|
||||||
'questInfo' => array(
|
'questInfo' => array(
|
||||||
0 => "普通", 1 => "组队", 21 => "职业", 41 => "PvP", 62 => "团队", 81 => "地下城", 82 => "世界事件",
|
0 => "普通", 1 => "组队", 21 => "职业", 41 => "PvP", 62 => "团队", 81 => "地下城", 82 => "世界事件",
|
||||||
83 => "传说", 84 => "护送", 85 => "英雄", 88 => "团队(10)", 89 => "团队(25)"
|
83 => "传说", 84 => "护送", 85 => "英雄", 88 => "团队(10)", 89 => "团队(25)"
|
||||||
|
|||||||
@@ -19,6 +19,19 @@ class QuestPage extends GenericPage
|
|||||||
protected $css = [['path' => 'Book.css']];
|
protected $css = [['path' => 'Book.css']];
|
||||||
protected $js = ['ShowOnMap.js'];
|
protected $js = ['ShowOnMap.js'];
|
||||||
|
|
||||||
|
private $catExtra = array(
|
||||||
|
3526 => 3524,
|
||||||
|
363 => 14,
|
||||||
|
220 => 215,
|
||||||
|
188 => 141,
|
||||||
|
1769 => 361,
|
||||||
|
25 => 46,
|
||||||
|
132 => 1,
|
||||||
|
3431 => 3430,
|
||||||
|
154 => 85,
|
||||||
|
9 => 12
|
||||||
|
);
|
||||||
|
|
||||||
private $powerTpl = '$WowheadPower.registerQuest(%d, %d, %s);';
|
private $powerTpl = '$WowheadPower.registerQuest(%d, %d, %s);';
|
||||||
|
|
||||||
public function __construct($pageCall, $id)
|
public function __construct($pageCall, $id)
|
||||||
@@ -44,8 +57,13 @@ class QuestPage extends GenericPage
|
|||||||
// recreate path
|
// recreate path
|
||||||
$this->path[] = $this->subject->getField('cat2');
|
$this->path[] = $this->subject->getField('cat2');
|
||||||
if ($_ = $this->subject->getField('cat1'))
|
if ($_ = $this->subject->getField('cat1'))
|
||||||
|
{
|
||||||
|
if (isset($this->catExtra[$_]))
|
||||||
|
$this->path[] = $this->catExtra[$_];
|
||||||
|
|
||||||
$this->path[] = $_;
|
$this->path[] = $_;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected function generateTitle()
|
protected function generateTitle()
|
||||||
{
|
{
|
||||||
@@ -204,6 +222,10 @@ class QuestPage extends GenericPage
|
|||||||
if ($e)
|
if ($e)
|
||||||
$infobox[] = implode('[br]', $e);
|
$infobox[] = implode('[br]', $e);
|
||||||
|
|
||||||
|
// auto accept
|
||||||
|
if ($_flags & QUEST_FLAG_AUTO_ACCEPT)
|
||||||
|
$infobox[] = Lang::quest('autoaccept');
|
||||||
|
|
||||||
// Repeatable
|
// Repeatable
|
||||||
if ($this->subject->isRepeatable())
|
if ($this->subject->isRepeatable())
|
||||||
$infobox[] = Lang::quest('repeatable');
|
$infobox[] = Lang::quest('repeatable');
|
||||||
|
|||||||
Reference in New Issue
Block a user