Quantcast

Yanked some code from addon:DisplayFrame() and turned it into MainPanel:SetProfession().

Author torhal <torhal@dummy.example.com>
Author date 2009-11-20 01:24:30
Author local date 2009-11-20 01:24:30 +0000
Committer torhal <torhal@dummy.example.com>
Committer date 2009-11-20 01:24:30
Committer local date 2009-11-20 01:24:30 +0000
Commit 515b0d562c80da1826915cefc440487ed1d4163b
Tree 16ea3d5f8148aeda2592e9d37138f751105f7962
Parent 2c8d6cfbe06d79d059824b347c1e2f5430654e79
Yanked some code from addon:DisplayFrame() and turned it into MainPanel:SetProfession().
Removed a large portion of code from MainPanel.mode_button's OnClick script - everything it was doing is handled by the cascade of events initiated by addon:Scan().
Removed SaveFramePosition() - its code now resides in MainPanel's OnMouseUp script.
Moved faction_strings and CheckDisplayFaction() into a do block with expandEntry(), since they are both only used there.
CheckDisplayFactions() now has one parameter, down from two.
Removed file-local variable currentProfIndex - we now use MainPanel.profession
Moved SortedProfessions and NUM_PROFESSIONS to the Constants section in the file.
Removed MainPanel:Close() - calling MainPanel:Hide() does the same thing.