Download
(2 Kb)
Download
Updated: 05-09-14 04:07 AM
Pictures
File Info
Compatibility:
Siege of Orgrimmar (5.4)
Updated:05-09-14 04:07 AM
Created:12-12-13 12:07 PM
Downloads:425
Favorites:21
MD5:
5.4
Click Menu
Version: 2.5
by: 10leej [More]
Looking for localizations! I only have German right now. --10leej

Click Menu is an addon intended to replace the Micromenu with a simple menu found by right clicking (Can be changed at the top of core.lua) the minimap.

Code is available to use and freely redistribute.

Future Plans:
Get Localizations working

Available on Curse
Source Code
Check out some of my other addons
Feel like being awesome? Buy me a pepsi, only $1.50 where I live!
2.5
Added a bit of localization code not working yet. However there's a localization file now.
Removed all but Logout and Quit from the game menu options (Sorry guys list was a little big)
Rework opening function so pings work
Removed game menu opening option I must've coded while drunk

2.4
Optimized a bit of code, got plans for localization in the future NEED TRANSLATORS!
I decded that minimap buttons need to be handled elsewhere. Stay tuned

2.3
Added toggle bag function

2.2
Added game menu options think I'm done updating for the night....

2.1
forgot to add the update functions so the minimap buttons work.....

