mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-09 16:45:46 -07:00
Added want HD toggle for resizable SD logout
This commit is contained in:
parent
8b1c75afec
commit
ba70c3f36c
1 changed files with 9 additions and 3 deletions
|
|
@ -39,15 +39,21 @@ class plugin : Plugin() {
|
||||||
if (!osNameLowerCase.startsWith("mac")) {
|
if (!osNameLowerCase.startsWith("mac")) {
|
||||||
wantHd = true
|
wantHd = true
|
||||||
}
|
}
|
||||||
//Alternatively, we could just force HD off here, if we want:
|
if (API.GetData("want-hd") == false) {
|
||||||
//wantHd = false
|
wantHd = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun ProcessCommand(commandStr: String, args: Array<out String>?) {
|
override fun ProcessCommand(commandStr: String, args: Array<out String>?) {
|
||||||
when(commandStr.toLowerCase()) {
|
when(commandStr.toLowerCase()) {
|
||||||
"::resizablesd" -> {
|
"::toggleresizablesd", "::resizablesd", "::togglersd", "::rsd" -> {
|
||||||
toggleResize = true //We could call toggleResizableSd() directly here, but it's not necessary.
|
toggleResize = true //We could call toggleResizableSd() directly here, but it's not necessary.
|
||||||
}
|
}
|
||||||
|
"::toggleresizablesdhd", "::resizablesdhd", "::togglersdhd", "::rsdhd", -> {
|
||||||
|
wantHd = !wantHd
|
||||||
|
API.StoreData("want-hd", wantHd)
|
||||||
|
API.SendMessage("You have turned login screen HD " + (if (wantHd) "on" else "off"))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue