evil-morfar / RCLootCouncil2

RCLootCouncil - addon for World of Warcraft
https://rclootcouncil.com
GNU Lesser General Public License v3.0
19 stars 29 forks source link

Chat command changes #148

Closed evil-morfar closed 6 years ago

evil-morfar commented 6 years ago

I've been postponing this for a while, but finally got around to do it. I might as well do it properly while I'm at it, so here's a short heads up for v2.7.6:

I wanted to enhance the formatting of the output by colorizing the command, hence a need to change to current structure. I created a new function (RCLootCouncil:ModuleChatCmd()) so it doesn't overlap with the old format, which is still supported.

Here's the implementation from GroupGear to make the switch whenever the user upgrades:

if addon:VersionCompare(addon.version, "2.7.6") then
   addon:CustomChatCmd(self, "Show", "- gg - Show the GroupGear window (alt. 'groupgear' or 'gear')", "gg", "groupgear", "gear")
else
   addon:ModuleChatCmd(self, "Show", nil, "Show the GroupGear window (alt. 'groupgear' or 'gear')", "gg", "groupgear", "gear")
end
SafeteeWoW commented 6 years ago

I will go and update EPGP module when 2.7.6 is close to ready. Progressing on Mythic Argus and want to kill him before Lunar Festival, so not going to write big changes.

SafeteeWoW commented 6 years ago

Uploaded RCLootCouncil-EPGP v2.2.3 to fix this.