2
expanded list with more options
Replaced radials with icons, probably could done a better job on some
Added minimap icons this is lightly tested though so might not work (please report in comments if there's any minimap button not showing up)
Optional Files (0)


Archived Files (6)
File Name
Version
Size
Author
Date
2.4
2kB
10leej
03-30-14 05:05 AM
2.3
2kB
10leej
12-23-13 09:21 PM
2.2
3kB
10leej
12-16-13 08:05 PM
2.1
2kB
10leej
12-16-13 07:28 PM
2
2kB
10leej
12-16-13 07:06 PM
1.0
884B
10leej
12-12-13 12:07 PM


Post A Reply Comment Options
Unread 05-21-14, 06:20 AM  
10leej
A Scalebane Royal Guard
 
10leej's Avatar
AddOn Author - Click to view AddOns

Forum posts: 428
File comments: 324
Uploads: 18
Re: Re: Re: SexyMap

Originally Posted by xanat05
Originally Posted by 10leej
Originally Posted by xanat05
Does not work with modified minimap, SexyMap.
It should unless sexymap is using the right click keybind for something else. Which you can change the keybind in core.lua
Yes, thank you. Addon now works as it should. All Ive need to do was to remove the following lines of code from SexyMap.lua:

Minimap:SetScript("OnMouseUp", function(frame, button)
if button == "RightButton" and mod.db.rightClickToConfig then
SlashCmdList.SexyMap()
else
Minimap_OnClick(frame, button)
end
end)

TIP: Right click - "open SexyMap options" disabled already, nevertheless regardless of choosen options SexyMap will prevent Click menu from showing untill manually remove lines of code which Ive mentioned.
Ah go figure. Fortunately there's probably some method of a work around.
__________________
Addons: The "Almost" Definitive Guide Shave Time Shave Money Tweets Website
Looking for people to take over my addons contact me at 10leej@gmail.com
10leej is offline Report comment to moderator  
Reply With Quote
Unread 05-21-14, 06:19 AM  
xanat05
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Re: Re: SexyMap

Originally Posted by 10leej
Originally Posted by xanat05
Does not work with modified minimap, SexyMap.
It should unless sexymap is using the right click keybind for something else. Which you can change the keybind in core.lua
Yes, thank you. Addon now works as it should. All Ive need to do was to remove the following lines of code from SexyMap.lua:

Minimap:SetScript("OnMouseUp", function(frame, button)
if button == "RightButton" and mod.db.rightClickToConfig then
SlashCmdList.SexyMap()
else
Minimap_OnClick(frame, button)
end
end)

TIP: Right click - "open SexyMap options" disabled already, nevertheless regardless of choosen options SexyMap will prevent Click menu from showing untill manually remove lines of code which Ive mentioned.
xanat05 is offline Report comment to moderator  
Reply With Quote
Unread 05-21-14, 04:18 AM  
10leej
A Scalebane Royal Guard
 
10leej's Avatar
AddOn Author - Click to view AddOns

Forum posts: 428
File comments: 324
Uploads: 18
Re: SexyMap

Originally Posted by xanat05
Does not work with modified minimap, SexyMap.
It should unless sexymap is using the right click keybind for something else. Which you can change the keybind in core.lua
__________________
Addons: The "Almost" Definitive Guide Shave Time Shave Money Tweets Website
Looking for people to take over my addons contact me at 10leej@gmail.com
10leej is offline Report comment to moderator  
Reply With Quote
Unread 05-20-14, 08:28 AM  
xanat05
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
SexyMap

Does not work with modified minimap, SexyMap.
xanat05 is offline Report comment to moderator  
Reply With Quote
Unread 05-16-14, 03:24 AM  
10leej
A Scalebane Royal Guard
 
10leej's Avatar
AddOn Author - Click to view AddOns

Forum posts: 428
File comments: 324
Uploads: 18
Updated curse download page
__________________
Addons: The "Almost" Definitive Guide Shave Time Shave Money Tweets Website
Looking for people to take over my addons contact me at 10leej@gmail.com
10leej is offline Report comment to moderator  
Reply With Quote
Unread 05-09-14, 02:45 AM  
10leej
A Scalebane Royal Guard
 
10leej's Avatar
AddOn Author - Click to view AddOns

Forum posts: 428
File comments: 324
Uploads: 18
Originally Posted by Phanx
Regarding localization, you can use existing global strings for almost everything. In the order they appear in the code:
  • (nothing for "MicroMenu")
  • CHARACTER
  • SPELLBOOK
  • TALENTS
  • INVENTORY_TOOLTIP
  • ACHIEVEMENTS
  • QUESTLOG_BUTTON
  • FRIENDS
  • GUILD
  • GROUP_FINDER (says "Dungeon Finder" instead of "Group Finder")
  • PLAYER_V_PLAYER
  • ENCOUNTER_JOURNAL
  • MOUNTS
  • PETS
  • (nothing for "Calendar" oddly enough, though you did typo it with an "-er" )
  • BLIZZARD_STORE (says "Shop" instead of "Store" but that's how Blizzard prefers to refer to it)
  • GAMEMENU_HELP
  • BATTLEFIELD_MINIMAP (says "Zone Map" instead of "Battlefield Map" but the feature isn't actually specific to battlegrounds; you can use it anywhere)
  • MAINMENU_BUTTON
  • SYSTEMOPTIONS_MENU
  • UIOPTIONS_MENU
  • MACROS
  • KEY_BINDINGS
  • LOGOUT
  • QUIT

I also took the liberty of borrowing translations for the missing items from other addons for you:

Code:
local MICRO_MENU, CALENDAR = "MicroMenu", "Calendar"
local GAME_LOCALE = GetLocale()
if GAME_LOCALE == "deDE" then
	MICRO_MENU, CALENDAR = "Mikromenü", "Kalender"
elseif GAME_LOCALE == "esES" or GAME_LOCALE == "esMX" then
	MICRO_MENU, CALENDAR = "Micro menú", "Calendario"
elseif GAME_LOCALE == "frFR" then
	MICRO_MENU, CALENDAR = "Micro menu", "Calendrier"
elseif GAME_LOCALE == "itIT" then
	MICRO_MENU, CALENDAR = "Micro menu", "Calendario"
elseif GAME_LOCALE == "ptBR" then
	MICRO_MENU, CALENDAR = "Mini Menu", "Calendário"
elseif GAME_LOCALE == "ruRU" then
	MICRO_MENU, CALENDAR = "Микроменю", "Календарь"
elseif GAME_LOCALE == "koKR" then
	MICRO_MENU, CALENDAR = "게임 메뉴", "달력"
elseif GAME_LOCALE == "zhCN" then
	MICRO_MENU, CALENDAR = "微型主菜单", "日历"
elseif GAME_LOCALE == "zhTW" then
	MICRO_MENU, CALENDAR = "微型選單", "曆"
end
Thank you kindly, never actually setup localizations before, I have looked at the guide you made just never got aroud to setting it all up.

In the current release version, clicking always toggles the normal game menu, because you're checking the button argument against a MouseButton variable that you don't define anywhere, and isn't defined anywhere in the default UI either, and the button will never be nil, so that check will never pass.
Thats already gone in the "I have yet to release" version. Dunno why I ever set it up like that. Might've been alcohol induced.

EDIT:
Just released that version it's now referred to as 2.5
/EDIT

Finally, you may want to include a button for the Mac Options window for Mac users; the default UI shows it after the Interface button on the game menu. The Korean client has an additional Ratings button on the game menu, though that seems to be pure legal ass-covering without any actual purpose to its existence so I think it's safe to leave that out.

Code:
if IsMacClient() then
	local t = {
		text = MAC_OPTIONS,
		func = function()
			ShowUIPanel(MacOptionsFrame)
		end,
		notCheckable = true,
	}
	tinsert(menuList, t, 22)
end
I'm actually going to remove the game menu options. Only ones staying are Logout, and Quit as the list itself is getting a little long for my own tastes.

Also the reason it says "MouseButton" is because there's a config option on top to change the button
__________________
Addons: The "Almost" Definitive Guide Shave Time Shave Money Tweets Website
Looking for people to take over my addons contact me at 10leej@gmail.com
Last edited by 10leej : 05-09-14 at 04:11 AM.
10leej is offline Report comment to moderator  
Reply With Quote
Unread 05-09-14, 12:20 AM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4283
File comments: 1961
Uploads: 40
Regarding localization, you can use existing global strings for almost everything. In the order they appear in the code:
  • (nothing for "MicroMenu")
  • CHARACTER
  • SPELLBOOK
  • TALENTS
  • INVENTORY_TOOLTIP
  • ACHIEVEMENTS
  • QUESTLOG_BUTTON
  • FRIENDS
  • GUILD
  • GROUP_FINDER (says "Dungeon Finder" instead of "Group Finder")
  • PLAYER_V_PLAYER
  • ENCOUNTER_JOURNAL
  • MOUNTS
  • PETS
  • (nothing for "Calendar" oddly enough, though you did typo it with an "-er" )
  • BLIZZARD_STORE (says "Shop" instead of "Store" but that's how Blizzard prefers to refer to it)
  • GAMEMENU_HELP
  • BATTLEFIELD_MINIMAP (says "Zone Map" instead of "Battlefield Map" but the feature isn't actually specific to battlegrounds; you can use it anywhere)
  • MAINMENU_BUTTON
  • SYSTEMOPTIONS_MENU
  • UIOPTIONS_MENU
  • MACROS
  • KEY_BINDINGS
  • LOGOUT
  • QUIT

I also took the liberty of borrowing translations for the missing items from other addons for you:

Code:
local MICRO_MENU, CALENDAR = "MicroMenu", "Calendar"
local GAME_LOCALE = GetLocale()
if GAME_LOCALE == "deDE" then
	MICRO_MENU, CALENDAR = "Mikromenü", "Kalender"
elseif GAME_LOCALE == "esES" or GAME_LOCALE == "esMX" then
	MICRO_MENU, CALENDAR = "Micro menú", "Calendario"
elseif GAME_LOCALE == "frFR" then
	MICRO_MENU, CALENDAR = "Micro menu", "Calendrier"
elseif GAME_LOCALE == "itIT" then
	MICRO_MENU, CALENDAR = "Micro menu", "Calendario"
elseif GAME_LOCALE == "ptBR" then
	MICRO_MENU, CALENDAR = "Mini Menu", "Calendário"
elseif GAME_LOCALE == "ruRU" then
	MICRO_MENU, CALENDAR = "Микроменю", "Календарь"
elseif GAME_LOCALE == "koKR" then
	MICRO_MENU, CALENDAR = "게임 메뉴", "달력"
elseif GAME_LOCALE == "zhCN" then
	MICRO_MENU, CALENDAR = "微型主菜单", "日历"
elseif GAME_LOCALE == "zhTW" then
	MICRO_MENU, CALENDAR = "微型選單", "曆"
end
Unrelated:

In the current release version, clicking always toggles the normal game menu, because you're checking the button argument against a MouseButton variable that you don't define anywhere, and isn't defined anywhere in the default UI either, and the button will never be nil, so that check will never pass.

Assuming you meant that MouseButton variable to be a "RightMouseButton" string, unconditionally toggling the normal game menu on all other types of clicks is probably not a good idea, as this breaks ping functionality, and any other special click features added by other addons. There doesn't seem to be any point in having any game menu toggle when all of the game menu items are included in the right-click menu, but if you want to offer it, you should use a modifier, eg. shift-click, so that left-click triggers a ping as usual.

There's no need to check if the mouse is over the Minimap... if the Minimap is receiving an mouse event, the mouse is over the Minimap, period. If you press a mouse button while over a frame, move the cursor off the frame, and release, no OnMouseUp event is fired for that or any other frame; this is probably an intentional "safety" feature to let you cancel a click in progress.

The tooltip is a bit confusing. For one, it appears up to the right of the minimap, so it's not immediately obvious what it's there for, especially when it just says "Game Menu". A specific description of an action would probably be more useful, eg. "Right-click to toggle the game menu." but I'd just get rid of it entirely, since as soon as you mouse over a tracking blip it's gone and doesn't come back until you move the mouse off and back onto the minimap.

Finally, you may want to include a button for the Mac Options window for Mac users; the default UI shows it after the Interface button on the game menu. The Korean client has an additional Ratings button on the game menu, though that seems to be pure legal ass-covering without any actual purpose to its existence so I think it's safe to leave that out.

Code:
if IsMacClient() then
	local t = {
		text = MAC_OPTIONS,
		func = function()
			ShowUIPanel(MacOptionsFrame)
		end,
		notCheckable = true,
	}
	tinsert(menuList, t, 22)
end
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 12-24-13, 02:09 PM  
10leej
A Scalebane Royal Guard
 
10leej's Avatar
AddOn Author - Click to view AddOns

Forum posts: 428
File comments: 324
Uploads: 18
Originally Posted by Imithat
Nice Addon dude,

I was so free and translated it into German

core.lua
http://sdrv.ms/1eCqxxj
Kool I'll see about coming up with localizations.
__________________
Addons: The "Almost" Definitive Guide Shave Time Shave Money Tweets Website
Looking for people to take over my addons contact me at 10leej@gmail.com
Last edited by 10leej : 12-24-13 at 09:15 PM.
10leej is offline Report comment to moderator  
Reply With Quote
Unread 12-24-13, 08:49 AM  
Imithat
A Deviate Faerie Dragon
 
Imithat's Avatar
AddOn Author - Click to view AddOns

Forum posts: 16
File comments: 147
Uploads: 5
Nice Addon dude,

I was so free and translated it into German

core.lua
http://sdrv.ms/1eCqxxj
Imithat is offline Report comment to moderator  
Reply With Quote
Unread 12-24-13, 01:22 AM  
10leej
A Scalebane Royal Guard
 
10leej's Avatar
AddOn Author - Click to view AddOns

Forum posts: 428
File comments: 324
Uploads: 18
Originally Posted by MegaSNESX
Originally Posted by 10leej
Originally Posted by MegaSNESX
Is there any possibilty that you will make it show "Inventory" aswell? I know I could just press "B", but hey! If you can it would be awesome!
Thats actually already in the next update. Just haven't released it because I'm doin stuff with minimap buttons still.
Awesome!
Added with 2.3 no change to minimap buttons because I couldn't get it the way I wanted.
__________________
Addons: The "Almost" Definitive Guide Shave Time Shave Money Tweets Website
Looking for people to take over my addons contact me at 10leej@gmail.com
10leej is offline Report comment to moderator  
Reply With Quote
Unread 12-20-13, 05:55 AM  
MegaSNESX
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Originally Posted by 10leej
Originally Posted by MegaSNESX
Is there any possibilty that you will make it show "Inventory" aswell? I know I could just press "B", but hey! If you can it would be awesome!
Thats actually already in the next update. Just haven't released it because I'm doin stuff with minimap buttons still.
Awesome!
MegaSNESX is offline Report comment to moderator  
Reply With Quote
Unread 12-18-13, 12:53 PM  
10leej
A Scalebane Royal Guard
 
10leej's Avatar
AddOn Author - Click to view AddOns

Forum posts: 428
File comments: 324
Uploads: 18
Originally Posted by MegaSNESX
Is there any possibilty that you will make it show "Inventory" aswell? I know I could just press "B", but hey! If you can it would be awesome!
Thats actually already in the next update. Just haven't released it because I'm doin stuff with minimap buttons still.
__________________
Addons: The "Almost" Definitive Guide Shave Time Shave Money Tweets Website
Looking for people to take over my addons contact me at 10leej@gmail.com
Last edited by 10leej : 12-18-13 at 12:54 PM.
10leej is offline Report comment to moderator  
Reply With Quote
Unread 12-18-13, 11:37 AM  
MegaSNESX
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Is there any possibilty that you will make it show "Inventory" aswell? I know I could just press "B", but hey! If you can it would be awesome!
MegaSNESX is offline Report comment to moderator  
Reply With Quote
Unread 12-17-13, 05:44 PM  
10leej
A Scalebane Royal Guard
 
10leej's Avatar
AddOn Author - Click to view AddOns

Forum posts: 428
File comments: 324
Uploads: 18
__________________
Addons: The "Almost" Definitive Guide Shave Time Shave Money Tweets Website
Looking for people to take over my addons contact me at 10leej@gmail.com
10leej is offline Report comment to moderator  
Reply With Quote
Unread 12-16-13, 08:54 PM  
10leej
A Scalebane Royal Guard
 
10leej's Avatar
AddOn Author - Click to view AddOns

Forum posts: 428
File comments: 324
Uploads: 18
Originally Posted by MegaSNESX
Pretty cool Addon thanks for making it!
np
__________________
Addons: The "Almost" Definitive Guide Shave Time Shave Money Tweets Website
Looking for people to take over my addons contact me at 10leej@gmail.com
10leej is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: