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