How to have textures default to the current skin?
#1
I'm trying to design a large custom dialog, but I don't want to go through the process of creating all the png background images for textures. Is there some way I can have the dialog use the currently-set theme's textures? If so, how? Can I simply leave out the texture tags in the xml or will that cause the controls to not be visible?
Quote:pro·gram·mer (n): An organism capable of converting caffeine into code.
Reply
#2
If you're using WindowXML, you can definitely access the current skin's images if you know what they're named and what folder they are in (or at least were in before the textures file was created). Here's an example from an addon I helped update for Estuary:
Code:
<controltype="image">
    <description>recentrecordingstablebackground</description>
    <left>0</left>
    <top>82</top>
    <width>1300</width>
    <height>305</height>
    <texture>lists/panel.png</texture>
    <colordiffuse>B0FFFFFF</colordiffuse>
</control>

Here's the problem though. lists/panel.png might not exist for every skin. So unless you want to make a separate addon skin for every skin (or just not support some skins), you're better off just including all the images you need in the addon.

Not sure what, if any, of this holds true if you're using a different method for generating the dialog box.
Reply

Logout Mark Read Team Forum Stats Members Help
How to have textures default to the current skin?0