mirror of
https://gitlab.com/2009scape/09launcher.git
synced 2025-12-10 10:20:55 -07:00
Support for minimap_filter and aa_samples fields
This commit is contained in:
parent
a09ef79e1f
commit
19d3cab92b
2 changed files with 32 additions and 0 deletions
|
|
@ -47,6 +47,13 @@ object Json {
|
|||
rcm["left_click_attack"] = SettingsWindow.enableLeftClickAttack.isToggled
|
||||
launcher["closeOnClientLaunch"] = SettingsWindow.closeLauncherOnLaunch.isToggled
|
||||
launcher["notifyUpdates"] = Settings.CHECK_FOR_UPDATES
|
||||
customization["minimap_filter"] = SettingsWindow.minimapFilter.isToggled
|
||||
customization["aa_samples"] = when(SettingsWindow.aaSamples.selectedIndex)
|
||||
{
|
||||
0 -> 0
|
||||
1 -> 8
|
||||
else -> 16
|
||||
}
|
||||
|
||||
val ip = when(SettingsWindow.profileMode.selectedIndex)
|
||||
{
|
||||
|
|
@ -113,6 +120,14 @@ object Json {
|
|||
SettingsWindow.loginTheme.text = customization.getOrDefault("login_theme","scape main").toString()
|
||||
SettingsWindow.enableSnowDecember.isToggled = customization.getOrDefault("december_snow", true) as Boolean
|
||||
SettingsWindow.enableLeftClickAttack.isToggled = rcm.getOrDefault("left_click_attack", false) as Boolean
|
||||
SettingsWindow.minimapFilter.isToggled = customization.getOrDefault("minimap_filter",true) as Boolean
|
||||
SettingsWindow.aaSamples.selectedIndex = when(customization.getOrDefault("aa_samples",0).toString().toInt())
|
||||
{
|
||||
0 -> 0
|
||||
8 -> 1
|
||||
16 -> 2
|
||||
else -> 0
|
||||
}
|
||||
|
||||
SettingsWindow.closeLauncherOnLaunch.isToggled = launcher.getOrDefault("closeOnClientLaunch", true) as Boolean
|
||||
Settings.CHECK_FOR_UPDATES = launcher.getOrDefault("notifyUpdates", true) as Boolean
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue