From 603df4a0ee1ca03b8f258655cc1f5ca53393fdbf Mon Sep 17 00:00:00 2001 From: Kevin Gilbert Date: Thu, 25 Aug 2016 14:32:44 -0700 Subject: [PATCH 1/4] simplify/refactor to working revision --- ArtifactMenu.lua | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ArtifactMenu.lua b/ArtifactMenu.lua index bc34e9c..587f196 100644 --- a/ArtifactMenu.lua +++ b/ArtifactMenu.lua @@ -1,8 +1,6 @@ -SLASH_ARTIFACTMENU, SLASH_ARTIFACTMENUSHORT = '/artifact', '/am'; -local function openWeaponSockets(msg, editbox) - /run SocketInventoryItem(16); +LASH_ARTIFACTMENU1, SLASH_ARTIFACTMENU2 = '/artifact', '/am'; +function SlashCmdList.ARTIFACTMENU(msg, editBox) + SocketInventoryItem(16); + print("Opening ArtifactMenu..."); end -SlashCmdList[SLASH_ARTIFACTMENU] = openWeaponSockets; -SlashCmdList[SLASH_ARTIFACTMENUSHORT] = openWeaponSockets; - -- 1.7.9.5 From 8bb83ce2ae81332da4ccdd02a1435c5352c4bb9c Mon Sep 17 00:00:00 2001 From: Kevin Gilbert Date: Thu, 25 Aug 2016 14:38:21 -0700 Subject: [PATCH 2/4] refactor socketing to local function --- ArtifactMenu.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ArtifactMenu.lua b/ArtifactMenu.lua index 587f196..057f819 100644 --- a/ArtifactMenu.lua +++ b/ArtifactMenu.lua @@ -1,6 +1,11 @@ LASH_ARTIFACTMENU1, SLASH_ARTIFACTMENU2 = '/artifact', '/am'; -function SlashCmdList.ARTIFACTMENU(msg, editBox) + +local function openWeaponSockets() SocketInventoryItem(16); +end + +function SlashCmdList.ARTIFACTMENU(msg, editBox) + openWeaponSockets(); print("Opening ArtifactMenu..."); end -- 1.7.9.5 From 019ee74e2c985747aefb5958d46b620a9ee4b294 Mon Sep 17 00:00:00 2001 From: Kevin Gilbert Date: Thu, 25 Aug 2016 14:49:18 -0700 Subject: [PATCH 3/4] create initial README file --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..afa957c --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +# ArtifactMenu + +This is a simple World of Warcraft add-on to automate opening the Artifact interface in the upcoming expansion *Legion*. It is my first add-on and was never intended to be particularly complex. The whole point is that: + +1. To open the Artifact interface, you must Shift+RightClick on your equipped Artifact weapon +2. It is easier to type `/run SocketInventoryItem(16);`, if you can save it to a macro +3. It is more intuitive to type `/am` or `/artifact` than the above macro +4. Some artifacts are off-hands and require inventory slot #17 + +This add-on will simplify all of that to just: + +* `/artifact` +* `/am` (if you're lazy) +* `/artifactmenu` (if you're forgetful) + +# Special Thanks + +* [The idea](https://www.reddit.com/r/wow/comments/4ze7uw/psa_macro_to_quickly_open_the_artifact_weapon/) by [/u/HoLeeSchit](https://www.reddit.com/user/HoLeeSchit) +* [WoW Addon Writing Guide](http://wow.gamepedia.com/User:Cogswobble/Addon_Tutorial/Slash_Commands) by Cogswobble +* Wowpedia [slash commands reference](http://wow.gamepedia.com/Creating_a_slash_command) +* The nice people of [#wowuidev](http://us.battle.net/forums/en/wow/topic/1127130079) for helping me debug + -- 1.7.9.5 From 626a927b5025c3a3536c667eaccae5ba7e3a8138 Mon Sep 17 00:00:00 2001 From: Kevin Gilbert Date: Thu, 25 Aug 2016 14:52:03 -0700 Subject: [PATCH 4/4] bump version for Release Candidate --- ArtifactMenu.toc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArtifactMenu.toc b/ArtifactMenu.toc index 8e84436..087f939 100644 --- a/ArtifactMenu.toc +++ b/ArtifactMenu.toc @@ -1,6 +1,6 @@ ## Interface: 70000 ## Title: ArtifactMenu ## Author: Kevin Gilbert (kaygil) -## Version: 0.1.0 +## Version: 0.2.0 ArtifactMenu.lua -- 1.7.9.5