aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/xmrvizzy/skyblocker/skyblock
diff options
context:
space:
mode:
authormsg-programs <msgdoesstuff@gmail.com>2023-05-06 13:15:51 +0200
committermsg-programs <msgdoesstuff@gmail.com>2023-05-06 13:15:51 +0200
commite332b243dcea6ec567bd38db99ec3cfa35a57fe1 (patch)
tree33f562fbea36d8d284b543c17268a341d1c06c98 /src/main/java/me/xmrvizzy/skyblocker/skyblock
parent4825f2044b4cc674f4147a73ebdae08874cf8563 (diff)
downloadSkyblocker-e332b243dcea6ec567bd38db99ec3cfa35a57fe1.tar.gz
Skyblocker-e332b243dcea6ec567bd38db99ec3cfa35a57fe1.tar.bz2
Skyblocker-e332b243dcea6ec567bd38db99ec3cfa35a57fe1.zip
Minor foramtting and code style changes
Diffstat (limited to 'src/main/java/me/xmrvizzy/skyblocker/skyblock')
-rw-r--r--src/main/java/me/xmrvizzy/skyblocker/skyblock/tabhud/widget/component/TableComponent.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/me/xmrvizzy/skyblocker/skyblock/tabhud/widget/component/TableComponent.java b/src/main/java/me/xmrvizzy/skyblocker/skyblock/tabhud/widget/component/TableComponent.java
index 66c1b73b..2d367b11 100644
--- a/src/main/java/me/xmrvizzy/skyblocker/skyblock/tabhud/widget/component/TableComponent.java
+++ b/src/main/java/me/xmrvizzy/skyblocker/skyblock/tabhud/widget/component/TableComponent.java
@@ -20,18 +20,18 @@ public class TableComponent extends Component {
}
public void addToCell(int x, int y, Component c) {
- comps[x][y] = c;
+ this.comps[x][y] = c;
// are tables still too wide?
- cellW = Math.max(cellW, c.width + PAD_S);
+ this.cellW = Math.max(this.cellW, c.width + PAD_S);
// assume all rows are equally high so overwriting doesn't matter
// if this wasn't the case, drawing would need more math
// not doing any of that if it's not needed
- cellH = c.height;
+ this.cellH = c.height;
- this.width = cellW * tw;
- this.height = (cellH + PAD_S) * th - PAD_S;
+ this.width = this.cellW * this.tw;
+ this.height = (this.cellH + PAD_S) * this.th - PAD_S;
}
@@ -45,7 +45,7 @@ public class TableComponent extends Component {
}
if (x != tw - 1) {
DrawableHelper.fill(ms, xpos + ((x + 1) * (cellW + PAD_S)) - 1, ypos + 1,
- xpos + ((x + 1) * (cellW + PAD_S)), ypos + this.height - 1, color);
+ xpos + ((x + 1) * (cellW + PAD_S)), ypos + this.height - 1, this.color);
}
}
}