So, I'm having a problem getting the textures in. I have the following in a script:
Code:
VFLUI.RegisterTexture({
name = "leftLarge";
category = i18n("Status (Horse)");
title = i18n("Left Large");
path = "Interface\\AddOns\\OOBE_HorseMods\\textures\\leftLarge";
dx = 128; dy = 256;
});
VFLUI.RegisterTexture({
name = "leftLarge_Border";
category = i18n("Status (Horse)");
title = i18n("Left Large Border");
path = "Interface\\AddOns\\OOBE_HorseMods\\textures\\leftLarge_Border";
dx = 128; dy = 256;
});
VFLUI.RegisterTexture({
name = "leftSmall";
category = i18n("Status (Horse)");
title = i18n("Left Small");
path = "Interface\\AddOns\\OOBE_HorseMods\\textures\\leftSmall";
dx = 128; dy = 256;
});
VFLUI.RegisterTexture({
name = "leftSmall_Border";
category = i18n("Status (Horse)");
title = i18n("Left Small Border");
path = "Interface\\AddOns\\OOBE_HorseMods\\textures\\leftSmall_Border";
dx = 128; dy = 256;
});
I put my textures at:
Interface\AddOns\OOBE_HorseMods\textures
and they're named leftLarge.tga, leftLarge_Border.tga, leftSmall.tga, and leftSmall_Border.tga, and all have a size of 128x256. I noticed that the name attribute and the name of the file name do not have to match, but making it different didn't make it better.
When I run the script, it creates the category fine, as well as all of the names. However, in the list of textures, all of them show up blank, or a big white block, presumably stretched out to 128x256. The preview window is completely blank, but if I push the 'Use solid color' button at the top, the whole window turns white (which looks normal after testing). But when I uncheck that checkbox, there's a white box that looks like it's probably the 128x256 texture.
I brought these textures in from another mod to test how to import, and they work fine with that mod. I moved this into one of the mediapack folders, made a backup of a texture there, and placed it, and it imported correctly (all squished from size, but expected). Also, I see in the Textures.lua file in the mediapack that the Turbo textures don't have a size. Anyone have an idea? Do I need to add something else to the script for it to work correctly?
Thanks!