BUTTON OPACITY

This tutorial is specific to our newest product, Hudl Sportscode. If you’re on Sportscode v11, use these resources instead or upgrade today.

This script adjusts the background color of the current button.


FORMAT: BUTTON OPACITY opacity_level


DEFINITIONS:

  • opacity_level: An opacity value 0->100. A value of 0 will make the button invisible.

EXAMPLE 1:

BUTTON OPACITY 50

Changes the button to half transparency.

EXAMPLE 2:

IF (button "Display" state = 1, button opacity 100, button opacity 0)

If the button in the same code window named "Display" is activated then the current button will be visible at 100%. Otherwise, it will be invisible.

Note that the button must be an Event or Action -> Toggle. (Action button available only with an Elite license.)