start 1.10.2

This commit is contained in:
marcin212 committed 2016-10-20 04:32:47 +02:00
1 parent f969f63b66
commit 6a7c4bf67d
826 files changed
+60550 -63758

No files matched your search

+47 -53
View File
@@ -1,63 +1,57 @@
//
// Decompiled by Procyon v0.5.30
//
package binnie.craftgui.window;
import binnie.craftgui.resource.minecraft.CraftGUITexture;
import binnie.craftgui.core.CraftGUI;
import binnie.craftgui.minecraft.MinecraftGUI;
import binnie.craftgui.core.geometry.IArea;
import binnie.craftgui.core.IWidget;
import binnie.craftgui.controls.core.Control;
import binnie.craftgui.core.CraftGUI;
import binnie.craftgui.core.IWidget;
import binnie.craftgui.core.geometry.IArea;
import binnie.craftgui.minecraft.MinecraftGUI;
import binnie.craftgui.resource.minecraft.CraftGUITexture;
public class Panel extends Control
{
IPanelType type;
public class Panel extends Control {
IPanelType type;
public Panel(final IWidget parent, final float x, final float y, final float width, final float height, final IPanelType type) {
super(parent, x, y, width, height);
this.type = type;
}
public Panel(final IWidget parent, final float x, final float y, final float width, final float height, final IPanelType type) {
super(parent, x, y, width, height);
this.type = type;
}
public Panel(final IWidget parent, final IArea area, final IPanelType type) {
this(parent, area.x(), area.y(), area.w(), area.h(), type);
}
public Panel(final IWidget parent, final IArea area, final IPanelType type) {
this(parent, area.x(), area.y(), area.w(), area.h(), type);
}
public IPanelType getType() {
return this.type;
}
public IPanelType getType() {
return this.type;
}
@Override
public void onRenderBackground() {
final IPanelType panelType = this.getType();
if (panelType instanceof MinecraftGUI.PanelType) {
switch ((MinecraftGUI.PanelType) panelType) {
case Black: {
CraftGUI.Render.texture(CraftGUITexture.PanelBlack, this.getArea());
break;
}
case Gray: {
CraftGUI.Render.texture(CraftGUITexture.PanelGray, this.getArea());
break;
}
case Tinted: {
CraftGUI.Render.texture(CraftGUITexture.PanelTinted, this.getArea());
break;
}
case Outline: {
CraftGUI.Render.texture(CraftGUITexture.Outline, this.getArea());
break;
}
case TabOutline: {
CraftGUI.Render.texture(CraftGUITexture.TabOutline, this.getArea());
break;
}
}
}
}
@Override
public void onRenderBackground() {
final IPanelType panelType = this.getType();
if (panelType instanceof MinecraftGUI.PanelType) {
switch ((MinecraftGUI.PanelType) panelType) {
case Black: {
CraftGUI.Render.texture(CraftGUITexture.PanelBlack, this.getArea());
break;
}
case Gray: {
CraftGUI.Render.texture(CraftGUITexture.PanelGray, this.getArea());
break;
}
case Tinted: {
CraftGUI.Render.texture(CraftGUITexture.PanelTinted, this.getArea());
break;
}
case Outline: {
CraftGUI.Render.texture(CraftGUITexture.Outline, this.getArea());
break;
}
case TabOutline: {
CraftGUI.Render.texture(CraftGUITexture.TabOutline, this.getArea());
break;
}
}
}
}
public interface IPanelType
{
}
public interface IPanelType {
}
}