Change HighlightFont
Hi,
how can I Change the "HighlightFont" which is set in the XML in lua? In XML: <HighlightFont style="GameFontHighlight"/> Need to Change the HighliteFont for a Default Blizzard button into black Thanks. |
Code:
local highlight=Button:GetHighlightFontObject(); Code:
Button:GetHighlightFontObject():SetTextColor(0,0,0); |
Thanks.
But the text is changing into White: THis is the Blizzard Code: Code:
<Button name="StaticPopupButtonTemplate" virtual="true"> And this is what I have done with the button: Code:
_G["StaticPopup" .. i .. "Button" .. ii]:SetNormalTexture("Interface\\AddOns\\GW2_UI\\textures\\button") Image But it should stay black |
Ignore the following if you did mean the font itself and not the image.
It looks like someone years back had a similar problem and posted the query on another site and got an answer .. https://www.mmo-champion.com/threads...-on-mouse-over This is the actual line of code to change the color of the image .. set these to 0,0,0 for black button3:GetNormalTexture():SetVertexColor(r, g, b); What you changed in your code to 0,0,0 is the font text and not the image itself. So you may want to revert that back to what it was so that you can see the writing properly. Give that a go and let us know how you eventually got it working ( if you did that is ) |
Thanks, that was the perfect hint :)
Added the vertex color and add a Owen onenter and in leave script. Works perfect :) |
All times are GMT -6. The time now is 12:31 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI