Skip to content

Commit

Permalink
1.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
IMB11 committed Jan 26, 2024
1 parent 7b88139 commit d1c9c6f
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 19 deletions.
1 change: 0 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
run: ./gradlew build
- uses: Kir-Antipov/mc-publish@v3.3
with:
# version-type: beta
modrinth-id: ${{ vars.MODRINTH_ID }}
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-id: ${{ vars.CURSEFORGE_ID }}
Expand Down
16 changes: 8 additions & 8 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
org.gradle.jvmargs=-Xmx1G
# Fabric Properties
# check these on https://modmuss50.me/fabric.html
minecraft_version=1.20.2
yarn_mappings=1.20.2+build.4
loader_version=0.14.23
minecraft_version=1.20.4
yarn_mappings=1.20.4+build.3
loader_version=0.15.6
# Mod Properties
mod_version=1.1.0+1.20.2
mod_version=1.1.0+1.20.4
maven_group=com.mineblock11
archives_base_name=SkinShuffle
# Dependencies
# check this on https://modmuss50.me/fabric.html
fabric_version=0.90.0+1.20.2
spruceui_version=5.0.3+1.20.2
fabric_version=0.95.1+1.20.4
spruceui_version=5.0.3+1.20.4
jsoup_version=1.16.1
cvurlio_version=1.5.1
modmenu_version=8.0.0
yacl_version=3.3.0-beta.1+1.20.2
modmenu_version=9.0.0
yacl_version=3.3.2+1.20.4
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public class SkinShuffleClient implements ClientModInitializer {
@Override
public void onInitializeClient() {
SkinPresetManager.setup();
SkinPresetManager.loadPresets();
ClientSkinHandling.init();
SkinShuffleConfig.load();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ public int getHeight() {

this.textFieldWidget.setChangedListener(str -> updateValidity());

skinModelButton = new CyclingButtonWidget.Builder<>(Text::of)
skinModelButton = new CyclingButtonWidget.Builder<String>(Text::of)
.values("default", "slim")
.build(0, 0, 192, 20, Text.translatable("skinshuffle.edit.source.skin_model"));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public IconButtonWidget(int x, int y, int width, int height, int iconU, int icon
this.iconHeight = iconHeight;
}

public void renderButton(DrawContext context, int mouseX, int mouseY, float delta) {
super.renderButton(context, mouseX, mouseY, delta);
public void renderWidget(DrawContext context, int mouseX, int mouseY, float delta) {
super.renderWidget(context, mouseX, mouseY, delta);
context.drawTexture(this.iconTexture, this.getIconX(), this.getIconY(), this.iconU, this.iconV + (active ? (hovered ? 16 : 0) : this.iconDisabledVOffset), 0, this.iconWidth, this.iconHeight, this.iconTextureWidth, this.iconTextureHeight);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ private float getEntityRotation() {
}

@Override
public void render(DrawContext context, int mouseX, int mouseY, float delta) {
super.render(context, mouseX, mouseY, delta);

public void renderWidget(DrawContext context, int mouseX, int mouseY, float delta) {
super.renderWidget(context, mouseX, mouseY, delta);
if (this.entity != null && selectedPreset != null) {
// Don't want to render the entity if the skin is still loading
if (!selectedPreset.getSkin().isLoading()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public WarningIndicatorButton(int x, int y, Screen parent) {
}

@Override
public void renderButton(DrawContext context, int mouseX, int mouseY, float delta) {
public void renderWidget(DrawContext context, int mouseX, int mouseY, float delta) {
context.drawTexture(this.iconTexture, this.getIconX(), this.getIconY(), this.iconU, this.iconV + (hovered ? 16 : 0), 0, this.iconWidth, this.iconHeight, this.iconTextureWidth, this.iconTextureHeight);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import com.mineblock11.skinshuffle.client.gui.CarouselScreen;
import dev.lambdaurora.spruceui.Position;
import dev.lambdaurora.spruceui.widget.container.SpruceContainerWidget;
import net.minecraft.client.gui.DrawContext;
import net.minecraft.client.util.GlfwUtil;
import net.minecraft.util.math.MathHelper;

Expand Down Expand Up @@ -100,6 +101,13 @@ public void setDragStart(double x, double y) {
this.dragStartY = y;
}

@Override
protected void renderWidget(DrawContext graphics, int mouseX, int mouseY, float delta) {
this.renderBackground(graphics, mouseX, mouseY, delta);

super.renderWidget(graphics, mouseX, mouseY, delta);
}

@Override
public boolean isDragging() {
return dragging;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void refreshConfig(CallbackInfo ci) {
public void close() {
if (this.openCarouselWidgets != null) {
for (ClickableWidget openCarouselWidget : this.openCarouselWidgets) {
if(openCarouselWidget instanceof OpenCarouselButton button) {
if(openCarouselWidget instanceof OpenCarouselButton button) {
button.disposed();
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"enjarai"
],
"contact": {
"repo": "https://github.com/mineblock11/skinshuffle"
"repo": "https://github.com/IMB11/skinshuffle"
},
"license": "MIT",
"icon": "assets/skinshuffle/icon.png",
Expand All @@ -32,6 +32,6 @@
"depends": {
"fabricloader": ">=${loader_version}",
"fabric": "*",
"minecraft": ">=1.20"
"minecraft": ">=1.20.3 <=1.20.4"
}
}

0 comments on commit d1c9c6f

Please sign in to comment.