Skip to content

Commit

Permalink
Prepare for the beta before zoom scrolling.
Browse files Browse the repository at this point in the history
  • Loading branch information
Past Ennui committed Jan 18, 2020
1 parent c363c37 commit 2c5c899
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
14 changes: 0 additions & 14 deletions src/main/java/io/github/joaoh1/okzoomer/OkZoomer.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
import net.fabricmc.fabric.api.event.client.ClientTickCallback;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.util.InputUtil;
import net.minecraft.network.MessageType;
import net.minecraft.text.LiteralText;
import net.minecraft.util.Identifier;
import me.sargunvohra.mcmods.autoconfig1u.AutoConfig;
import me.sargunvohra.mcmods.autoconfig1u.serializer.JanksonConfigSerializer;
Expand All @@ -21,17 +19,6 @@ public class OkZoomer implements ClientModInitializer {
.create(new Identifier("okzoomer", "zoom"), InputUtil.Type.KEYSYM, GLFW.GLFW_KEY_Z, "key.categories.misc")
.build();

//Increases or decreases the zoom, used by zoom scrolling.
public void scrollZoom(double scrollAmount) {
if (scrollAmount > 0.0D) {
scrollAmount = 1.0D;
} else if (scrollAmount < 0.0D) {
scrollAmount = -1.0D;
}

//TODO - figure out a good logic for this ;-;
}

//Toggles a boolean if the matching cooldown is over.
public boolean toggleBooleanByKeybind(boolean toggledBoolean, int cooldown) {
cooldown -= 1;
Expand Down Expand Up @@ -146,7 +133,6 @@ public void onInitializeClient() {

//If the smoothing is equal/bigger than the zoom multiplier,
if (smoothing >= config.zoomMultiplier) {
minecraft.inGameHud.addChatMessage(MessageType.SYSTEM, new LiteralText(String.valueOf(minecraft.options.fov)));
//Set all the values to the zoomed in values.
smoothing = config.zoomMultiplier / config.advancedSmoothTransSettings.smoothDivisor;
minecraft.options.fov = realFov * config.zoomMultiplier;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import me.sargunvohra.mcmods.autoconfig1u.shadowed.blue.endless.jankson.Comment;

@Config(name = "okzoomer")
@Config.Gui.Background(value = "minecraft:textures/block/yellow_wool.png")
public class OkZoomerConfig implements ConfigData {
@Comment("Enables Smooth Camera while zooming, interferes with Cinematic Mode but it shouldn't be anything negative.")
@ConfigEntry.Gui.Tooltip(count = 2)
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/okzoomer/lang/pt_br.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"text.autoconfig.okzoomer.option.advancedSmoothTransSettings.transitionEndMultiplier": "Multiplicador do fim da transição",
"text.autoconfig.okzoomer.option.advancedSmoothTransSettings.transitionEndMultiplier.@Tooltip": "O multiplicador usado na suavização do FOV enquanto sai no zoom.",
"text.autoconfig.okzoomer.option.reduceSensitivity": "Reduzir sensibilidade",
"text.autoconfig.okzoomer.option.reduceSensitivity.@Tooltip": "Reduz a sensibilidade do mouse enquando dar zoom.",
"text.autoconfig.okzoomer.option.reduceSensitivity.@Tooltip": "Reduz a sensibilidade do mouse enquanto dar zoom.",
"text.autoconfig.okzoomer.option.zoomToggle": "Alternar zoom",
"text.autoconfig.okzoomer.option.zoomToggle.@Tooltip": "Ativa a habilidade de alternar o zoom.",
"text.autoconfig.okzoomer.option.zoomMultiplier": "Multiplicador do zoom",
Expand Down

0 comments on commit 2c5c899

Please sign in to comment.