logintimer reset on login but not during resize event ect

This commit is contained in:
downthecrop 2024-10-14 23:35:01 -07:00
parent f8dcbfafdb
commit 59100a036d

View file

@ -39,6 +39,10 @@ class plugin : Plugin() {
return true return true
} }
override fun OnLogin() {
initTime = System.currentTimeMillis()
}
override fun Draw(timeDelta: Long) { override fun Draw(timeDelta: Long) {
if (component == null) if (component == null)
return return
@ -138,6 +142,9 @@ class plugin : Plugin() {
API.InsertMiniMenuEntry("Disable Timer", "") { API.InsertMiniMenuEntry("Disable Timer", "") {
timeMode = DEFAULT_TIME_MODE timeMode = DEFAULT_TIME_MODE
} }
API.InsertMiniMenuEntry("Reset Play Time", "") {
initTime = System.currentTimeMillis()
}
} }
} }
} }