Pygame Tools aktualisiert
parent
9ed939c815
commit
863515c477
1 changed files with 17 additions and 1 deletions
|
@ -1,3 +1,19 @@
|
|||
### 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()
|
||||
  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.
|
||||
|
|
Loading…
Reference in a new issue