vsTASKER 7 User Manual
×
Menu
Index

TexShape

 
Sprites are simple square shapes that can be either painted or textured.
Most of the sprites (input and output) are inheriting from the TexShape class.
Some sprite have two representations: a moving TexShape sprite and a background sprite.
To add a TexShape, do or use
 
Give it a name:
then Create.
 
TexShape
1

Name

1. Name
Name of the TexShape. Must be unique whatever its type.
vsTASKER will generate a class whose name will be <Name>_Spt. For the moment, this class will inherit from Vt_Sprite class.
Any Sprite can be accessed using its name in a generated union named s.
For ie, if a Sprite is named my_knob, the associated class will be my_knob_Spt and from the code, retrieving the instance object of the HMI will be done with s.my_knob or, in a more formal manner: my_knob_Spt* my_knob = (my_knob_Spt*) R:findSprite("my_knob");
2

Center

2. Center
Position on the HMI grid of the center of the shape.
 
3

Visual

3. Visual
Select how the shape must be drawn:
  • Outline: only the square shape will be drawn
  • Opaque: the square shape will be filled with plain color
  • Transparent: same as Opaque but the plain color will be transparent
 
4

Color

4.
Color used for the outline or the bakcground color.
 
5

Transparency

5. Transparency
In case of a Transparent visual, use this slider to specify the amount of transparency to apply to the selected color, from Min (opaque) to Max (glass).
 
6

Textures

6. Textures
See here.
 
7

Settings

7. Settings
Width and Height of the sprite shape. If a texture has been loaded, will automatically be set with the dimension of the texture.
 
8

Aspect Ratio

8. Aspect Ratio
If checked, the Height (or Width) will automatically adapt to keep the ratio at the time the option is selected.
 
9

Hidden

9. Hidden
If checked, the sprite shape will not be visible (textured or not).
 
10

Auto Size

10. Auto Size
If checked, the size of the texture will be kept and won't be modifiable.
If no texture, (0,0) will be used.
 
11

Read-Only

11. Read-Only
If checked, the sprite cannot be displaced or resized with the mouse.