docs: Added docs for toggleEvent and removeEvent functions

This commit is contained in:
AURUMVORXX
2024-11-07 12:03:34 +03:00
parent df9675d67b
commit 11fd12bf57
6 changed files with 64 additions and 6 deletions

View File

@@ -42,10 +42,12 @@ def evtTake(**kwargs):
return False
```
---
* `isEventCancelled` replaced with built-in function property `cancelled`, alongside with the `eventName` (if you need it for some reason)
* `isEventCancelled` replaced with built-in function property `cancelled`, alongside with the `eventName`
```python
@g2o.event('onPlayerDropItem')
def evtDrop(**kwargs):
print(evtDrop.cancelled)
print(evtDrop.eventName)
```
```
---
* `eventValue` has been removed (RIP)