Better aligned tabgui

This commit is contained in:
ThisIsALegitUsername 2023-02-11 21:36:48 +00:00
parent 5755ed39f7
commit d448755ac8
3 changed files with 11977 additions and 11976 deletions
javascript
src/main/java/dev/resent/module/impl/misc

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -17,7 +17,7 @@ public class TabGui extends RenderMod{
public boolean expanded; public boolean expanded;
public int getWidth(){ public int getWidth(){
return expanded ? 140 : 70; return expanded ? 139 : 70;
} }
public int getHeight(){ public int getHeight(){
@ -26,7 +26,7 @@ public class TabGui extends RenderMod{
public void draw() { public void draw() {
Gui.drawRect(x, y, x+70, y+3+Category.values().length*16, 0x90000000); Gui.drawRect(x, y, x+70, y+3+Category.values().length*16, 0x90000000);
RenderUtils.drawChromaRectangle(x, y+current*16, x+70, y+18.5f+current*16, 0.6f, 0xff900000); RenderUtils.drawChromaRectangle(x, y+current*16, x+70, y+17f+current*16, 0.6f, 0xff900000);
int offset = 0; int offset = 0;
for(Category c : Category.values()){ for(Category c : Category.values()){
@ -41,7 +41,7 @@ public class TabGui extends RenderMod{
return; return;
Gui.drawRect(x+70, y, x+138, y+3+Resent.INSTANCE.modManager.modsInCategory(category).size()*16, 0x90000000); 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+18.5f+category.i*16, 0.6f, 0xff900000); RenderUtils.drawChromaRectangle(x+70, y+category.i*16, x+138, y+17f+category.i*16, 0.6f, 0xff900000);
offset = 0; offset = 0;
for(Mod m : Resent.INSTANCE.modManager.modsInCategory(category)){ for(Mod m : Resent.INSTANCE.modManager.modsInCategory(category)){