WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Re-coloring Textures (https://www.wowinterface.com/forums/showthread.php?t=41838)

Miiru 11-17-11 02:41 PM

Re-coloring Textures
 
Hey there.

I'm trying to make my Texture pack Patch 4.3 ready, but i'm struggeling with the purple tinting they implemented to the Reforging, transmogrify and Void Storage Frames.

I tried to recolor them using SetVertexColor, but it doesnt seem to work.

Code:

<Frame name="TransmogrifyFrame" toplevel="true" parent="UIParent" hidden="true" enableMouse="true">
<Size x="338" y="424"/>
<Frames>
<DressUpModel name="TransmogrifyModelFrame" inherits="ModelWithControlsTemplate">
<Layers>
<Layer level="BACKGROUND" textureSubLevel="1">
<Texture name="$parentMarbleBg" file="Interface\FrameGeneral\UI-Background-Marble" horizTile="true" vertTile="true" setAllPoints="true"/>
</Layer>
<Layer level="BACKGROUND" textureSubLevel="2">
<Texture setAllPoints="true">
<Color r="0.302" g="0.102" b="0.204" a="0.5"/>
</Texture>
</Layer>

(whole xml: click)

I read a bit about $parent and so i concluded the tetures name should be "TransmogrifyFrameMarbleBg". Tried to change the color with setverteycolor, but it didnt change anything. I also tried to copy the whole xml file and then change the color code, which did not work either. I guess i'm doing it totally wrong? :X

Ailae 11-17-11 04:32 PM

Wild guess, but wouldn't the parent rather be TransmogrifyModelFrame?

Thus, the texture would be TransmogrifyModelFrameMarbleBg.

Miiru 11-18-11 04:14 AM

Quote:

Originally Posted by Ailae (Post 247446)
Wild guess, but wouldn't the parent rather be TransmogrifyModelFrame?

Thus, the texture would be TransmogrifyModelFrameMarbleBg.

If i remember correctly, i tried that one already but im not sure. Waiting for PTR to come online to test...

Miiru 11-19-11 04:08 AM

Ok TransmogrifyModelFrameMarbleBg worked, but now i have another problem.

Is there a way to 'delete' the color information set by the .xml file? Because if i try to color it by setvertexcolor it just adds the color over the already colored texture... i already to calculate the necessary color code to get the color i want but i wasnt really successfull :D

Miiru 11-19-11 03:58 PM

Apparentely i need to hook the setvertexcolor call. I searched a bit on google and didnt really find anything that helped me :/

edit: solved the problems.


All times are GMT -6. The time now is 08:52 AM.

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