-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
738 additions
and
628 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
src/main/java/io/github/ennuil/ok_zoomer/MixinExtrasInitializer.java
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
src/main/java/io/github/ennuil/ok_zoomer/OkZoomerClientMod.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 52 additions & 5 deletions
57
src/main/java/io/github/ennuil/ok_zoomer/config/ConfigEnums.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,81 @@ | ||
package io.github.ennuil.ok_zoomer.config; | ||
|
||
public class ConfigEnums { | ||
public enum CinematicCameraOptions { | ||
public enum CinematicCameraOptions implements ConfigEnum { | ||
OFF, | ||
VANILLA, | ||
MULTIPLIED; | ||
|
||
@Override | ||
public Enum<?> next() { | ||
var enumValues = this.getDeclaringClass().getEnumConstants(); | ||
return enumValues[this.ordinal() + 1 < enumValues.length ? this.ordinal() + 1 : 0]; | ||
} | ||
} | ||
|
||
public enum ZoomTransitionOptions { | ||
public enum ZoomTransitionOptions implements ConfigEnum { | ||
OFF, | ||
SMOOTH, | ||
LINEAR; | ||
|
||
@Override | ||
public Enum<?> next() { | ||
var enumValues = this.getDeclaringClass().getEnumConstants(); | ||
return enumValues[this.ordinal() + 1 < enumValues.length ? this.ordinal() + 1 : 0]; | ||
} | ||
} | ||
|
||
public enum ZoomModes { | ||
public enum ZoomModes implements ConfigEnum { | ||
HOLD, | ||
TOGGLE, | ||
PERSISTENT; | ||
|
||
@Override | ||
public Enum<?> next() { | ||
var enumValues = this.getDeclaringClass().getEnumConstants(); | ||
return enumValues[this.ordinal() + 1 < enumValues.length ? this.ordinal() + 1 : 0]; | ||
} | ||
} | ||
|
||
public enum ZoomOverlays { | ||
public enum ZoomOverlays implements ConfigEnum { | ||
OFF, | ||
VIGNETTE, | ||
SPYGLASS; | ||
|
||
@Override | ||
public Enum<?> next() { | ||
var enumValues = this.getDeclaringClass().getEnumConstants(); | ||
return enumValues[this.ordinal() + 1 < enumValues.length ? this.ordinal() + 1 : 0]; | ||
} | ||
} | ||
|
||
public enum SpyglassDependency { | ||
public enum SpyglassDependency implements ConfigEnum { | ||
OFF, | ||
REQUIRE_ITEM, | ||
REPLACE_ZOOM, | ||
BOTH; | ||
|
||
@Override | ||
public Enum<?> next() { | ||
var enumValues = this.getDeclaringClass().getEnumConstants(); | ||
return enumValues[this.ordinal() + 1 < enumValues.length ? this.ordinal() + 1 : 0]; | ||
} | ||
} | ||
|
||
public enum ZoomPresets implements ConfigEnum { | ||
DEFAULT, | ||
CLASSIC, | ||
PERSISTENT, | ||
SPYGLASS; | ||
|
||
@Override | ||
public Enum<?> next() { | ||
var enumValues = this.getDeclaringClass().getEnumConstants(); | ||
return enumValues[this.ordinal() + 1 < enumValues.length ? this.ordinal() + 1 : 0]; | ||
} | ||
} | ||
|
||
public interface ConfigEnum { | ||
Enum<?> next(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...b/ennuil/ok_zoomer/config/WidgetSize.java → ...ok_zoomer/config/metadata/WidgetSize.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.