Jump to content
Sign in to follow this  
Volts

Need Help Changing a Texture

Recommended Posts

Hey all, I've been building my UI for upcoming launch.

 

I'm a bit anal when it comes to things, so I have been going through and modifying a bunch of textures in certain addons and what not.

 

 

Usually this just involves renaming a .tga file and then your done, however with KTM threat meter, I can't figure out how to modify the bar textures, they look pretty ugly as they are. 

 

To see what I mean, here is my UI,

 

 

 

vZMhlOG.jpg

 

What I would like is for the red bar in KTM to be the same texture as everything else. I have included both the texture and AddOn below.

 

Texture: https://drive.google.com/open?id=0B8Bcvjkn6UtxZjRSbEJaYnlFMGM

Addon: https://drive.google.com/open?id=0B8Bcvjkn6UtxTjN4aEFkMVpYeDg

 

 

If anyone could instruct me on how to do this or do it an upload it for me, I would very much appreciate it.

 

 

Thanks in advance

 

 

- Volts

 

Share this post


Link to post
Share on other sites

Hey OP, i'm afraid i dont' know much about manual minipulation of addons or files, however i may be able to guide to toward some help. Nostalrius's website is still up, heck i'll bet the forums are still active. If you can't find info in their Addons Section of the forums then you're sure to find someone that can there.

Share this post


Link to post
Share on other sites

If you ever need to figure out what .blp to replace, I highly recommend using http://www.wowinterface.com/downloads/info16700-BLPView.html since it gives .blp files preview icons in windows explorer. If you need to actually edit them, the best way is to use https://mods.curse.com/addons/wow/photoshop-blp-format-plugin

Edited by Aero

Share this post


Link to post
Share on other sites

Place BarTexture.tga in KLHThreatMeter\Images\

 

Modifiy with a text editor KLHThreatMeter\Code\KTM_Frame.xml and KLHThreatMeter\Code\GUI\KTM_Frame.xml lines 213 and 268  (or search for UI-StatusBar ), replace

                <Texture name="$parentBar" file="Interface\TargetingFrame\UI-StatusBar">

with

                <Texture name="$parentBar" file="Interface\Addons\KLHThreatMeter\Images\BarTexture">
Edited by Xyf

Share this post


Link to post
Share on other sites

 

Place BarTexture.tga in KLHThreatMeter\Images\

 

Modifiy with a text editor KLHThreatMeter\Code\KTM_Frame.xml and KLHThreatMeter\Code\GUI\KTM_Frame.xml lines 213 and 268  (or search for UI-StatusBar ), replace

                <Texture name="$parentBar" file="Interface\TargetingFrame\UI-StatusBar">

with

                <Texture name="$parentBar" file="Interface\Addons\KLHThreatMeter\Images\BarTexture">

 

 

This worked, thanks a ton Xyf!

Share this post


Link to post
Share on other sites

One more nit-picky thing,

 

is there a way to change the title bar at the tops texture and color match the one i have for swstats? I also want to remove the border around KTM.

 

lZINGYo.jpg

 

It's the same texture file. 

 

Let me know.

 

 

Thanks a ton guys.

Share this post


Link to post
Share on other sites

Same way as you replaced the other one. Figure out which texture is the title bar, then replace it manually by renaming your new texture and deleting the old one or by changing the code like Xyf suggested to use your new texture.

 

Just open up the .tga files and look for the one that's the title bar you want to replace. Same goes for the border, al though I don't see anything that looks like a border.tga so it might not be possible to remove the border without removing the entire background too. (since they're probably the same texture).

 

 

Edit: Went through the .tga files, none of them appear to be the background or the border, which will make things a little more difficult. Looks like you'll have to dig through the .xml or .lua files to sort it out.

Edited by euron

Share this post


Link to post
Share on other sites

Can't seem to get the blending as the other one, send me the other addon to see how it is on there. Also the buttons would need some changes, they are square with no transparency. (on black it's ok, but if the background is lighter they look like crap)

 

wYumSTq.jpg

If it's enough as it is above, the changes:

KLHThreatMeter\Code\GUI\KTM_Gui.lua   Line 285

KLHThreatMeter\Code\GUI\KTM_OptionsGui.lua   Line 434

KLHThreatMeter\Code\GUI\KTM_TitleGui.lua   Line 137 replace:

gui.title.back:SetGradientAlpha("VERTICAL", col.minR, col.minG, col.minB, col.minA, col.maxR, col.maxG, col.maxB, col.maxA);

with:

gui.title.back:SetAlpha(0.15);

KLHThreatMeter\Code\GUI\KTM_Frame.xml   Line 314 replace:

                    <Layer level="BACKGROUND">                    
                        <!-- The title bar background -->
                        <Texture name="$parentBackground" >
                            <Anchors>
                                <Anchor point="TOPLEFT">
                                    <Offset x="-1" y="1"/>
                                </Anchor>
                                <Anchor point="BOTTOMRIGHT">
                                    <Offset x="1" y="0"/>
                                </Anchor>
                            </Anchors>
                            <Color r="0.0" g="0.0" b="1.0" a="1.0" />
                        </Texture>
                    </Layer>

with:

                    <Layer level="BACKGROUND">
                        <!-- The title bar background -->
                        <Texture >
                            <Anchors>
                                <Anchor point="TOPLEFT">
                                    <Offset x="-1" y="1"/>
                                </Anchor>
                                <Anchor point="BOTTOMRIGHT">
                                    <Offset x="1" y="0"/>
                                </Anchor>
                            </Anchors>
                            <Color r="0.0" g="0.0" b="0.0" a="1.0"/>
                        </Texture>
                        <Texture name="$parentBackground" file="Interface\Addons\KLHThreatMeter\Images\BarTexture">
                            <Anchors>
                                <Anchor point="TOPLEFT">
                                    <Offset x="-1" y="1"/>
                                </Anchor>
                                <Anchor point="BOTTOMRIGHT">
                                    <Offset x="1" y="0"/>
                                </Anchor>
                            </Anchors>
                        </Texture>
                    </Layer>

You could tweak the alpha in the lua a bit, maybe you can get it more as the other one, when they are side by side.

Share this post


Link to post
Share on other sites

Xyf, it does not work.

 

Could you double check what you copy and pasted?

 

When I change the xml file, the whole frame disappears

Share this post


Link to post
Share on other sites

Nevermind it works.

 

Is there a way I can change the color of the title bar like RGB?

 

Also can I remove the dark border around the whole frame to make it crisp like SWstats?

 

 

If you want to see how the other addon does it. Here is the link.

 

https://drive.google.com/open?id=0B8Bcvjkn6UtxbXpzVFRJQ1k1MTg

 

 

The texture is listed as b1.tga in the images folder.

 

I must really thank you Xyf for doing this. I know I'm being quite anal, but I do really appreciate it. If I ever distribute this I will give you credit.

 

Cheers

Edited by Volts

Share this post


Link to post
Share on other sites

You are amazing.

 

One final thing and then it should be good to go.

 

k4lChKn.jpg

 

Could you remove the black space between the threat bar and the right edge. It looks kinda funny.

 

 

Thanks again.

Share this post


Link to post
Share on other sites

KLHThreatMeter\Code\GUI\KTM_Gui.lua Line 498

change that 12 to like 6 or something.

 

Also you change the damage meter so the buttons I've changed don't match anymore lol.

Share this post


Link to post
Share on other sites

Yeah but the buttons you changed them too are 1000x better :P

 

DPSMate is better than SWStats

 

Thanks a lot Xyf.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×