mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 00:38:21 +00:00
Add kotlin port of the walk/run toggle plugin
This commit is contained in:
@@ -0,0 +1 @@
|
||||
name = "run"
|
||||
@@ -0,0 +1,10 @@
|
||||
import org.apollo.game.message.impl.ButtonMessage
|
||||
|
||||
val WALK_BUTTON_ID = 152
|
||||
val RUN_BUTTON_ID = 153
|
||||
|
||||
on { ButtonMessage::class }
|
||||
.where { widgetId == WALK_BUTTON_ID || widgetId == RUN_BUTTON_ID }
|
||||
.then {
|
||||
it.toggleRunning()
|
||||
}
|
||||
Reference in New Issue
Block a user