TheLord45 / amxpanel

Emulator for AMX panels
GNU General Public License v3.0
13 stars 1 forks source link

Command: ^BOP #24

Closed TheLord45 closed 5 years ago

TheLord45 commented 5 years ago

Set the button opacity.

The button opacity can be specified as a decimal between 0 - 255, where zero (0) is invisible and 255 is opaque, or as a HEX code, as used in the color commands by preceding the HEX code with the # sign. In this case, #00 becomes invisible and #FF becomes opaque. If the opacity is set to zero (0), this does not make the button inactive, only invisible.

Syntax: "'^BOP-<vt addr range>,<button states range>,<button opacity>'"

Variable: variable text address range = 1 - 4000. button states range = 1 - 256 for multi-state buttons (0 = All states, for General buttons 1 = Off state and 2 = On state). button opacity = 0 (invisible) - 255 (opaque).

Example: SEND_COMMAND Panel,"'^BOP-500.504&510.515,1,200'"

Example 2: SEND_COMMAND Panel,"'^BOP-500.504&510.515,1,#C8'" Both examples set the opacity of the buttons with the variable text range of 500-504 and 510-515 to 200.