Skip to content

Commit

Permalink
Fix compiler error
Browse files Browse the repository at this point in the history
  • Loading branch information
isXander committed Jun 17, 2024
1 parent 55c17d4 commit d335aae
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions src/main/kotlin/dev/isxander/zoomify/config/ZoomifySettings.kt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ open class ZoomifySettings() : JsonFileCodecConfig<ZoomifySettings>(
scrollZoomAmount,
scrollZoomSmoothness,
zoomKeyBehaviour,
_keybindScrolling,
relativeSensitivity,
relativeViewBobbing,
cinematicCamera,
Expand All @@ -71,14 +72,11 @@ open class ZoomifySettings() : JsonFileCodecConfig<ZoomifySettings>(
secondaryZoomAmount,
secondaryZoomInTime,
secondaryZoomOutTime,
secondaryHideHUDOnZoom
secondaryHideHUDOnZoom,
_firstLaunch,
)

constructor(settings: ZoomifySettings) : this() {
repeat(allSettings.size) { i ->
allSettings[i].value = settings.allSettings[i].value
}

this.initialZoom.value = settings.initialZoom.value
this.zoomInTime.value = settings.zoomInTime.value
this.zoomOutTime.value = settings.zoomOutTime.value
Expand All @@ -89,7 +87,22 @@ open class ZoomifySettings() : JsonFileCodecConfig<ZoomifySettings>(
this.linearLikeSteps.value = settings.linearLikeSteps.value
this.scrollZoom.value = settings.scrollZoom.value
this.scrollZoomAmount.value = settings.scrollZoomAmount.value

this.scrollZoomSmoothness.value = settings.scrollZoomSmoothness.value
this.zoomKeyBehaviour.value = settings.zoomKeyBehaviour.value
this.keybindScrolling = settings.keybindScrolling
this._keybindScrolling.value = settings._keybindScrolling.value
this.relativeSensitivity.value = settings.relativeSensitivity.value
this.relativeViewBobbing.value = settings.relativeViewBobbing.value
this.cinematicCamera.value = settings.cinematicCamera.value
this.spyglassBehaviour.value = settings.spyglassBehaviour.value
this.spyglassOverlayVisibility.value = settings.spyglassOverlayVisibility.value
this.spyglassSoundBehaviour.value = settings.spyglassSoundBehaviour.value
this.secondaryZoomAmount.value = settings.secondaryZoomAmount.value
this.secondaryZoomInTime.value = settings.secondaryZoomInTime.value
this.secondaryZoomOutTime.value = settings.secondaryZoomOutTime.value
this.secondaryHideHUDOnZoom.value = settings.secondaryHideHUDOnZoom.value
this.firstLaunch = settings.firstLaunch
this._firstLaunch.value = settings._firstLaunch.value
}

companion object : ZoomifySettings() {
Expand Down

0 comments on commit d335aae

Please sign in to comment.