mirror of
https://github.com/GTNewHorizons/Draconic-Evolution.git
synced 2026-11-24 22:14:51 +00:00
29/12/2014
This commit is contained in:
1 parent
0704631767
commit
7f85079031
5 files changed
+28
-27
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.ComponentGUI;
|
||||
import com.brandon3055.draconicevolution.client.interfaces.guicomponents.GUIBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
|
||||
/**
|
||||
* Created by Brandon on 26/12/2014.
|
||||
*/
|
||||
public class GUIToolConfig extends ComponentGUI {
|
||||
public class GUIToolConfig extends GUIBase {
|
||||
|
||||
EntityPlayer player;
|
||||
|
||||
|
||||
-19
@@ -1,19 +0,0 @@
|
||||
package com.brandon3055.draconicevolution.client.interfaces.guicomponents;
|
||||
|
||||
/**
|
||||
* Created by Brandon on 25/12/2014.
|
||||
*/
|
||||
|
||||
import net.minecraft.client.gui.GuiScreen;
|
||||
|
||||
/**Base class for gui components*/
|
||||
public class BaseComponent extends GuiScreen {
|
||||
|
||||
public boolean componentEnabled = true;
|
||||
|
||||
public void mouseClick(int x, int y, int button){
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
package com.brandon3055.draconicevolution.client.interfaces.guicomponents;
|
||||
|
||||
/**
|
||||
* Created by Brandon on 25/12/2014.
|
||||
*/
|
||||
|
||||
import net.minecraft.client.gui.Gui;
|
||||
|
||||
/**Base class for gui components*/
|
||||
public class ComponentBase extends Gui {
|
||||
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package com.brandon3055.draconicevolution.client.interfaces.guicomponents;
|
||||
|
||||
/**
|
||||
* Created by Brandon on 28/12/2014.
|
||||
*/
|
||||
public class ComponentCollection extends ComponentBase {
|
||||
|
||||
}
|
||||
+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 ComponentGUI extends GuiScreen {
|
||||
public abstract class GUIBase extends GuiScreen {
|
||||
|
||||
List<BaseComponent> guiComponents = new ArrayList<BaseComponent>();
|
||||
List<ComponentBase> guiComponents = new ArrayList<ComponentBase>();
|
||||
|
||||
public ComponentGUI(){
|
||||
public GUIBase(){
|
||||
}
|
||||
|
||||
public abstract void addComponents();
|
||||
@@ -23,13 +23,13 @@ public abstract class ComponentGUI extends GuiScreen {
|
||||
@Override
|
||||
public void drawScreen(int x, int y, float f) {
|
||||
super.drawScreen(x, y, f);
|
||||
for (BaseComponent b : guiComponents) b.drawScreen(x, y, f);
|
||||
//for (ComponentBase b : guiComponents) b.drawScreen(x, y, f);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void mouseClicked(int x, int y, int button) {
|
||||
super.mouseClicked(x, y, button);
|
||||
for (BaseComponent b : guiComponents) b.mouseClick(x, y, button);
|
||||
//for (ComponentBase b : guiComponents) b.mouseClick(x, y, button);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -52,7 +52,7 @@ public abstract class ComponentGUI extends GuiScreen {
|
||||
|
||||
@Override
|
||||
public void updateScreen() {
|
||||
for (BaseComponent b : guiComponents) b.updateScreen();
|
||||
//for (ComponentBase b : guiComponents) b.updateScreen();
|
||||
}
|
||||
|
||||
@Override
|
||||
Reference in new issue
Block a user