Funky fresh colorful, transparent wires
parent
0b3f389337
commit
d50e817bcd
@ -0,0 +1,49 @@
|
|||||||
|
package net.brokenmoon.afloydwiremod.gui;
|
||||||
|
|
||||||
|
import net.brokenmoon.afloydwiremod.item.ToolWiring;
|
||||||
|
import net.brokenmoon.afloydwiremod.tileentity.ChipTileEntity;
|
||||||
|
import net.minecraft.src.EntityPlayerSP;
|
||||||
|
import net.minecraft.src.GuiButton;
|
||||||
|
import net.minecraft.src.GuiScreen;
|
||||||
|
import net.minecraft.src.GuiSlider;
|
||||||
|
|
||||||
|
public class GuiWireTool extends GuiScreen {
|
||||||
|
public ToolWiring tool;
|
||||||
|
public GuiWireTool(EntityPlayerSP entityPlayerSP, ToolWiring toolWiring) {
|
||||||
|
super.initGui();
|
||||||
|
this.tool = toolWiring;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void initGui() {
|
||||||
|
this.controlList.add(new GuiSlider(1, this.width/2-100, this.height/2-40, 200, 20, "Red", tool.red));
|
||||||
|
this.controlList.add(new GuiSlider(2, this.width/2-100, this.height/2-20, 200, 20, "Green", tool.green));
|
||||||
|
this.controlList.add(new GuiSlider(3, this.width/2-100, this.height/2+00, 200, 20, "Blue", tool.blue));
|
||||||
|
this.controlList.add(new GuiSlider(4, this.width/2-100, this.height/2+20, 200, 20, "Alpha", tool.alpha));
|
||||||
|
this.controlList.add(new GuiSlider(5, this.width/2-100, this.height/2+40, 200, 20, "Width", tool.width));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void actionPerformed(GuiButton guiButton){
|
||||||
|
if(guiButton instanceof GuiSlider){
|
||||||
|
switch(guiButton.id){
|
||||||
|
case 1:
|
||||||
|
tool.red = ((GuiSlider) guiButton).sliderValue;
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
tool.green = ((GuiSlider) guiButton).sliderValue;
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
tool.blue = ((GuiSlider) guiButton).sliderValue;
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
tool.alpha = ((GuiSlider) guiButton).sliderValue;
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
tool.width = ((GuiSlider) guiButton).sliderValue;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Binary file not shown.
Before Width: | Height: | Size: 349 B After Width: | Height: | Size: 4.3 KiB |
Loading…
Reference in New Issue