mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-16 18:54:45 +00:00
* Licensed under LGPL * Remove TMI style * Remove Load/Save inventory state * Reworked ItemPanel so it's no longer used statically * BookmarkPanel inherits from ItemPanel * Rework LayoutManager * Bookmarks - including loading & saving * Utility/Cheat buttons line up and wrap based on GUI size
28 lines
654 B
Java
28 lines
654 B
Java
package codechicken.nei.config;
|
|
|
|
import codechicken.nei.Image;
|
|
import codechicken.nei.LayoutManager;
|
|
|
|
public class OptionGamemodes extends OptionStringSet
|
|
{
|
|
public OptionGamemodes(String name)
|
|
{
|
|
super(name);
|
|
|
|
options.add("creative");
|
|
options.add("creative+");
|
|
options.add("adventure");
|
|
}
|
|
|
|
@Override
|
|
public void drawIcons()
|
|
{
|
|
int x = buttonX();
|
|
LayoutManager.drawIcon(x+4, 4, new Image(132, 12, 12, 12));
|
|
x+=24;
|
|
LayoutManager.drawIcon(x+4, 4, new Image(156, 12, 12, 12));
|
|
x+=24;
|
|
LayoutManager.drawIcon(x+4, 4, new Image(168, 12, 12, 12));
|
|
}
|
|
}
|