dandruff / xCT

A light weight scrolling combat text implementation.
53 stars 22 forks source link

Switch interface options tab when showing Blizzard options #22

Closed ckaotik closed 11 years ago

ckaotik commented 11 years ago

Most of the time, addon's settings guide you to the "AddOns" tab on the interface settings. However, you are directing the user to Blizzard's default settings. If the user has been on an add-on settings panel before, you will display the correct panel (i.e. Blizzard's options from the Game tab), however, the scrolling sidebar is still that of the AddOn tab. This at least confused me and maybe others feel the same about it?

It's easy to improve this jump by just adding

InterfaceOptionsFrameTab1:Click()

for example, like this:

blizzardOptions = {
      order = 3,
      type = 'execute',
      name = "More Blizzard Options",
      func = function() InterfaceOptionsFrame:Show(); InterfaceOptionsFrameTab1:Click(); InterfaceOptionsFrameCategoriesButton8:Click(); LibStub('AceConfigDialog-3.0'):Close(ADDON_NAME); GameTooltip:Hide() end,
    },