mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 16:49:11 +00:00
10 lines
229 B
Kotlin
10 lines
229 B
Kotlin
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()
|
|
} |