Skip to content

Commit 7ceb984

Browse files
committed
[fix] ウォレットアプリの最終調整
1 parent 19b2654 commit 7ceb984

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/main/java/io/github/fhrk_78/toropasswallet/client/renderer/PaymentHudRenderer.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ public class PaymentHudRenderer {
1616
public static void render(DrawContext ctx, RenderTickCounter renderTickCounter) {
1717
int height = ctx.getScaledWindowHeight();
1818

19-
int overlayBasicSize = height >> 1;
20-
int overlaySize = (int) (percentage / 100f * overlayBasicSize);
19+
int overlaySize = height >> 1;
20+
int overlayPos = (int) (percentage / 100f * overlaySize);
2121

22-
ctx.drawTexture(paymentT, MARGIN, height - overlaySize, 0, 0,
23-
overlayBasicSize, overlaySize, overlayBasicSize, overlaySize);
22+
ctx.drawTexture(paymentT, MARGIN, height - overlayPos, 0, 0,
23+
overlaySize, overlaySize, overlaySize, overlaySize);
2424
}
2525

2626
public static void tick(MinecraftClient client) {
@@ -31,7 +31,7 @@ public static void tick(MinecraftClient client) {
3131
}
3232

3333
public static void show() {
34-
tickCounter = 20;
34+
tickCounter = 100;
3535
shouldIShow = true;
3636
}
3737
}

src/main/java/io/github/fhrk_78/toropasswallet/client/renderer/ToropassWalletApp.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
import net.minecraft.util.Identifier;
1010

1111
public final class ToropassWalletApp extends Screen {
12-
public final short MARGIN = 15;
12+
public final short MARGIN = 32;
1313
public Identifier toropassT;
1414

1515
public TextWidget balanceTextWidget;
1616

1717
public PaymentHistoryWidget paymentHistoryWidget;
1818

19-
final int CONTENT_GAP = 5;
19+
final int CONTENT_GAP = 12;
2020
int CONTENT_WIDTH, CONTENT_HEIGHT, CARD_HEIGHT;
2121

2222
public ToropassWalletApp() {

0 commit comments

Comments
 (0)