Updated some formatting
Updated formatting for object
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
# onScroll
|
||||
`onScroll(self, event, direction, x, y)`<br>
|
||||
# Object - Event
|
||||
|
||||
## onScroll
|
||||
|
||||
`onScroll(self, event, direction, x, y)`
|
||||
|
||||
The computercraft event which triggers this method is `mouse_scroll`.
|
||||
|
||||
Here is a example on how to add a onScroll event to your button:
|
||||
@@ -17,4 +21,4 @@ function buttonOnScroll(self, direction, x, y)
|
||||
basalt.debug("Someone scrolls on me!")
|
||||
end
|
||||
button:onScroll(buttonOnScroll)
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user