mirror of
https://github.com/GTNewHorizons/Draconic-Evolution.git
synced 2026-11-20 20:22:10 +00:00
28/12/2014
This commit is contained in:
1 parent
fd16b3e600
commit
0704631767
3 files changed
+9
-9
No files matched your search
+2
-2
@@ -1,12 +1,12 @@
|
||||
package com.brandon3055.draconicevolution.client.interfaces.componentguis;
|
||||
|
||||
import com.brandon3055.draconicevolution.client.interfaces.guicomponents.ComponentGUIBase;
|
||||
import com.brandon3055.draconicevolution.client.interfaces.guicomponents.ComponentGUI;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
|
||||
/**
|
||||
* Created by Brandon on 26/12/2014.
|
||||
*/
|
||||
public class GUIToolConfig extends ComponentGUIBase {
|
||||
public class GUIToolConfig extends ComponentGUI {
|
||||
|
||||
EntityPlayer player;
|
||||
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ package com.brandon3055.draconicevolution.client.interfaces.guicomponents;
|
||||
import net.minecraft.client.gui.GuiScreen;
|
||||
|
||||
/**Base class for gui components*/
|
||||
public class GUIComponentBase extends GuiScreen {
|
||||
public class BaseComponent extends GuiScreen {
|
||||
|
||||
public boolean componentEnabled = true;
|
||||
|
||||
+6
-6
@@ -11,11 +11,11 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**Base class for guis that use gui components*/
|
||||
public abstract class ComponentGUIBase extends GuiScreen {
|
||||
public abstract class ComponentGUI extends GuiScreen {
|
||||
|
||||
List<GUIComponentBase> guiComponents = new ArrayList<GUIComponentBase>();
|
||||
List<BaseComponent> guiComponents = new ArrayList<BaseComponent>();
|
||||
|
||||
public ComponentGUIBase(){
|
||||
public ComponentGUI(){
|
||||
}
|
||||
|
||||
public abstract void addComponents();
|
||||
@@ -23,13 +23,13 @@ public abstract class ComponentGUIBase extends GuiScreen {
|
||||
@Override
|
||||
public void drawScreen(int x, int y, float f) {
|
||||
super.drawScreen(x, y, f);
|
||||
for (GUIComponentBase b : guiComponents) b.drawScreen(x, y, f);
|
||||
for (BaseComponent b : guiComponents) b.drawScreen(x, y, f);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void mouseClicked(int x, int y, int button) {
|
||||
super.mouseClicked(x, y, button);
|
||||
for (GUIComponentBase b : guiComponents) b.mouseClick(x, y, button);
|
||||
for (BaseComponent b : guiComponents) b.mouseClick(x, y, button);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -52,7 +52,7 @@ public abstract class ComponentGUIBase extends GuiScreen {
|
||||
|
||||
@Override
|
||||
public void updateScreen() {
|
||||
for (GUIComponentBase b : guiComponents) b.updateScreen();
|
||||
for (BaseComponent b : guiComponents) b.updateScreen();
|
||||
}
|
||||
|
||||
@Override
|
||||
Reference in new issue
Block a user