mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-29 00:08:50 +00:00
Bugfixes
This commit is contained in:
1 parent
d645732eb3
commit
0f1333b308
8 files changed
+71
-45
No files matched your search
@@ -1,5 +1,6 @@
|
||||
package codechicken.nei.config;
|
||||
|
||||
import codechicken.nei.Image;
|
||||
import codechicken.nei.LayoutManager;
|
||||
import codechicken.nei.drawable.DrawableBuilder;
|
||||
import codechicken.nei.drawable.DrawableResource;
|
||||
@@ -30,17 +31,8 @@ public class OptionToggleButtonBoubs extends OptionButton {
|
||||
public void drawButton(int mx, int my) {
|
||||
Rectangle b = buttonSize();
|
||||
LayoutManager.drawButtonBackground(b.x, b.y, b.width, b.height, true, getButtonTex(mx, my));
|
||||
GL11.glColor4f(1, 1, 1, 1);
|
||||
GL11.glEnable(GL11.GL_BLEND);
|
||||
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
|
||||
|
||||
if(state()) {
|
||||
coolBoubs.draw(b.x + (b.width/2) - (coolBoubs.getWidth()/2), b.y);
|
||||
}else {
|
||||
angryBoubs.draw(b.x + (b.width/2) - (angryBoubs.getWidth()/2), b.y);
|
||||
}
|
||||
GL11.glDisable(GL11.GL_BLEND);
|
||||
|
||||
final Image image = state() ? coolBoubs : angryBoubs;
|
||||
LayoutManager.drawIcon(b.x + (b.width/2) - (coolBoubs.getWidth()/2), b.y, image);
|
||||
}
|
||||
|
||||
public String getButtonText() {
|
||||
|
||||
Reference in new issue
Block a user