Skip to content

Commit

Permalink
Remove WarpIcon#heightPercentage attribute and zh_CN.lang
Browse files Browse the repository at this point in the history
Translation versioning is now managed on Crowdin
  • Loading branch information
ILikePlayingGames committed Sep 8, 2023
1 parent 19f27bf commit b7a298a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 67 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class Warp {
private static int height;
/** x-coordinate to draw the warp button at (0-40) */
private int gridX;
/** y-coordinate to draw the warp button at (0-${@code GRID_UNIT_WIDTH_FACTOR * warpIcon.getHeightPercentage()}) */
/** y-coordinate to draw the warp button at (0-40) */
private int gridY;
/** Name of the warp, rendered below the warp button texture */
private String displayName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ public class WarpIcon {
private transient int textureWidth;
/** Height of the warp icon texture, used to set the hit box of the warp button */
private transient int textureHeight;
/** {@link this#textureHeight} as a percentage of {@link this#textureWidth}, used to validate that the warp is not outside the island */
private transient int heightPercentage;

private WarpIcon(){}

Expand Down Expand Up @@ -83,14 +81,9 @@ public int getTextureHeight() {
return textureHeight;
}

public float getHeightPercentage() {
return heightPercentage;
}

public void setTextureDimensions(int textureWidth, int textureHeight) {
this.textureWidth = textureWidth;
this.textureHeight = textureHeight;
heightPercentage = textureHeight / textureWidth;
}
public String toString() {
return gson.toJson(this);
Expand Down
3 changes: 1 addition & 2 deletions src/main/resources/assets/fancywarpmenu/data/layout.json
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,7 @@
],
"warpIcon": {
"texturePath": "textures/gui/Portal.png",
"widthPercentage": 0.02,
"heightPercentage": 1.2
"widthPercentage": 0.02
},
"configButton": {
"gridX": 60,
Expand Down
57 changes: 0 additions & 57 deletions src/main/resources/assets/fancywarpmenu/lang/zh_CN.lang

This file was deleted.

0 comments on commit b7a298a

Please sign in to comment.