Difference between revisions of "Button"

From HSYCO
Jump to navigation Jump to search
Line 6: Line 6:
  
 
== Parameters ==
 
== Parameters ==
*'''<address>''': device data point name
+
*'''address''': device data point name
*'''<pos>''': the position of the button. Use the pixels or rows and columns coordinates format
+
*'''pos''': the position of the button. Use the pixels or rows and columns coordinates format
*'''<label>''': the text label on the button. Can contain HTML tags.
+
*'''label''': the text label on the button. Can contain HTML tags.
  
 
== index.hsc ==
 
== index.hsc ==
Line 14: Line 14:
  
 
== UI Attributes ==
 
== UI Attributes ==
pos
+
{| class="wikitable"
 +
!Name
 +
!Values
 +
!Description
 +
|-
 +
|pos|x0y0|Position
 +
|visible|true, false|Is the object visible?
 +
|blink|true/slow, fast, false|Blinks the object. There are two possible speeds
 +
|opacity|0-1|Object opacity
 +
|focus|true|Focus field
 +
img|full url (http://...), path relative to /img/|When it applies, changes the image source
 +
draw|Draw instructions, ex: line(0,100,20,50,blue);line(50,50,70,70,'255,10,150');|When it applies, draws the image
 +
text, label|string|When it applies, changes the label
 +
|}

Revision as of 15:12, 19 December 2013

Controls a light or automation device.

When used to control a VSHUT or HSHUT automation interlocked device, pressing this button will cycle as follows: UNKNOWN -> DOWN -> STOP -> UP -> STOP -> DOWN

Parameters

  • address: device data point name
  • pos: the position of the button. Use the pixels or rows and columns coordinates format
  • label: the text label on the button. Can contain HTML tags.

index.hsc

(button <address>; <pos>; <label>)

UI Attributes

Name Values Description
x0y0|Position true, false|Is the object visible? true/slow, fast, false|Blinks the object. There are two possible speeds 0-1|Object opacity true|Focus field

img|full url (http://...), path relative to /img/|When it applies, changes the image source draw|Draw instructions, ex: line(0,100,20,50,blue);line(50,50,70,70,'255,10,150');|When it applies, draws the image text, label|string|When it applies, changes the label