tabgui saves options
This commit is contained in:
parent
3829014b7c
commit
c0a4ddc60b
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() {
|
public void draw() {
|
||||||
Gui.drawRect(x+5, y+2, x+70, y+3+Category.values().length*16, 0x90000000);
|
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, 5, 0xff900000);
|
RenderUtils.drawChromaRectangle(x+5, y+2+current*16, x+70, y+18.5f+current*16, 10, 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+2, x+138, y+3+Resent.INSTANCE.modManager.modsInCategory(category).size()*16, 0x90000000);
|
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, 5, 0xff900000);
|
RenderUtils.drawChromaRectangle(x+70, y+2+category.i*16, x+138, y+18.5f+category.i*16, 10, 0xff900000);
|
||||||
|
|
||||||
offset = 0;
|
offset = 0;
|
||||||
for(Mod m : Resent.INSTANCE.modManager.modsInCategory(category)){
|
for(Mod m : Resent.INSTANCE.modManager.modsInCategory(category)){
|
||||||
|
@ -86,6 +86,7 @@ public class TabGui extends RenderMod{
|
||||||
if (k ==KeyboardConstants.KEY_RIGHT){
|
if (k ==KeyboardConstants.KEY_RIGHT){
|
||||||
if(expanded && Resent.INSTANCE.modManager.modsInCategory(category).size() != 0 && Resent.INSTANCE.modManager.modsInCategory(category).get(category.i).name != "TabGUI"){
|
if(expanded && Resent.INSTANCE.modManager.modsInCategory(category).size() != 0 && Resent.INSTANCE.modManager.modsInCategory(category).get(category.i).name != "TabGUI"){
|
||||||
Resent.INSTANCE.modManager.modsInCategory(category).get(category.i).toggle();
|
Resent.INSTANCE.modManager.modsInCategory(category).get(category.i).toggle();
|
||||||
|
mc.gameSettings.saveOptions();
|
||||||
}else {
|
}else {
|
||||||
expanded = true;
|
expanded = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user