mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
IconDB/Fixups (obligatory)
* table had wrong engine * two hunter pets have unique icons only referenced in creaturefamily.dbc * fixed links to rel-tabs
This commit is contained in:
@@ -78,7 +78,7 @@ class IconList extends BaseType
|
||||
'buildingcount' => 0, // UNUSED
|
||||
'petcount' => (int)$this->getField('nPets'),
|
||||
'threatcount' => 0, // UNUSED
|
||||
'classcount' => 0 // class icons are hardcoeded and do not referenced in dbc
|
||||
'classcount' => 0 // class icons are hardcoded and not referenced in dbc
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -54,7 +54,10 @@ class IconPage extends GenericPage
|
||||
if (!$ubSpells->error)
|
||||
{
|
||||
$this->extendGlobalData($ubSpells->getJsGlobals());
|
||||
$this->lvTabs[] = [SpellList::$brickFile, ['data' => array_values($ubSpells->getListviewData())]];
|
||||
$this->lvTabs[] = [SpellList::$brickFile, array(
|
||||
'data' => array_values($ubSpells->getListviewData()),
|
||||
'id' => 'used-by-spell'
|
||||
)];
|
||||
}
|
||||
|
||||
// used by: item
|
||||
@@ -62,7 +65,10 @@ class IconPage extends GenericPage
|
||||
if (!$ubItems->error)
|
||||
{
|
||||
$this->extendGlobalData($ubItems->getJsGlobals());
|
||||
$this->lvTabs[] = [ItemList::$brickFile, ['data' =>array_values( $ubItems->getListviewData())]];
|
||||
$this->lvTabs[] = [ItemList::$brickFile, array(
|
||||
'data' => array_values($ubItems->getListviewData()),
|
||||
'id' => 'used-by-item'
|
||||
)];
|
||||
}
|
||||
|
||||
// used by: achievement
|
||||
@@ -70,7 +76,10 @@ class IconPage extends GenericPage
|
||||
if (!$ubAchievements->error)
|
||||
{
|
||||
$this->extendGlobalData($ubAchievements->getJsGlobals());
|
||||
$this->lvTabs[] = [AchievementList::$brickFile, ['data' => array_values($ubAchievements->getListviewData())]];
|
||||
$this->lvTabs[] = [AchievementList::$brickFile, array(
|
||||
'data' => array_values($ubAchievements->getListviewData()),
|
||||
'id' => 'used-by-achievement'
|
||||
)];
|
||||
}
|
||||
|
||||
// used by: currency
|
||||
@@ -78,7 +87,10 @@ class IconPage extends GenericPage
|
||||
if (!$ubCurrencies->error)
|
||||
{
|
||||
$this->extendGlobalData($ubCurrencies->getJsGlobals());
|
||||
$this->lvTabs[] = [CurrencyList::$brickFile, ['data' => array_values($ubCurrencies->getListviewData())]];
|
||||
$this->lvTabs[] = [CurrencyList::$brickFile, array(
|
||||
'data' => array_values($ubCurrencies->getListviewData()),
|
||||
'id' => 'used-by-currency'
|
||||
)];
|
||||
}
|
||||
|
||||
// used by: hunter pet
|
||||
@@ -86,7 +98,10 @@ class IconPage extends GenericPage
|
||||
if (!$ubPets->error)
|
||||
{
|
||||
$this->extendGlobalData($ubPets->getJsGlobals());
|
||||
$this->lvTabs[] = [PetList::$brickFile, ['data' => array_values($ubPets->getListviewData())]];
|
||||
$this->lvTabs[] = [PetList::$brickFile, array(
|
||||
'data' => array_values($ubPets->getListviewData()),
|
||||
'id' => 'used-by-pet'
|
||||
)];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -17,12 +17,11 @@ class IconsPage extends GenericPage
|
||||
protected $mode = CACHE_TYPE_PAGE;
|
||||
protected $js = ['filters.js'];
|
||||
|
||||
public function __construct($pageCall, $pageParam)
|
||||
public function __construct($pageCall)
|
||||
{
|
||||
$this->filterObj = new IconListFilter();
|
||||
$this->getCategoryFromUrl($pageParam);;
|
||||
|
||||
parent::__construct($pageCall, $pageParam);
|
||||
parent::__construct($pageCall);
|
||||
|
||||
$this->name = Util::ucFirst(Lang::game('icons'));
|
||||
}
|
||||
|
||||
@@ -858,10 +858,12 @@ DROP TABLE IF EXISTS `aowow_icons`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `aowow_icons` (
|
||||
`id` mediumint(9) NOT NULL,
|
||||
`iconString` varchar(55) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`cuFlags` int(11) unsigned NOT NULL DEFAULT '0',
|
||||
`name` varchar(55) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`id`),
|
||||
INDEX `name` (`name`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
|
||||
@@ -9,7 +9,7 @@ if (!CLI)
|
||||
|
||||
$customData = array(
|
||||
);
|
||||
$reqDBC = ['spellicon', 'itemdisplayinfo'];
|
||||
$reqDBC = ['spellicon', 'itemdisplayinfo', 'creaturefamily'];
|
||||
|
||||
function icons()
|
||||
{
|
||||
@@ -22,6 +22,8 @@ function icons()
|
||||
(SELECT LOWER(SUBSTRING_INDEX(iconPath, "\\\\", -1)) AS x FROM dbc_spellicon WHERE iconPath LIKE "%icons%")
|
||||
UNION
|
||||
(SELECT LOWER(inventoryIcon1) AS x FROM dbc_itemdisplayinfo WHERE inventoryIcon1 <> "")
|
||||
UNION
|
||||
(SELECT LOWER(SUBSTRING_INDEX(iconString, "\\\\", -1)) AS x FROM dbc_creaturefamily WHERE iconString LIKE "%icons%")
|
||||
) y
|
||||
GROUP BY
|
||||
x
|
||||
|
||||
@@ -5,7 +5,7 @@ CREATE TABLE `aowow_icons` (
|
||||
`name` VARCHAR(55) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`id`),
|
||||
INDEX `name` (`name`)
|
||||
) COLLATE='utf8_general_ci' ENGINE=MyISAM AUTO_INCREMENT=1;
|
||||
) COLLATE='utf8_general_ci' ENGINE=InnoDB AUTO_INCREMENT=1;
|
||||
|
||||
ALTER TABLE `aowow_items`
|
||||
ADD COLUMN `iconId` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0' AFTER `name_loc8`,
|
||||
|
||||
Reference in New Issue
Block a user