GUI Tidbits: Difference between revisions

From Adventure Game Studio | Wiki
Jump to navigation Jump to search
*>Janik
m (GUI Alpha moved to GUI Tidbits: We should collect GUI-related tidbits here.)
*>Janik
No edit summary
Line 1: Line 1:
About alpha-channel sprites for GUIs:
About alpha-channel sprites for GUIs:


* GUI Buttons do not use alpha-channel, just transparency.
* GUI Buttons do not use alpha-channel, just a transparency color.
* GUI Backgrounds CAN use an alpha channel.
* GUI Backgrounds CAN use an alpha channel.
* If your background has an alpha channel, then its transparency will be applied to any buttons on top.  
* If your background has an alpha channel, then its transparency will be applied to any buttons on top.  
* GUI Buttons with a transparent color will respond to clicks over the entire defined rectangle (not pixel-perfect detection).


[[Category:Tidbits and Snippets]]
[[Category:Tidbits and Snippets]]

Revision as of 19:59, 4 November 2006

About alpha-channel sprites for GUIs:

  • GUI Buttons do not use alpha-channel, just a transparency color.
  • GUI Backgrounds CAN use an alpha channel.
  • If your background has an alpha channel, then its transparency will be applied to any buttons on top.
  • GUI Buttons with a transparent color will respond to clicks over the entire defined rectangle (not pixel-perfect detection).