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 Wed, 22 Oct 2008 21:44:46 Create

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

  • 3 comments
  • Avatar of mkosan mkosan Mon, 27 Oct 2008 16:28:47

    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 Mon, 27 Oct 2008 14:06:59

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

  • Avatar of mkosan mkosan Thu, 23 Oct 2008 18:56:37

    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 on
22 Oct 2008
Status
New - Issue has not had initial review yet.
Type
Patch - Source code patch for review
Priority
Medium - Normal priority.

Reported by

Possible assignees