more tabgui & info height fix

This commit is contained in:
ThisIsALegitUsername 2023-02-11 21:43:46 +00:00
parent d448755ac8
commit fb06979043
4 changed files with 3132 additions and 3131 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -24,7 +24,7 @@ public class Info extends RenderMod {
}
public int getHeight() {
return mc.fontRendererObj.FONT_HEIGHT * 6;
return mc.fontRendererObj.FONT_HEIGHT * 7;
}
@Override

View File

@ -26,7 +26,7 @@ public class TabGui extends RenderMod{
public void draw() {
Gui.drawRect(x, y, x+70, y+3+Category.values().length*16, 0x90000000);
RenderUtils.drawChromaRectangle(x, y+current*16, x+70, y+17f+current*16, 0.6f, 0xff900000);
RenderUtils.drawChromaRectangle(x, y+current*16, x+70, y+18f+current*16, 0.6f, 0xff900000);
int offset = 0;
for(Category c : Category.values()){
@ -41,7 +41,7 @@ public class TabGui extends RenderMod{
return;
Gui.drawRect(x+70, y, x+138, y+3+Resent.INSTANCE.modManager.modsInCategory(category).size()*16, 0x90000000);
RenderUtils.drawChromaRectangle(x+70, y+category.i*16, x+138, y+17f+category.i*16, 0.6f, 0xff900000);
RenderUtils.drawChromaRectangle(x+70, y+category.i*16, x+138, y+18f+category.i*16, 0.6f, 0xff900000);
offset = 0;
for(Mod m : Resent.INSTANCE.modManager.modsInCategory(category)){