docs: Added docs for toggleEvent and removeEvent functions
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
# `class` ItemGround
|
||||
# `static class` ItemGround
|
||||
---
|
||||
::: g2o.classes.items.ItemGround
|
||||
@@ -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)
|
||||
2
docs/events/removeEvent.md
Normal file
2
docs/events/removeEvent.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` removeEvent
|
||||
::: g2o.events.removeEvent
|
||||
2
docs/events/toggleEvent.md
Normal file
2
docs/events/toggleEvent.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# `function` toggleEvent
|
||||
::: g2o.events.toggleEvent
|
||||
Reference in New Issue
Block a user