Exemple #1
0
 void Reset()
 {
     ClearAllChange();
     expanDialSticks.setLeftBorderText(TextAlignmentOptions.TopLeft, 16, Color.black, "", new Vector3(90f, 0f, 0f));
     expanDialSticks.setRightBorderText(TextAlignmentOptions.TopLeft, 16, Color.black, "", new Vector3(90f, 180f, 0f));
     expanDialSticks.triggerTextureChange();
     expanDialSticks.triggerShapeChange();
 }
    // Rover Control

    void displayRoverControlStart()
    {
        ClearAllChange();
        // Pitch/Roll/Yaw/Throlle/On/Pull/push
        // Button on/off
        expanDialSticks[4, 5].TargetText     = "Start";
        expanDialSticks[4, 5].TargetColor    = new Color(0f, 1f, 0f);
        expanDialSticks[4, 5].TargetTextSize = 2f;
        expanDialSticks[4, 5].TargetTextureChangeDuration = 1f;
        expanDialSticks[4, 5].TargetPosition            = 5;
        expanDialSticks[4, 5].TargetShapeChangeDuration = 1f;
        expanDialSticks.triggerTextureChange();
        expanDialSticks.triggerShapeChange();
        string legend = "Starting the rover with a button.";

        expanDialSticks.setLeftBorderText(TextAlignmentOptions.Center, LEGEND_SIZE, Color.black, legend, new Vector3(90f, 0f, 0f));
        expanDialSticks.setRightBorderText(TextAlignmentOptions.Center, LEGEND_SIZE, Color.black, legend, new Vector3(90f, 180f, 0f));
    }