Update Menus
parent
b16db1f478
commit
40cbbf5d71
2
Menus.md
2
Menus.md
@ -23,3 +23,5 @@ void spriteMouseLeave(Sprite MenuSprite, SpriteEventArgs e)
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
Because you may sometimes have some transparent areas surrounding a menu-button, you may also want to try out the MouseEnterTransparent, MouseLeaveTransparent, and MouseHoverTransparent functions. These work the same way, except that, instead of triggering when the mouse is over the sprite rectangle, it only triggers if it is over a non-transparent area of the sprite.
|
Because you may sometimes have some transparent areas surrounding a menu-button, you may also want to try out the MouseEnterTransparent, MouseLeaveTransparent, and MouseHoverTransparent functions. These work the same way, except that, instead of triggering when the mouse is over the sprite rectangle, it only triggers if it is over a non-transparent area of the sprite.
|
||||||
|
|
||||||
|
See also: [Program Design: Menus](https://git.solidcharity.com/timy/SpriteLibrary/wikis/ProgramDesign#making-a-game-menu)
|
Loading…
Reference in New Issue
Block a user