Advertisement
Guest User

Untitled

a guest
Jun 11th, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.84 KB | None | 0 0
  1. package chemcraft.client.gui
  2.  
  3. import net.minecraft.client.gui.{GuiButton, GuiScreen}
  4. import net.minecraft.util.ResourceLocation
  5. import chemcraft.Constants
  6.  
  7.  
  8. /**
  9.  * GuiCollector
  10.  * ChemCraft
  11.  * License: GPL v3
  12.  **/
  13.  
  14. class GuiCollector extends GuiScreen{
  15.  
  16.   final val texture: ResourceLocation = new ResourceLocation(Constants.Modid + ":" + "textures/gui/guiCollector.png")
  17.   final val xSize: Int = 256
  18.   final val ySize: Int = 256
  19.   final val xStarting: Int = 64
  20.   final val yStarting: Int = 0
  21.  
  22.  
  23.   override def drawScreen(x: Int, y: Int, color: Float): Unit = {
  24.     this.mc.getTextureManager.bindTexture(texture)
  25.     val xPos = (this.width - xSize) / 2
  26.     val yPos = (this.height - ySize - 30) / 2
  27.     drawTexturedModalRect(xPos, yPos, xStarting, yStarting, xSize,  ySize)
  28.  
  29.   }
  30.  
  31.   override def doesGuiPauseGame(): Boolean = false
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement