Go Back   WowAce Forums > Official Addon Threads > General AddOns
General AddOns Authors, post your release ready addons here to get feedback or just to let everyone know about it.

Reply
 
Thread Tools
Old 01-27-2009   #51
Gabriel
Senior Member
 
Join Date: Feb 2005
Posts: 338
Default Re: PlayerMenu (orig: AcePlayerMenu)

Fix for locales.. Replace ALL code in your Locale.enUS.lua with the code below.


Code:
local L = LibStub("AceLocale-3.0"):NewLocale("PlayerMenu","enUS",true)
L["Left Button Menu"] = true
L["Mouse left click to show menu"] = true

L["Use Focus to Cast"] = true
L["Use focus feature to cast spell instead of using target."] = true

L["Extend Menu Hide Delay"] = true
L["Set extend menu auto hide delay time."] = true

L["Clear Target After Cast"] = true

L["Reset"] = true
L["ResetDB_Confirm"] = true
L["All settings are reset to default value."] = true

L["GUILD_INVITE"] = "Guild Invite"
L["ADD_FRIEND"] = TEXT(ADD_FRIEND)
L["GET_NAME"] = "Get Player Name"
L["WHO"] = TEXT(WHO)
L["EXTMENU"] = "Extended Menu"

L["Set Target"] = true
L["Set Focus"] = true
Gabriel is offline   Reply With Quote
Old 01-27-2009   #52
csun
Member
 
Join Date: Nov 2008
Posts: 18
Default Re: PlayerMenu (orig: AcePlayerMenu)

Thx for the patch @gabriel !

UPDATE :

seems the patch causes following lua error (posted in the addon help section alrdy)

Quote:
Date: 2009-01-27 13:40:40
ID: 1
Error occured in: Global
Count: 1
Message: [string "PMEM_Frame_Button1:OnLoad"] line 1:
Usage: PMEM_Frame_Button1:HookScript("type", function)
Debug:
[C]: ?
[C]: HookScript()
[string "*:OnLoad"]:1:
[string "*:OnLoad"]:1

Last edited by csun; 01-27-2009 at 04:03 PM.
csun is offline   Reply With Quote
Old 01-28-2009   #53
Phanx
Seal Cub Clubbing Club
 
Phanx's Avatar
 
Join Date: May 2005
Posts: 5,576
Send a message via AIM to Phanx Send a message via MSN to Phanx Send a message via Yahoo to Phanx
Default Re: PlayerMenu (orig: AcePlayerMenu)

The only thing you need to change is this:

getglobal(UIDROPDOWNMENU_INIT_MENU)

to this:

UIDROPDOWNMENU_INIT_MENU

There are two instances of this in PlayerMenu.lua, so just search-and-replace.
Phanx is offline   Reply With Quote
Old 01-29-2009   #54
csun
Member
 
Join Date: Nov 2008
Posts: 18
Default Re: PlayerMenu (orig: AcePlayerMenu)

@Phanx : what code to edit ur referencing ?
http://www.wowace.com/projects/proje...menu-r70839-5/ ?

summing it up :

editing the version above + taking gabriels locale fix seems to remove my above posted lua error.

the only thing thats still buggy is the EXTMENU entry, nothing shows up but spellicons left to the dropdownwindow that pops when u click the extmenue entry. maybe due to spell.lua entries outdated ?

since i dont need the extmenue anyway, is there an easy way to just remove it from the dropdown menu ?

Last edited by csun; 01-29-2009 at 05:48 AM.
csun is offline   Reply With Quote
Old 01-29-2009   #55
Gabriel
Senior Member
 
Join Date: Feb 2005
Posts: 338
Default Re: PlayerMenu (orig: AcePlayerMenu)

AttAched is a working copy of Playermenu for 3.0.8a

I stripped out all the casting code leaving just the menu.
Attached Files
File Type: zip PlayerMenu.zip (9.7 KB, 102 views)
Gabriel is offline   Reply With Quote
Old 01-29-2009   #56
csun
Member
 
Join Date: Nov 2008
Posts: 18
Default Re: PlayerMenu (orig: AcePlayerMenu)

Update : just removed the ExtMenu.xml and all is working fine -> referring to gabriels earlier posted code (Playermenue.lua and Locale.enUS.lua)
csun is offline   Reply With Quote
Old 01-29-2009   #57
Gabriel
Senior Member
 
Join Date: Feb 2005
Posts: 338
Default Re: PlayerMenu (orig: AcePlayerMenu)

Quote:
Originally Posted by csun View Post
Update : just removed the ExtMenu.xml and all is working fine -> referring to gabriels earlier posted code (Playermenue.lua and Locale.enUS.lua)
Guess I should have just sent the zip in the first place, I am just lazy like that. But yes I stripped out all the casting code because it was not needed and was alot of bloat for what this addon does.
Gabriel is offline   Reply With Quote
Old 01-29-2009   #58
csun
Member
 
Join Date: Nov 2008
Posts: 18
Default Re: PlayerMenu (orig: AcePlayerMenu)

Update 2 : gabriels posted zip is working , kinda that what i just was looking for, thx !

PS : Dont forget to DELETE the PlayerMenue Folder before unzipping this one, because just unzipping wont delete the old ExtMenue.xml and Spell.lua

PPS : maybe u need to keep the old LIBs folder due to the ace stuff (*shrug*)

Last edited by csun; 01-29-2009 at 06:20 AM.
csun is offline   Reply With Quote
Old 01-29-2009   #59
Gabriel
Senior Member
 
Join Date: Feb 2005
Posts: 338
Default Re: PlayerMenu (orig: AcePlayerMenu)

Quote:
Originally Posted by csun View Post
Update 2 : gabriels posted zip is working , kinda that what i just was looking for, thx !

PS : Dont forget to DELETE the PlayerMenue Folder before unzipping this one, because just unzipping wont delete the old ExtMenue.xml and Spell.lua

PPS : maybe u need to keep the old LIBs folder due to the ace stuff (*shrug*)
I run everything disembedded, so you get what I give cause I am not officially supporting this mod

I just threw you guys a bone cause so many was wanting this functional.
Gabriel is offline   Reply With Quote
Old 01-29-2009   #60
csun
Member
 
Join Date: Nov 2008
Posts: 18
Default Re: PlayerMenu (orig: AcePlayerMenu)

Quote:
Originally Posted by Gabriel View Post
I run everything disembedded, so you get what I give cause I am not officially supporting this mod

I just threw you guys a bone cause so many was wanting this functional.
its more then fine, doesnt hurt ppl to use their brain sometimes here and there

thx again for ur help, addon is running fine now = more then i expected when i first found this thread
csun is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 04:10 PM.