WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Search/Requests (https://www.wowinterface.com/forums/forumdisplay.php?f=6)
-   -   Chat bubble font outline (https://www.wowinterface.com/forums/showthread.php?t=55951)

warcry16 01-04-18 08:34 AM

Chat bubble font outline
 
Hey guys,

is it possible to have a outline in the font for the chat bubbles?
Right now it looks like this for me:


[/quote]


I removed the background from the chat bubble,
but it is very hard to see the chat in raids etc.

If someone could help me here I would be very thankful :)

Fizzlemizz 01-04-18 06:01 PM

Once you have the frame (bubbleframe here) you can use:
Lua Code:
  1. for i = 1, select("#", bubbleframe:GetRegions()) do
  2.     local region = select(i, bubbleframe:GetRegions())
  3.     if region:GetObjectType() == "FontString" then
  4.         region:SetShadowOffset(2, -2)
  5.     end
  6. end

Personally I can't figure out when/why the system will use protected chat bubble frames or not.

briskman3000 01-04-18 09:02 PM

Quote:

Originally Posted by Fizzlemizz (Post 326359)
Personally I can't figure out when/why the system will use protected chat bubble frames or not.

From my understanding, the chat bubbles become protected at the same time the friendly nameplates do.

Fizzlemizz 01-04-18 09:39 PM

Quote:

Originally Posted by briskman3000 (Post 326363)
From my understanding, the chat bubbles become protected at the same time the friendly nameplates do.

Too much time since WOD, the Garrison is an instance where Class Halls aren't /facepalm, thank you.

warcry16 01-05-18 11:26 AM

Quote:

Originally Posted by Fizzlemizz (Post 326359)
Once you have the frame (bubbleframe here) you can use:
Lua Code:
  1. for i = 1, select("#", bubbleframe:GetRegions()) do
  2.     local region = select(i, bubbleframe:GetRegions())
  3.     if region:GetObjectType() == "FontString" then
  4.         region:SetShadowOffset(2, -2)
  5.     end
  6. end

Personally I can't figure out when/why the system will use protected chat bubble frames or not.

How exactly do I insert this , do I make a new lua file and just make it an addon ? Or something else? Very new to these kind of things. Thanks for the help :)

edit: I don't really want to open another thread for little ui questions, but is it possible to move the dot icons on the nameplates further down? On my nameplates they are way to far above:

https://i.imgur.com/GzrYSKn.png

If there is another command for this , that would make my day :D !

Fizzlemizz 01-05-18 11:43 AM

You said "I removed the background from the chat bubble" so I assume you wrote the code to do it.

You would insert it just after the code where you removed the backdrop.

You would have something like
Code:

frame:SetBackdrop(nil)
The label "frame" might be different.

Insert the code just after that line changing "bubbleframe" to whatever the "frame" label is in your code.

warcry16 01-05-18 11:47 AM

Quote:

Originally Posted by Fizzlemizz (Post 326367)
You said "I removed the background from the chat bubble" so I assume you wrote the code to do it.

You would insert it just after the code where you removed the backdrop.

You would have something like
Code:

frame:SetBackdrop(nil)
The label "frame" might be different.

Insert the code just after that line changing "bubbleframe" to whatever the "frame" label is in your code.

I actually didn't ^^, I downloaded 3 files named:
ChatBubble-Tail.blp
ChatBubble-Background.blp
ChatBubble-Backdrop.blp

and put them inside interface/Tooltips

so should I edit one of these files?

Fizzlemizz 01-05-18 01:24 PM

As mentioned above, the chatbubbles used in instances are protected so this aproach won't work there, my bad.

Ammako 01-05-18 02:50 PM

Quote:

Originally Posted by warcry16 (Post 326366)
edit: I don't really want to open another thread for little ui questions, but is it possible to move the dot icons on the nameplates further down? On my nameplates they are way to far above:

https://i.imgur.com/GzrYSKn.png

If there is another command for this , that would make my day :D !

Try

lua Code:
  1. hooksecurefunc(NameplateBuffContainerMixin, "UpdateAnchor", function(self)
  2.     self:SetPoint("BOTTOM", self:GetParent(), "TOP", 0, targetYOffset);
  3. end)

warcry16 01-05-18 05:02 PM

Quote:

Originally Posted by Ammako (Post 326371)
Try

lua Code:
  1. hooksecurefunc(NameplateBuffContainerMixin, "UpdateAnchor", function(self)
  2.     self:SetPoint("BOTTOM", self:GetParent(), "TOP", 0, targetYOffset);
  3. end)

edit:

ok found how to make a lua file and a toc file, this worked . Thank you very much for your help :)

warcry16 01-05-18 06:44 PM

Quote:

Originally Posted by Fizzlemizz (Post 326370)
As mentioned above, the chatbubbles used in instances are protected so this aproach won't work there, my bad.

Are you sure though?

Somone I watch has these in dungeon and raids:


https://i.imgur.com/riDKY6H.png

https://i.imgur.com/8AfaWZz.png

they are clearly outlined, he uses elvui . Is there a way to just copy the settings without using elvui?

Fizzlemizz 01-05-18 07:34 PM

I don't see anything that looks like chat bubble text, it appears to be combat text although the second image is a bit hard to see much.

warcry16 01-05-18 08:03 PM

Quote:

Originally Posted by Fizzlemizz (Post 326380)
I don't see anything that looks like chat bubble text, it appears to be combat text although the second image is a bit hard to see much.

I actually just downloaded Elvui and literally disabled everything except the chat^^ and it works :D

https://i.imgur.com/FtjzTbS.png

I guess ill just play like this :P


All times are GMT -6. The time now is 04:03 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI