Skinning Requests
From TrillWiki
| Requester: | TrillHunter |
| Request Date: | 28 Dec 2006 |
| Description: | Variable access to anchor values |
| Example: | <color red="%redAnchor.value%"
green="%greenAnchor.value%"
blue="%blueAnchor.value%" /> |
| Requester: | TrillHunter |
| Request Date: | 28 Dec 2006 |
| Description: | XY anchors, or a way to modify 2 anchors (one northsouth, one eastwest) with a single resize handle |
| Example: | <anchor name="rightResizer" type="eastwest">...</anchor>
<anchor name="lowerResizer" type="northsouth">...</anchor>
<xyanchor name="lowerRightResizer"
northsouthAnchor="lowerResizer"
eastwestAnchor="rightResizer">
<!--
no <location> tags; uses values from rightResizer and lowerResizer
-->
<resize type="all">
<rtype type="lowerright">
<region type="rectangle" combinetype="or">
<rect>
<left num="3" orientation="left" source="rightResizer"/>
<right num="1" orientation="right" source="rightResizer"/>
<top num="3" orientation="above" source="lowerResizer"/>
<bottom num="1" orientation="below" source="lowerResizer"/>
</rect>
</region>
</rtype>
</resize>
</xyanchor> |
| Requester: | TrillHunter |
| Request Date: | 28 Dec 2006 |
| Description: | New variables: button.xClickPosition and button.yClickPosition, which would be available while the button's <action>s are being executed |
| Example: | <brightness percent="%brightnessLevel%" />
<control name="brightnessSelector" type="button">
...
<action name="setVariable"
variable="%brightnessLevel%"
value="100 - (%button.yClickPosition% / 2)" />
</control> |
| Requester: | TrillHunter |
| Request Date: | 28 Dec 2006 |
| Description: | Persistence of variables |
| Example: | <variable name="%foo%" persistent="yes" defaultValue="1" /> <control name="fooIncrementer" type="button"> ... <action name="setVariable" variable="%foo%" value="%foo% + 1" /> </control> |
| Requester: | TrillHunter |
| Request Date: | 28 Dec 2006 |
| Description: | Prefs-style variables that apply to the current window |
| Example: | <control name="soundToggler" type="button">
...
<action name="setVariable"
variable="%message.prefsNotificationsSounds%"
value="on/off/toggle" />
</control> |
| Requester: | TrillHunter |
| Request Date: | 28 Dec 2006 |
| Description: | A button action for opening windows (usually a template-based window) |
| Example: | <window type="template" name="myWindow" source="myWindowSrc" ... /> <control name="openMyWindow" type="button"> ... <action name="openWindow" value="myWindow" /> </control> |
