Would we get support for /rt (/retell), this is how Confab does it:
function Confab_ReTell()
local LastSentTellTarget = ChatEdit_GetLastToldTarget(ChatFrameEditBox);
if (LastSentTellTarget) then
ChatFrameEditBox:SetAttribute("tellTarget", LastSentTellTarget);
ChatFrameEditBox:SetAttribute("chatType", "WHISPER");
ChatEdit_UpdateHeader(ChatFrameEditBox);
ChatFrame_OpenChat("");
end
end
function Prat_Justify:MoveLink(coeff, ...)
for i=1,select("#", ...) do
local o = select(i, ...)
a,b,c,d,e = o:GetPoint()
if b and b:GetObjectType() == "FontString" and o:GetObjectType() == "Button" then
o:ClearAllPoints()
p = (b:GetWidth()-b:GetStringWidth())/coeff+d/coeff
o:SetPoint(a, b, c, p, e)
DEFAULT_CHAT_FRAME:AddMessage(" ...Result: " .. (b:GetWidth()-b:GetStringWidth())/coeff+d/coeff .. " ...Window width: " .. b:GetWidth() .. " ...string width: " .. b:GetStringWidth() .. " ...d:" .. d .. " ...p: " .. p, 1, 1, 1);
end
end
end
Ends up with a never ending accumulation
but if I put clearallpoints right after the setpoint it does it once. I am not sure what that function does since its not on wowwiki
d is probably a negative number, the chatframes werent designed for aligning right or center, so itemlinks are in the wrong location the x position "d" in the code is incorrect. So i discard it and try to realign with the start of the line.
To do what you mention, you first have to understand what the blizzard code is doing to generate the erroneous x position, then correct for that. I
Prats colors come from Babble-Class, which gets them from the wow defaults. I am sure someone clever has already written something so you can change the colors.
d is probably a negative number, the chatframes werent designed for aligning right or center, so itemlinks are in the wrong location the x position "d" in the code is incorrect. So i discard it and try to realign with the start of the line.
To do what you mention, you first have to understand what the blizzard code is doing to generate the erroneous x position, then correct for that. I
Thats what is happening when you get the frame width subtracting the string size and then subtracting the initial adjustment (and dividing in half if the string is centered).
That does not address the update issue with clearallpoints.
Prat-2.0 Beta 2 26930.27520\\extras\\util.lua:392: attempt to perform arithmetic on field 'r' (a nil value)\n(tail call): ?:\nSpamSentry\\core.lua:340: in function `CallChatEvent'\nSpamSentry\\core.lua:240: in function <Interface\\AddOns\\SpamSentry\\core.lua:210>\n(tail call): ?:\nInterface\\FrameXML\\ChatFrame.lua:2090: in function <Interface\\FrameXML\\ChatFrame.lua:2083>:\n(tail call): ?:\nPartyAlert\\PartyAlert.lua:25: in function <Interface\\AddOns\\PartyAlert\\PartyAlert.lua:24>\n<in C code>: in function `ChatFrame_OnEvent'\n<string>:\"ChatFrame1:OnEvent\":2: in function <[string \"ChatFrame1:OnEvent\"]:1>\n\n ---",
It would appear Prat and SpamSentry are fighting now...
Now an issue on Google code..
It seems some aAddons add to the issue, but not cause it. A friend has the same version ( Thank you, SpyGnome!) and has no problems.
Resolved: This is an incompatibility with PhanxChat.
----------------------------------------------------
Any time anyone links an item(guildmate in /g, self in /g, self in /say, etc) in chat, the name of the item is replaced with the player's name, in class color. The name is still clickable, and still pulls up the right popup/tooltip thingy, but I can't know what I'm clicking on until I click it.
I'm using whatever Prat version was on the AceUpdater at about 11am today(Saturday).
(Just ran AceUpdater: Prat - Already at rev 27684 - Skipping)
If a screenshot would help, or if this is more likely to get help elsewhere, say the word.
----------------------------------------------------
Thanks,
duckilama
i used chatbox for a while before i used this mod,prat is a much better mod,but one feature of chatbox i miss is that it would shrink enchanter adds into a clickable link,also would do the same for guild recruiting adds and bs ect,anyway would love it if this feature was added to prat,maybe add user configureable words to trigger on,this is a link to chatbox for ideas
i used chatbox for a while before i used this mod,prat is a much better mod,but one feature of chatbox i miss is that it would shrink enchanter adds into a clickable link,also would do the same for guild recruiting adds and bs ect,anyway would love it if this feature was added to prat,maybe add user configureable words to trigger on,this is a link to chatbox for ideas
I ported the ChatSounds module that is on the svn to integrate into Prat's framework, its called "Sounds"
Also, I finally added the outbound text core code. So I added a new module "Substitutions" which uses it.
It adda a bunch of %X format specifiers you can use in text or macros. I got the list from chatframextender2.
* %hc = your current health
* %hm = your max health
* %hp = your percentage health
* %mc = your current mana
* %mm = your max mana
* %mp = your percentage mana
* %thp = target's percentage health
* %tc = class of target
* %tr = race of target
* %ts = sex of target
* %tl = level of target
* %tps = possesive for target (his/hers/its)
* %tpn = pronoun for target (him/her/it)
* %zon = your current zone (Dun Morogh, Hellfire Peninsula, etc.)
* %loc = your current subzone (as shown on the minimap)
* %pos = your current coordinates (x,y)
There are alot of cool mods i have thought about adding, like a link for TLOC's so when you see 23,42 its clickable. But im keeping it to a minimum.
I am not adding some of the other features i had planned since Prat gets so much bad PR for doing 'too much', and i cant get much buy in from other chatmod authors - developers usually dont like to collaborate. So once we get these latest changes out into the field we hit our Beta 3 milestone, and its time to start looking at releasing a beta version of Prat to the main addon sites.
We need lots of help updating documentation both for end users and developers. if you have the time please contribute to the documentation effort.
I would love to see a feature added that is like System Message Control Tool. I believe that it makes Prat unhappy so I stopped using it. Here is the link of the mod. http://ui.worldofwar.net/ui.php?id=1596. Thanks!
d is probably a negative number, the chatframes werent designed for aligning right or center, so itemlinks are in the wrong location the x position "d" in the code is incorrect. So i discard it and try to realign with the start of the line.
To do what you mention, you first have to understand what the blizzard code is doing to generate the erroneous x position, then correct for that. I
Thats what is happening when you get the frame width subtracting the string size and then subtracting the initial adjustment (and dividing in half if the string is centered).
That does not address the update issue with clearallpoints.
Well I am still working on it but I was able to make a temporary fix by checking if the button was anchored topleft then fixing the points to anchor topright.
I am looking for information on the frame vs font justification and looking for a better solution ie one that doesnt have to be done on every update.
Aww, I'd love that location function. To those who complain about Prat doing too much, they do realize that the whole thing is modular and that any two random chat mods are likely to tear eachother to shreds ><.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Do you mean what's built-in to WoW as SHIFT-R?
[You whisper to John] Hi
[Billy Whispers to you] Umm Hi
/rt
[You whisper to john]
rather than whispering to Billy
d is probably a negative number, the chatframes werent designed for aligning right or center, so itemlinks are in the wrong location the x position "d" in the code is incorrect. So i discard it and try to realign with the start of the line.
To do what you mention, you first have to understand what the blizzard code is doing to generate the erroneous x position, then correct for that. I
Tada! <:)) ClassColors (Ace2!)
Thats what is happening when you get the frame width subtracting the string size and then subtracting the initial adjustment (and dividing in half if the string is centered).
That does not address the update issue with clearallpoints.
It would appear Prat and SpamSentry are fighting now...
Now an issue on Google code..
It seems some aAddons add to the issue, but not cause it. A friend has the same version ( Thank you, SpyGnome!) and has no problems.
----------------------------------------------------
Any time anyone links an item(guildmate in /g, self in /g, self in /say, etc) in chat, the name of the item is replaced with the player's name, in class color. The name is still clickable, and still pulls up the right popup/tooltip thingy, but I can't know what I'm clicking on until I click it.
I'm using whatever Prat version was on the AceUpdater at about 11am today(Saturday).
(Just ran AceUpdater: Prat - Already at rev 27684 - Skipping)
If a screenshot would help, or if this is more likely to get help elsewhere, say the word.
----------------------------------------------------
Thanks,
duckilama
http://ui.worldofwar.net/ui.php?id=1819
thnx
with prat enable my adapt (animation portrait) class-backround color doesnt work anymore... any fixes for it?
Prat has a generic search/replace fucntionality built in, This would be an easy module for someone to make IMO.
On load Prat spams this debug message to default chat frame:
- GUILD: 1
how to remove it?
Also, I finally added the outbound text core code. So I added a new module "Substitutions" which uses it.
It adda a bunch of %X format specifiers you can use in text or macros. I got the list from chatframextender2.
* %hc = your current health
* %hm = your max health
* %hp = your percentage health
* %mc = your current mana
* %mm = your max mana
* %mp = your percentage mana
* %thp = target's percentage health
* %tc = class of target
* %tr = race of target
* %ts = sex of target
* %tl = level of target
* %tps = possesive for target (his/hers/its)
* %tpn = pronoun for target (him/her/it)
* %zon = your current zone (Dun Morogh, Hellfire Peninsula, etc.)
* %loc = your current subzone (as shown on the minimap)
* %pos = your current coordinates (x,y)
There are alot of cool mods i have thought about adding, like a link for TLOC's so when you see 23,42 its clickable. But im keeping it to a minimum.
I am not adding some of the other features i had planned since Prat gets so much bad PR for doing 'too much', and i cant get much buy in from other chatmod authors - developers usually dont like to collaborate. So once we get these latest changes out into the field we hit our Beta 3 milestone, and its time to start looking at releasing a beta version of Prat to the main addon sites.
We need lots of help updating documentation both for end users and developers. if you have the time please contribute to the documentation effort.
If you fix it please post your fix.
I am looking for information on the frame vs font justification and looking for a better solution ie one that doesnt have to be done on every update.