mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
implementation of Sound DB
Client sounds are cross-referenced with as many other DB-Types as possible. Including, but not limited to: * Character VOs (Errors, Emotes) * Creature VOs (Boss Dialogue) * Zone Music and Ambience * Sounds triggerd by spells * Sounds from general item/spell usage, creature behavior Restrictions: * only one locale is supported. Choose wisely!
This commit is contained in:
@@ -183,6 +183,24 @@ class RacePage extends GenericPage
|
||||
'hiddenCols' => ['slot', 'type']
|
||||
)];
|
||||
}
|
||||
|
||||
// Sounds
|
||||
if ($vo = DB::Aowow()->selectCol('SELECT soundId AS ARRAY_KEY, gender FROM ?_races_sounds WHERE raceId = ?d', $this->typeId))
|
||||
{
|
||||
$sounds = new SoundList(array(['id', array_keys($vo)]));
|
||||
if (!$sounds->error)
|
||||
{
|
||||
$this->extendGlobalData($sounds->getJSGlobals(GLOBALINFO_SELF));
|
||||
$data = $sounds->getListviewData();
|
||||
foreach ($data as $id => &$d)
|
||||
$d['gender'] = $vo[$id];
|
||||
|
||||
$this->lvTabs[] = ['sound', array(
|
||||
'data' => array_values($data),
|
||||
'extraCols' => ['$Listview.templates.title.columns[1]']
|
||||
)];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user