SkinAdd

From TrillWiki

Jump to: navigation, search

The skinAdd function will add allow a plugin to add its own images, settings, etc to the current skin that is loaded.

Compatibility: 2.0 and higher

Contents

Syntax

plugin_send(MYGUID, "skinAdd", skin_entry_t *)

Note that all Trillian functions and notifications begin with a lower-case letter, despite the Wiki requirement that all pages start with a capital letter.

Parameters

SkinAdd utilitizes the skin_entry_t structure.

 struct skin_entry_t { 
 	unsigned int			struct_size; 
 
 	char				*xml_text; 
 };



xml_text
The xml stream to add into the skin.


Return Value

Returns negative on error, 0 on success.

Remarks

There is no skinRemove function yet, so you should enumerate the skin prior to adding something. Also, it is nice to enumerate the skin to make sure the plugin does not override a graphic that is supplied by the skin.

For more information on the skinning language, go to the skin area of the website or ask on the forums. (Or add skinning information to this Wiki!))


Personal tools