hotbar mod and clickgui animations
This commit is contained in:
parent
eee9d61bca
commit
a4ba04f575
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -6,7 +6,7 @@ import dev.resent.setting.ModeSetting;
|
|||
|
||||
public class HotbarAnimation extends Mod{
|
||||
public HotbarAnimation(){
|
||||
super("Hotbar animation", Category.MISC, true);
|
||||
super("Hotbar", Category.MISC, true);
|
||||
addSetting(speed);
|
||||
}
|
||||
|
||||
|
|
|
@ -143,6 +143,7 @@ public class ClickGUI extends GuiScreen {
|
|||
// white line
|
||||
Gui.drawRect(x - 8, height + 29, width + 33, height + 30, -1);
|
||||
|
||||
GlStateManager.popMatrix();
|
||||
for (Mod m : Resent.INSTANCE.modManager.modules) {
|
||||
if (this.modWatching == null) {
|
||||
int fh = fr.FONT_HEIGHT;
|
||||
|
@ -228,8 +229,6 @@ public class ClickGUI extends GuiScreen {
|
|||
// 200,90).getRGB());
|
||||
}
|
||||
|
||||
GlStateManager.popMatrix();
|
||||
|
||||
if (xo > width / 2) {
|
||||
xo = 0;
|
||||
off += 3;
|
||||
|
|
|
@ -20,7 +20,7 @@ public class PreGUI extends GuiScreen{
|
|||
|
||||
Gui.drawRect(GuiScreen.width/2-30, GuiScreen.height/2+20, GuiScreen.width/2+50, GuiScreen.height/2+50, isMouseInside(i, j, GuiScreen.width/2-30, GuiScreen.height/2+20, GuiScreen.width/2+50, GuiScreen.height/2+50) ? 0x40FFFFFF : 0x50FFFFFF);
|
||||
RenderUtils.drawRectOutline(GuiScreen.width/2-30, GuiScreen.height/2+20, GuiScreen.width/2+50, GuiScreen.height/2+50, 0x080FFFFFF);
|
||||
RenderUtils.drawCenteredScaledString("Settings", GuiScreen.width/2+10, GuiScreen.height/2+35-mc.fontRendererObj.FONT_HEIGHT/2, -1, 1.25f);
|
||||
RenderUtils.drawCenteredScaledString("Mods", GuiScreen.width/2+10, GuiScreen.height/2+35-mc.fontRendererObj.FONT_HEIGHT/2, -1, 1.25f);
|
||||
|
||||
/*Gui.drawRect(GuiScreen.width/2-30, GuiScreen.height/2+55, GuiScreen.width/2+50, GuiScreen.height/2+85, isMouseInside(i, j, GuiScreen.width/2-30, GuiScreen.height/2+55, GuiScreen.width/2+50, GuiScreen.height/2+85) ? 0x40FFFFFF : 0x50FFFFFF);
|
||||
RenderUtils.drawRectOutline(GuiScreen.width/2-30, GuiScreen.height/2+55, GuiScreen.width/2+50, GuiScreen.height/2+85, 0x080FFFFFF);
|
||||
|
|
|
@ -354,13 +354,13 @@ public class GuiIngame extends Gui {
|
|||
this.zLevel = -90.0F;
|
||||
|
||||
simpleAnimation.setAnimation(entityplayer.inventory.currentItem * 20, ModManager.hotbar.getSpeed());
|
||||
int itemX = i - 91 + ((int) simpleAnimation.getValue());
|
||||
int itemX = i - 90 + ((int) simpleAnimation.getValue());
|
||||
|
||||
if(!ModManager.hotbar.isEnabled()){
|
||||
this.drawTexturedModalRect(i - 91, sr.getScaledHeight() - 22, 0, 0, 182, 22);
|
||||
this.drawTexturedModalRect(i - 91 - 1 + entityplayer.inventory.currentItem * 20, sr.getScaledHeight() - 22 - 1, 0, 22, 24, 22);
|
||||
}else {
|
||||
drawRect(itemX, sr.getScaledHeight() - 22, itemX + 22, sr.getScaledHeight(), new Color(230, 230, 230, 180).getRGB());
|
||||
drawRect(itemX, sr.getScaledHeight() - 21, itemX + 24, sr.getScaledHeight(), new Color(230, 230, 230, 180).getRGB());
|
||||
}
|
||||
|
||||
this.zLevel = f;
|
||||
|
|
Loading…
Reference in New Issue
Block a user