System variables for skins

From TrillWiki

Jump to: navigation, search

(New in 3.0)

Trillian 3.0 introduces some incredible new skin elements. One of which is system variables and another is Skin math.

System variables are things you can use in your skin to tell if various panels are open, the size of the panels, are things visible, etc.

Example of use:

<icontrol source="templateButton" name="video-deny"
visible="%message.video.acceptdeny%">

NOTE: In order to use system variables in entities, you must replace the % symbols with &#37;

[edit] Logic variables

(0=FALSE, 1=TRUE)

Variable Description
%trillian.pro% Trillian Pro mode
%trillian.basic% Trillian Basic mode (the same as !%trillian.pro%)
%message.contact% Message is from a user who is one of my contacts (for things like 'add contact' in the message window)

Setting entire frames visible using this variable allows us to have a 'Stranger Mode' for message windows.

%message.search% Is the search bar open? This system variable is now implemented, but the search functions themselves aren't. If you get tricky you can use this system variable to replace a phase :D
%message.display% Is display panel open?
%message.input% Is edit panel open?
%message.nicklist% Is nicklist panel open?
%message.video% Is video panel open?
%message.video.connected% Is video connected?
%message.video.acceptdeny% Video accept/deny panel
%message.video.status% Video status
%message.video.notice% (Not sure)
%message.audio% Is audio panel open?
%message.audio.connected% Is audio connected?
%message.audio.acceptdeny% Audio accept/deny panel
%message.audio.status% Audio status
%message.[MEDIUM]% This is a [MEDIUM] window

Kevin: it will generate it for any medium Kevin: it does message.%s Examples: %message.aim%, icq, msn, yahoo, irc, rendezvous

%window.maximized% Is the window maximized
%window.docked% Is the window docked

[edit] Size variables

Variable Description
%window.width% The width of the window
%window.height% The height of the window
%tzoneVideoToolbar.height% Video toolbar height
%tzoneAudioToolbar.height% Audio toolbar height
%tzoneAudioPARToolbar.height%

Kevin: audio par is the separate tivo-like thing for audio only

%tzoneEditbar.height% Edit Panel Height

[edit] Astra-only variables

Variable Description
%system.windows.tabletpc%
%system.windows.mediacenter%
%system.windows.me%
%system.windows.95%
%system.windows.98%
%system.windows.2000%
%system.windows.xp%
%system.windows.vista%
%totalscreen.width%
%totalscreen.height%
%window.hover%
%window.alpha%
%window.bottom%
%window.top%
%window.right%
%window.left%
%window.height%
%window.width%
%window.docked.right%
%window.docked.left%
%window.tabbed%
%window.maximized%
%window.has_taskbarEntry%
%this.width%
%this.height%
%taskbar.tabs.minwidth%
%something.desired_height%
%something.desired_width%
%something.height%
%something.width%