Created
June 2, 2014 22:25
-
-
Save tterrag1098/a6757a941467c1110027 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tterrag.supermassivetech.client.gui; | |
import net.minecraft.client.Minecraft; | |
import net.minecraft.client.gui.GuiScreen; | |
import net.minecraft.util.ResourceLocation; | |
import org.lwjgl.util.Color; | |
import tterrag.supermassivetech.client.gui.button.ButtonSlider; | |
import tterrag.supermassivetech.lib.Reference; | |
import tterrag.supermassivetech.tile.TileWaypoint; | |
public class GuiWaypoint extends GuiScreen | |
{ | |
private TileWaypoint tile; | |
private int r,g,b; | |
private static final ResourceLocation texture = new ResourceLocation(Reference.MOD_TEXTUREPATH, "textures/gui/waypoint.png"); | |
public GuiWaypoint(TileWaypoint tile) | |
{ | |
this.tile = tile; | |
Color c = tile.waypoint.getColor(); | |
r = c.getRed(); | |
g = c.getGreen(); | |
b = c.getBlue(); | |
this.width = 200; | |
this.height = 200; | |
this.mc = Minecraft.getMinecraft(); | |
} | |
@SuppressWarnings("unchecked") | |
@Override | |
public void initGui() | |
{ | |
this.buttonList.add(new ButtonSlider(0, 5, 5, "Red", r)); | |
} | |
@Override | |
public void drawBackground(int p_146278_1_) | |
{ | |
this.mc.renderEngine.bindTexture(texture); | |
drawTexturedModalRect(50, 50, 0, 0, 100, 100); | |
super.drawBackground(p_146278_1_); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment