This repository has been archived by the owner on Apr 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 348
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fleshing out a little more of the Alchenomicon gui
- Loading branch information
Showing
9 changed files
with
97 additions
and
35 deletions.
There are no files selected for viewing
This file contains 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
56 changes: 56 additions & 0 deletions
56
src/main/java/com/pahimar/ee3/client/gui/GuiAlchenomicon.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
package com.pahimar.ee3.client.gui; | ||
|
||
import com.pahimar.ee3.reference.Textures; | ||
import net.minecraft.client.gui.GuiButton; | ||
import net.minecraft.client.gui.GuiScreen; | ||
import net.minecraft.client.renderer.GlStateManager; | ||
import net.minecraft.util.ResourceLocation; | ||
|
||
import java.io.IOException; | ||
|
||
/** | ||
* TODO Finish Javadoc | ||
* | ||
* @author Pahimar (pahimar@gmail.com | ||
* @version 0.5.0 | ||
* @since 0.5.0 | ||
*/ | ||
public class GuiAlchenomicon extends GuiScreen { | ||
|
||
final int guiWidth = 256; | ||
final int guiHeight = 256; | ||
|
||
private static final ResourceLocation TEXTURE = Textures.Gui.ALCHENOMICON; | ||
|
||
@Override | ||
public final void initGui() { | ||
super.initGui(); | ||
} | ||
|
||
@Override | ||
public void updateScreen() { | ||
super.updateScreen(); | ||
} | ||
|
||
@Override | ||
public final void drawScreen(int mouseX, int mouseY, float partialTicks) { | ||
this.drawDefaultBackground(); | ||
GlStateManager.color(1f, 1f, 1f, 1f); | ||
mc.renderEngine.bindTexture(TEXTURE); | ||
drawTexturedModalRect(width / 2 - guiWidth / 2, height / 2 - guiHeight / 2, 0, 0, guiWidth, guiHeight); | ||
} | ||
|
||
@Override | ||
protected void actionPerformed(GuiButton button) { | ||
// NO-OP | ||
} | ||
@Override | ||
public boolean doesGuiPauseGame() { | ||
return false; | ||
} | ||
|
||
@Override | ||
protected void keyTyped(char typedChar, int keyCode) throws IOException { | ||
super.keyTyped(typedChar, keyCode); | ||
} | ||
} |
This file contains 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
2 changes: 1 addition & 1 deletion
2
.../pahimar/ee3/client/gui/ModGuiConfig.java → ...r/ee3/client/gui/config/ModGuiConfig.java
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.pahimar.ee3.reference; | ||
|
||
/** | ||
* Reference class holding ids for the various GUI's in the mod. | ||
* | ||
* @author Pahimar (pahimar@gmail.com | ||
* @version 0.5.0 | ||
* @since 0.5.0 | ||
*/ | ||
public class GuiIds { | ||
|
||
/** | ||
* The id for the Alchenomicon GUI | ||
* | ||
* @since 0.5.0 | ||
*/ | ||
public static final int ALCHENOMICON = 0; | ||
|
||
public static final int PORTABLE_CRAFTING = -1; | ||
public static final int CALCINATOR = -1; | ||
public static final int ALUDEL = -1; | ||
public static final int ALCHEMICAL_CHEST = -1; | ||
public static final int ALCHEMICAL_BAG = -1; | ||
public static final int GLASS_BELL = -1; | ||
public static final int RESEARCH_STATION = -1; | ||
public static final int AUGMENTATION_TABLE = -1; | ||
public static final int TRANSMUTATION_TABLET = -1; | ||
} |