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 |
- 3 comments
- 3 comments
- #3
mkosan Mon, 27 Oct 2008 16:28:47Not only taht - notice that four of ')' are also missing [one in each line] - it might have to do with markup here
- #2
Felyza Mon, 27 Oct 2008 14:06:59odd, it didn't copy and paste the 'end' keyword on the first if statement. Ah well.
- #1
mkosan Thu, 23 Oct 2008 18:56:37Felyza, i belive the 4 lines you posted have serious issues. Here's fixed version: