/trunk
## Interface: 20400 |
## Title: Trainer Default - Available Only |
## Author: Asu |
## Notes: This just changes the default for trainers to only show things you can actually train currently. |
## X-Email: wow@referencethis.com |
TrainerDefaultAvailOnly.xml |
<Ui xmlns="http://www.blizzard.com/wow/ui/" |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
xsi:schemaLocation="http://www.blizzard.com/wow/ui/"> |
<Frame name="TrainerDefaultAvailOnly"> |
<Scripts> |
<OnLoad> |
local us |
if this.RegisterEvent then us = this else us = self end |
us:RegisterEvent( "TRAINER_SHOW" ) |
</OnLoad> |
<OnEvent> |
-- The normal default is available = 1, unavailable= 1, used = 0 |
SetTrainerServiceTypeFilter( "unavailable", 0 ) |
</OnEvent> |
</Scripts> |
</Frame> |
</Ui> |