Skip to content

Commit

Permalink
Fix battle UI borders missing bottom right corder (closes #1667)
Browse files Browse the repository at this point in the history
  • Loading branch information
LordMonoxide committed Dec 6, 2024
1 parent 18fc90a commit c4eeaf8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/legend/game/combat/ui/UiBox.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ private void buildBattleHudBorder(final int x0, final int y0, final int x1, fina
xs[3] = x1 - 1;
ys[3] = y1;

final QuadBuilder builder = new QuadBuilder("Battle UI Border")
.bpp(Bpp.BITS_4);
final QuadBuilder builder = new QuadBuilder("Battle UI Border");

//LAB_800f1060
for(int i = 0; i < 8; i++) {
Expand All @@ -98,7 +97,7 @@ private void buildBattleHudBorder(final int x0, final int y0, final int x1, fina
leftX = xs[borderMetrics.indexXy1_02] + borderMetrics.offsetX_08;
rightX = xs[borderMetrics.indexXy0_00] - borderMetrics.offsetX_08;
rightU = borderMetrics.u_04;
leftU = rightU + borderMetrics.w_0c - 1;
leftU = rightU + borderMetrics.w_0c;
} else {
//LAB_800f1128
leftX = xs[borderMetrics.indexXy0_00] - borderMetrics.offsetX_08;
Expand All @@ -109,6 +108,7 @@ private void buildBattleHudBorder(final int x0, final int y0, final int x1, fina

builder
.add()
.bpp(Bpp.BITS_4)
.clut(720, 497)
.vramPos(704, 256)
.monochrome(0.5f)
Expand Down

0 comments on commit c4eeaf8

Please sign in to comment.