Skip to content

Commit

Permalink
Bumped version to v2.6
Browse files Browse the repository at this point in the history
Also fixed an API bug
  • Loading branch information
StavWasPlayZ committed May 24, 2023
1 parent 87a00d6 commit cc06137
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
id 'org.parchmentmc.librarian.forgegradle' version '1.+'
}

version = '2.5.1'
version = '2.6'
group = 'com.cstav.genshinstrument' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = 'genshinstrument-1.19.4'

Expand Down
8 changes: 5 additions & 3 deletions public/updates.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@
"2.4.1": "- Fixed instrument screen being present after item removal\n- API tweaks & fixes",

"2.5": "- Update to version 1.19.4\n- GUI keyboard navigation",
"2.5.1": "- Fixed pitch slider being offset and not navigation-friendly"
"2.5.1": "- Fixed pitch slider being offset and not navigation-friendly",

"2.6": "- Added the visual play ring from Genshin"
},

"promos": {
"1.19.3-latest": "2.4.1",
"1.19.3-recommended": "2.4.1",

"1.19.4-latest": "2.5.1",
"1.19.4-recommended": "2.5.1"
"1.19.4-latest": "2.6",
"1.19.4-recommended": "2.6"
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
package com.cstav.genshinstrument.util;
package com.cstav.genshinstrument.client;

import java.awt.Point;

import com.mojang.blaze3d.systems.RenderSystem;

import net.minecraft.client.renderer.GameRenderer;
import net.minecraft.resources.ResourceLocation;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;

@OnlyIn(Dist.CLIENT)
public class ClientUtil {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
import java.awt.Point;
import java.util.ArrayList;

import com.cstav.genshinstrument.client.ClientUtil;
import com.cstav.genshinstrument.client.config.ModClientConfigs;
import com.cstav.genshinstrument.client.gui.screens.instrument.partial.AbstractInstrumentScreen;
import com.cstav.genshinstrument.client.gui.screens.instrument.partial.note.animation.NoteAnimationController;
import com.cstav.genshinstrument.client.gui.screens.instrument.partial.note.label.NoteLabelSupplier;
import com.cstav.genshinstrument.networking.ModPacketHandler;
import com.cstav.genshinstrument.networking.packets.instrument.InstrumentPacket;
import com.cstav.genshinstrument.sound.NoteSound;
import com.cstav.genshinstrument.util.ClientUtil;
import com.cstav.genshinstrument.util.CommonUtil;
import com.mojang.blaze3d.systems.RenderSystem;
import com.mojang.blaze3d.vertex.PoseStack;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@

import java.awt.Point;

import com.cstav.genshinstrument.Main;
import com.cstav.genshinstrument.client.ClientUtil;
import com.cstav.genshinstrument.client.gui.screens.instrument.partial.AbstractInstrumentScreen;
import com.cstav.genshinstrument.client.gui.screens.instrument.partial.note.animation.RingAnimationController;
import com.cstav.genshinstrument.util.ClientUtil;
import com.mojang.blaze3d.systems.RenderSystem;
import com.mojang.blaze3d.vertex.PoseStack;

import net.minecraft.client.gui.GuiComponent;
import net.minecraft.resources.ResourceLocation;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;

@OnlyIn(Dist.CLIENT)
public class NoteRing {
public static final String RING_GLOB_FILENAME = "ring.png";

Expand Down Expand Up @@ -37,7 +43,7 @@ public void render() {
note.colorTheme.getBlue() / 255f,
alpha
);
ClientUtil.displaySprite(note.instrumentScreen.getResourceFromGlob(RING_GLOB_FILENAME));
ClientUtil.displaySprite(new ResourceLocation(Main.MODID, AbstractInstrumentScreen.getGlobalRootPath() + RING_GLOB_FILENAME));

final Point ringCenter = ClientUtil.getInitCenter(note.getInitX(), note.getInitY(), NoteButton.getSize(), size);
GuiComponent.blit(new PoseStack(),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.cstav.genshinstrument.client.gui.screens.instrument.vintagelyre;

import com.cstav.genshinstrument.client.ClientUtil;
import com.cstav.genshinstrument.client.gui.screens.instrument.partial.AbstractGridInstrumentScreen;
import com.cstav.genshinstrument.client.gui.screens.instrument.partial.AbstractInstrumentScreen;
import com.cstav.genshinstrument.client.gui.screens.instrument.partial.note.NoteGridButton;
import com.cstav.genshinstrument.client.gui.screens.instrument.partial.note.label.NoteLabelSupplier;
import com.cstav.genshinstrument.sound.NoteSound;
import com.cstav.genshinstrument.util.ClientUtil;
import com.mojang.blaze3d.vertex.PoseStack;

import net.minecraft.client.gui.GuiComponent;
Expand Down

0 comments on commit cc06137

Please sign in to comment.