AnywhereTrainer

2 - Remove buttons at dye merchant.

In AnywhereTrainer.lua

function AnywhereTrainer.CharacterWindow_UpdateMode( mode )
   DefaultCharacterWindow_UpdateMode( mode )
   if((mode == CharacterWindow.MODE_DYE_MERCHANT or (mode == CharacterWindow.MODE_NORMAL))then
+      for _, tab in ipairs(AnywhereTrainer.TabData do
+         if (mode == CharacterWindow.MODE_DYE_MERCHANT then WindowSetShowing(tab.Name,false)
+         if (mode == CharacterWindow.MODE_NORMAL then WindowSetShowing(tab.Name,true) end
+      end
      local w, h = WindowGetDimensions( "CharacterWindow" )
      WindowSetDimensions( "CharacterWindow", w + 43, h )
   end
end

What does the provided patch do?
The buttons will not appear when opening the dye merchant window.
They still appear when opening the character window.

Please provide any additional information below.
Patch uses diff style format, please remember to remove the +'s from the lines.

User When Change
Felyza Oct 22, 2008 at 21:44 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 3 comments
  • Avatar of mkosan mkosan Oct 27, 2008 at 16:28 UTC - 0 likes

    Not only taht - notice that four of ')' are also missing [one in each line] - it might have to do with markup here

  • Avatar of Felyza Felyza Oct 27, 2008 at 14:06 UTC - 0 likes

    odd, it didn't copy and paste the 'end' keyword on the first if statement. Ah well.

  • Avatar of mkosan mkosan Oct 23, 2008 at 18:56 UTC - 0 likes

    Felyza, i belive the 4 lines you posted have serious issues. Here's fixed version:

    for _, tab in ipairs(AnywhereTrainer.TabData) do 
        if (mode == CharacterWindow.MODE_DYE_MERCHANT) then WindowSetShowing(tab.Name,false) end
        if (mode == CharacterWindow.MODE_NORMAL) then WindowSetShowing(tab.Name,true) end
    end
    
  • 3 comments

Facts

Reported
Oct 22, 2008
Status
New - Issue has not had initial review yet.
Type
Patch - Source code patch for review
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees