chromsa speed
This commit is contained in:
parent
e94473d402
commit
3829014b7c
14665
javascript/classes.js
14665
javascript/classes.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -26,7 +26,7 @@ public class TabGui extends RenderMod{
|
|||
|
||||
public void draw() {
|
||||
Gui.drawRect(x+5, y+2, x+70, y+3+Category.values().length*16, 0x90000000);
|
||||
RenderUtils.drawChromaRectangle(x+7, y+4.5f+current*16, x+68, y+16.5f+current*16, 0xff900000);
|
||||
RenderUtils.drawChromaRectangle(x+7, y+4.5f+current*16, x+68, y+16.5f+current*16, 5, 0xff900000);
|
||||
|
||||
int offset = 0;
|
||||
for(Category c : Category.values()){
|
||||
|
@ -41,7 +41,7 @@ public class TabGui extends RenderMod{
|
|||
return;
|
||||
|
||||
Gui.drawRect(x+70, y+2, x+138, y+3+Resent.INSTANCE.modManager.modsInCategory(category).size()*16, 0x90000000);
|
||||
RenderUtils.drawChromaRectangle(x+70, y+4.5f+category.i*16, x+136, y+16.5f+category.i*16, 0xff900000);
|
||||
RenderUtils.drawChromaRectangle(x+70, y+4.5f+category.i*16, x+136, y+16.5f+category.i*16, 5, 0xff900000);
|
||||
|
||||
offset = 0;
|
||||
for(Mod m : Resent.INSTANCE.modManager.modsInCategory(category)){
|
||||
|
|
|
@ -25,11 +25,11 @@ public class RenderUtils {
|
|||
}
|
||||
}
|
||||
|
||||
public static void drawChromaRectangle(float x, float y, float width, float height, int colorbecauseidontwanttoremovecolor) {
|
||||
public static void drawChromaRectangle(float x, float y, float width, float height, float speed, int colorbecauseidontwanttoremovecolor) {
|
||||
float i = x;
|
||||
while(true) {
|
||||
if(i+10 <= width) {
|
||||
Gui.drawRect(i, y, i+10, height,RenderUtils.astolfoColorsDraw(i, GuiScreen.width,10000f));
|
||||
Gui.drawRect(i, y, i+10, height,RenderUtils.astolfoColorsDraw(i, GuiScreen.width, speed*10000));
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ public class RenderUtils {
|
|||
}
|
||||
if(width-i != 0) {
|
||||
for(float h = i; h < width; h++) {
|
||||
Gui.drawRect(h, y, h+1, height,RenderUtils.astolfoColorsDraw(h, GuiScreen.width,10000f));
|
||||
Gui.drawRect(h, y, h+1, height,RenderUtils.astolfoColorsDraw(h, GuiScreen.width, speed*10000));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -55,10 +55,6 @@ public class RenderUtils {
|
|||
return Color.HSBtoRGB(hue, 0.5f, 1f);
|
||||
}
|
||||
|
||||
public static int astolfoColorsDraw(float yOffset, int yTotal) {
|
||||
return astolfoColorsDraw(yOffset, yTotal, 50000f);
|
||||
}
|
||||
|
||||
public static void drawRoundedRect(final float paramInt1, final float paramInt2, final float paramInt3, final float paramInt4, final float radius, final int color, boolean... rounded) {
|
||||
final float f1 = (color >> 24 & 0xFF) / 255.0f;
|
||||
final float f2 = (color >> 16 & 0xFF) / 255.0f;
|
||||
|
|
Loading…
Reference in New Issue
Block a user