Skip to content

Make Logical Zoom configurable via Cloth Config API #2

@marcelbpunkt

Description

@marcelbpunkt

When #1 is completed, include Cloth Config API in build.gradle and add the following config options:

  • A new key binding for toggling Smooth Zoom on/off
  • Adjust duration of the smooth zoom, i.e. the duration between the Toggle Zoom key being pressed and full zoom, in milliseconds, with sensible min and max values. It also equals the duration between the Toggle Zoom key being released and zoom back to 1x.
  • Think about making Make the full zoom level (currently hard-coded as 0.23xFOV) configurable.
    • If it will be configurable, Set min value to 0.2xFOV (so the spyglass won't become obsolete)
    • Set max value to 2/3xFOV (= 1.5x zoom)
    • Save the inverse value in the config (5x zoom makes more sense than 0.2xFOV to the user)

Repository to add: maven { url "https://maven.shedaniel.me/" }
Dependency to add: modApi "me.shedaniel.cloth:cloth-config-fabric:8.2.88"

Cloth Config Wiki: https://shedaniel.gitbook.io/cloth-config

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions