Using SkinPacks
From TrillWiki
Trillian Pro's default skin, Whistler, offers a huge advantage for users: The user can choose an Emoticon set, and a Sound pack. The same goes for a lot of other skins that have the same look. This is because they are so-called STIXE skins.
In reality, this function is not just limited to these STIXE skins, and normal skins can support this feature too, it just takes a bit of work for the author to allow the users to do it. But, on the other hand, it saves the author the effort of designing the emoticons and sounds on their own!
So, what will the author need to do to accomplish this? It actually is quite simple! The user's choice for emoticons and more is stored in the file in %trilliandir%/stixe/trillian.dtd, and the base directory of the skin is %trilliandir%/skins/%skindir%/.
This tip assumes you already know about entities and so on.
This goes into trillian.dtd, or a similar file...
- <!-- Tap Into STIXE's emotes and sounds -->
- <!-- Don't load certain STIXE stuff -->
- <!ENTITY % StyleSettings >
- <!ENTITY % StyleMain >
- <!ENTITY % ISt >
- <!ENTITY % InterfaceMain >
- <!-- Settings for the emoticon menu -->
- <!ENTITY iniDefaultFontName 'Tahoma'>
- <!ENTITY iniDefaultFontSize '8'>
- <!ENTITY iniMenuItemColor >
- <!ENTITY iniIconMenuItemSettings
- '
- <settings name="Width" value="250"/>
- <settings name="MaxColumns" value="10"/>
- <settings name="sectionLeftMargin" value="2"/>
- <settings name="sectionRightMargin" value="2"/>
- <settings name="sectionTopMargin" value="2"/>
- <settings name="sectionBottomMargin" value="2"/>
- <settings name="titleLeftMargin" value="5"/>
- <settings name="titleHeight" value="16"/>
- <settings name="iconSpacingX" value="1"/>
- <settings name="iconSpacingY" value="1"/>
- '>
- <!-- Your own emoticons, if desired -->
- <!ENTITY Emoticon-Extensions >
- <!-- Finally, load STIXE's TrillianDTD! -->
- <!ENTITY % TrillianDTD SYSTEM "../../stixe/trillian.dtd">
- %TrillianDTD;
- <!-- If the user is using Trillian 0.7x, get the TP2-icons!
- If we don't mention these here, previous versions of trillian will puke
- up with XML errors... -->
- <!ENTITY Emoticons SYSTEM '../TP2/Plugins/TP15Emoticons-16x16/main.xml'>
- <!ENTITY Sounds SYSTEM '../TP2/Plugins/Trillian-Sounds/main.xml'>
Now, in Trillian.xml, you merely have to add
- &Emoticons;
- &sounds;
And there you go! It might be a nice idea to add "stixe" to Desc.txt as the last line.
[edit] See also
- Related thread in the Skinning Resources Center on the forums
