Files
apollo/game/plugin/run/src/run.plugin.kts
T
2017-09-16 18:49:06 +01:00

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()
}