A meter component similar to a voltage meter, with a dial and a needle that indicates a value.
Constructor
new (?parent:DisplayObjectContainer, ?xpos:Float, ?ypos:Float, ?text:String)
Constructor
Parameters:
parent | The parent DisplayObjectContainer on which to add this Meter. |
---|---|
xpos | The x position to place this component. |
ypos | The y position to place this component. |
text | The string to use as the initial text in this component. |
Variables
Methods
setSize (w:Float, h:Float):Void
Sets the size of the component. Adjusts height to be 1/2 width.
Parameters:
w | The width of the component. |
---|---|
h | The height of the component. |