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

@@ -1,3 +1,3 @@
# `class` ItemGround
# `static class` ItemGround
---
::: g2o.classes.items.ItemGround

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)

View File

@@ -0,0 +1,2 @@
# `function` removeEvent
::: g2o.events.removeEvent

View File

@@ -0,0 +1,2 @@
# `function` toggleEvent
::: g2o.events.toggleEvent