Pygame Tools aktualisiert

The Wobbler 2024-03-25 17:18:54 +01:00
parent 9ed939c815
commit 863515c477

@ -1,3 +1,19 @@
### Pygame Tools
The module pg.py contains some Pygame tools.
The module pg.py contains some Pygame tools.
#### pg.Hover (class)
 Checks if the mouse is hovering over an specified [pygame.Rect()](https://www.pygame.org/docs/ref/rect.html).
```
Hover(rect) -> Hover
Hover(rect, function) -> Hover
Hover(rect, function, args) -> Hover
```
    [pg.Hover.check](#check)
<br>
<br>
#### check()
&emsp; Checks if the mouse is hovering over the rect. When the mouse is hovering over the rect, it returns True. If an additional function is given, it also executes the function.