Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

LiquidBounce Forum

  1. Home
  2. Kotlin/Java
  3. Share My UIs && Shader background

Share My UIs && Shader background

Scheduled Pinned Locked Moved Kotlin/Java
6 Posts 4 Posters 2.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • YounKooY Offline
    YounKooY Offline
    YounKoo
    wrote on last edited by YounKoo
    #1

    My Simple GuiMainMenu As this

    ![RJ1$~M7]~~B~XF(RP1IX{E.png
    My Shader
    background.zip
    Code

    package master.koitoyuu.ui
    
    import master.koitoyuu.ui.login.LoginButton
    import master.koitoyuu.utils.Translate
    import net.ccbluex.liquidbounce.ui.client.GuiBackground
    import net.ccbluex.liquidbounce.ui.client.GuiModsMenu
    import net.ccbluex.liquidbounce.ui.client.altmanager.GuiAltManager
    import net.ccbluex.liquidbounce.ui.font.Fonts
    import net.minecraft.client.gui.*
    import net.minecraft.client.renderer.GlStateManager
    import net.minecraft.client.resources.I18n
    import net.minecraft.util.ResourceLocation
    import org.lwjgl.opengl.GL11
    import java.awt.Color
    
    class MeMainMenu : GuiScreen(), GuiYesNoCallback {
        var alpha = 255
        private var currentX = 0f
        private var currentY = 0f
        var translate: Translate? = null
        var hue = 0.0f
    
    
        override fun initGui() {
            val defaultHeight = this.height / 4 + 30
            val defaultWidth = this.width / 2 - 60
            val buttonWidth = 120
            val buttonHeight = 20
            this.buttonList.add(LoginButton(0, defaultWidth, defaultHeight, buttonWidth, buttonHeight, "Single Player"))
            this.buttonList.add(LoginButton(1, defaultWidth, defaultHeight + 25, buttonWidth, buttonHeight, "Multi Player"))
            this.buttonList.add(LoginButton(2, defaultWidth, defaultHeight + 50, buttonWidth, buttonHeight, "Alt Manager"))
            this.buttonList.add(LoginButton(3, defaultWidth, defaultHeight + 75, buttonWidth, buttonHeight, "Script Manager"))
            this.buttonList.add(LoginButton(4, defaultWidth, defaultHeight + 100, buttonWidth, buttonHeight, "Back Ground"))
            this.buttonList.add(LoginButton(5, defaultWidth, defaultHeight + 125, buttonWidth, buttonHeight, "Game Options"))
            this.buttonList.add(LoginButton(6, defaultWidth, defaultHeight + 150, buttonWidth, buttonHeight, "Quit Game"))
            translate = Translate(0f, 0f)
            super.initGui()
        }
    
        override fun drawScreen(mouseX: Int, mouseY: Int, partialTicks: Float) {
            val defaultHeight = this.height / 4 + 30
            val defaultWidth = this.width / 2 - 60
    
            //ChangeInfos
            val changes = ArrayList<String>()
            changes.add("#221017")
            changes.add("[+] Add LoginGui")
            changes.add("[+] Add New Menu")
            changes.add("")
    
            drawBackground(0)
            hue += 1f
            if (hue > 255.0f) {
                hue = 0.0f
            }
            translate?.interpolate(width.toFloat(), height.toFloat(), 4.0)
            val xmod2 = width / 2 - (translate!!.x / 2).toDouble()
            val ymod2 = height / 2 - (translate!!.y / 2).toDouble()
            GlStateManager.translate(xmod2, ymod2, 0.0)
            GlStateManager.scale(translate!!.x / width, translate!!.y / height, 1f)
    
            //ClientUpdate
            Fonts.sf40.drawStringWithShadow("Changelog:", 5f, 5f, Color(255, 255, 255, 220).rgb)
            //循环绘制info
            for (i in changes.indices) {
                Fonts.sf35.drawStringWithShadow(changes[i], 5f, 16f + i * 12, Color(255, 255, 255, 220).rgb)
            }
    
            super.drawScreen(mouseX, mouseY, partialTicks)
        }
    
    
        override fun actionPerformed(button: GuiButton) {
            when (button.id) {
                0 -> mc.displayGuiScreen(GuiSelectWorld(this))
                1 -> mc.displayGuiScreen(GuiMultiplayer(this))
                2 -> mc.displayGuiScreen(GuiAltManager(this))
                3 -> mc.displayGuiScreen(GuiModsMenu(this))
                4 -> mc.displayGuiScreen(GuiBackground(this))
                5 -> mc.displayGuiScreen(GuiOptions(this, mc.gameSettings))
                6 -> mc.shutdown()
            }
        }
        override fun keyTyped(typedChar: Char, keyCode: Int) {}
    }
    

    A Simple GuiLogin As this![V99ODWC52S_7@{J3{HL{ZE.png

    My GuiLogin Shader
    loginground.zip

    Codes

    login.zip

    W soicaublogS M 5 Replies Last reply
    0
    • YounKooY YounKoo

      My Simple GuiMainMenu As this

      ![RJ1$~M7]~~B~XF(RP1IX{E.png
      My Shader
      background.zip
      Code

      package master.koitoyuu.ui
      
      import master.koitoyuu.ui.login.LoginButton
      import master.koitoyuu.utils.Translate
      import net.ccbluex.liquidbounce.ui.client.GuiBackground
      import net.ccbluex.liquidbounce.ui.client.GuiModsMenu
      import net.ccbluex.liquidbounce.ui.client.altmanager.GuiAltManager
      import net.ccbluex.liquidbounce.ui.font.Fonts
      import net.minecraft.client.gui.*
      import net.minecraft.client.renderer.GlStateManager
      import net.minecraft.client.resources.I18n
      import net.minecraft.util.ResourceLocation
      import org.lwjgl.opengl.GL11
      import java.awt.Color
      
      class MeMainMenu : GuiScreen(), GuiYesNoCallback {
          var alpha = 255
          private var currentX = 0f
          private var currentY = 0f
          var translate: Translate? = null
          var hue = 0.0f
      
      
          override fun initGui() {
              val defaultHeight = this.height / 4 + 30
              val defaultWidth = this.width / 2 - 60
              val buttonWidth = 120
              val buttonHeight = 20
              this.buttonList.add(LoginButton(0, defaultWidth, defaultHeight, buttonWidth, buttonHeight, "Single Player"))
              this.buttonList.add(LoginButton(1, defaultWidth, defaultHeight + 25, buttonWidth, buttonHeight, "Multi Player"))
              this.buttonList.add(LoginButton(2, defaultWidth, defaultHeight + 50, buttonWidth, buttonHeight, "Alt Manager"))
              this.buttonList.add(LoginButton(3, defaultWidth, defaultHeight + 75, buttonWidth, buttonHeight, "Script Manager"))
              this.buttonList.add(LoginButton(4, defaultWidth, defaultHeight + 100, buttonWidth, buttonHeight, "Back Ground"))
              this.buttonList.add(LoginButton(5, defaultWidth, defaultHeight + 125, buttonWidth, buttonHeight, "Game Options"))
              this.buttonList.add(LoginButton(6, defaultWidth, defaultHeight + 150, buttonWidth, buttonHeight, "Quit Game"))
              translate = Translate(0f, 0f)
              super.initGui()
          }
      
          override fun drawScreen(mouseX: Int, mouseY: Int, partialTicks: Float) {
              val defaultHeight = this.height / 4 + 30
              val defaultWidth = this.width / 2 - 60
      
              //ChangeInfos
              val changes = ArrayList<String>()
              changes.add("#221017")
              changes.add("[+] Add LoginGui")
              changes.add("[+] Add New Menu")
              changes.add("")
      
              drawBackground(0)
              hue += 1f
              if (hue > 255.0f) {
                  hue = 0.0f
              }
              translate?.interpolate(width.toFloat(), height.toFloat(), 4.0)
              val xmod2 = width / 2 - (translate!!.x / 2).toDouble()
              val ymod2 = height / 2 - (translate!!.y / 2).toDouble()
              GlStateManager.translate(xmod2, ymod2, 0.0)
              GlStateManager.scale(translate!!.x / width, translate!!.y / height, 1f)
      
              //ClientUpdate
              Fonts.sf40.drawStringWithShadow("Changelog:", 5f, 5f, Color(255, 255, 255, 220).rgb)
              //循环绘制info
              for (i in changes.indices) {
                  Fonts.sf35.drawStringWithShadow(changes[i], 5f, 16f + i * 12, Color(255, 255, 255, 220).rgb)
              }
      
              super.drawScreen(mouseX, mouseY, partialTicks)
          }
      
      
          override fun actionPerformed(button: GuiButton) {
              when (button.id) {
                  0 -> mc.displayGuiScreen(GuiSelectWorld(this))
                  1 -> mc.displayGuiScreen(GuiMultiplayer(this))
                  2 -> mc.displayGuiScreen(GuiAltManager(this))
                  3 -> mc.displayGuiScreen(GuiModsMenu(this))
                  4 -> mc.displayGuiScreen(GuiBackground(this))
                  5 -> mc.displayGuiScreen(GuiOptions(this, mc.gameSettings))
                  6 -> mc.shutdown()
              }
          }
          override fun keyTyped(typedChar: Char, keyCode: Int) {}
      }
      

      A Simple GuiLogin As this![V99ODWC52S_7@{J3{HL{ZE.png

      My GuiLogin Shader
      loginground.zip

      Codes

      login.zip

      W Offline
      W Offline
      wdsjxj8451
      wrote on last edited by
      #2

      @YounKoo 可以出一个hwid的教程吗

      1 Reply Last reply
      0
      • YounKooY YounKoo

        My Simple GuiMainMenu As this

        ![RJ1$~M7]~~B~XF(RP1IX{E.png
        My Shader
        background.zip
        Code

        package master.koitoyuu.ui
        
        import master.koitoyuu.ui.login.LoginButton
        import master.koitoyuu.utils.Translate
        import net.ccbluex.liquidbounce.ui.client.GuiBackground
        import net.ccbluex.liquidbounce.ui.client.GuiModsMenu
        import net.ccbluex.liquidbounce.ui.client.altmanager.GuiAltManager
        import net.ccbluex.liquidbounce.ui.font.Fonts
        import net.minecraft.client.gui.*
        import net.minecraft.client.renderer.GlStateManager
        import net.minecraft.client.resources.I18n
        import net.minecraft.util.ResourceLocation
        import org.lwjgl.opengl.GL11
        import java.awt.Color
        
        class MeMainMenu : GuiScreen(), GuiYesNoCallback {
            var alpha = 255
            private var currentX = 0f
            private var currentY = 0f
            var translate: Translate? = null
            var hue = 0.0f
        
        
            override fun initGui() {
                val defaultHeight = this.height / 4 + 30
                val defaultWidth = this.width / 2 - 60
                val buttonWidth = 120
                val buttonHeight = 20
                this.buttonList.add(LoginButton(0, defaultWidth, defaultHeight, buttonWidth, buttonHeight, "Single Player"))
                this.buttonList.add(LoginButton(1, defaultWidth, defaultHeight + 25, buttonWidth, buttonHeight, "Multi Player"))
                this.buttonList.add(LoginButton(2, defaultWidth, defaultHeight + 50, buttonWidth, buttonHeight, "Alt Manager"))
                this.buttonList.add(LoginButton(3, defaultWidth, defaultHeight + 75, buttonWidth, buttonHeight, "Script Manager"))
                this.buttonList.add(LoginButton(4, defaultWidth, defaultHeight + 100, buttonWidth, buttonHeight, "Back Ground"))
                this.buttonList.add(LoginButton(5, defaultWidth, defaultHeight + 125, buttonWidth, buttonHeight, "Game Options"))
                this.buttonList.add(LoginButton(6, defaultWidth, defaultHeight + 150, buttonWidth, buttonHeight, "Quit Game"))
                translate = Translate(0f, 0f)
                super.initGui()
            }
        
            override fun drawScreen(mouseX: Int, mouseY: Int, partialTicks: Float) {
                val defaultHeight = this.height / 4 + 30
                val defaultWidth = this.width / 2 - 60
        
                //ChangeInfos
                val changes = ArrayList<String>()
                changes.add("#221017")
                changes.add("[+] Add LoginGui")
                changes.add("[+] Add New Menu")
                changes.add("")
        
                drawBackground(0)
                hue += 1f
                if (hue > 255.0f) {
                    hue = 0.0f
                }
                translate?.interpolate(width.toFloat(), height.toFloat(), 4.0)
                val xmod2 = width / 2 - (translate!!.x / 2).toDouble()
                val ymod2 = height / 2 - (translate!!.y / 2).toDouble()
                GlStateManager.translate(xmod2, ymod2, 0.0)
                GlStateManager.scale(translate!!.x / width, translate!!.y / height, 1f)
        
                //ClientUpdate
                Fonts.sf40.drawStringWithShadow("Changelog:", 5f, 5f, Color(255, 255, 255, 220).rgb)
                //循环绘制info
                for (i in changes.indices) {
                    Fonts.sf35.drawStringWithShadow(changes[i], 5f, 16f + i * 12, Color(255, 255, 255, 220).rgb)
                }
        
                super.drawScreen(mouseX, mouseY, partialTicks)
            }
        
        
            override fun actionPerformed(button: GuiButton) {
                when (button.id) {
                    0 -> mc.displayGuiScreen(GuiSelectWorld(this))
                    1 -> mc.displayGuiScreen(GuiMultiplayer(this))
                    2 -> mc.displayGuiScreen(GuiAltManager(this))
                    3 -> mc.displayGuiScreen(GuiModsMenu(this))
                    4 -> mc.displayGuiScreen(GuiBackground(this))
                    5 -> mc.displayGuiScreen(GuiOptions(this, mc.gameSettings))
                    6 -> mc.shutdown()
                }
            }
            override fun keyTyped(typedChar: Char, keyCode: Int) {}
        }
        

        A Simple GuiLogin As this![V99ODWC52S_7@{J3{HL{ZE.png

        My GuiLogin Shader
        loginground.zip

        Codes

        login.zip

        soicaublogS Offline
        soicaublogS Offline
        soicaublog
        wrote on last edited by
        #3

        @YounKoo thank, tip

        1 Reply Last reply
        1
        • YounKooY YounKoo

          My Simple GuiMainMenu As this

          ![RJ1$~M7]~~B~XF(RP1IX{E.png
          My Shader
          background.zip
          Code

          package master.koitoyuu.ui
          
          import master.koitoyuu.ui.login.LoginButton
          import master.koitoyuu.utils.Translate
          import net.ccbluex.liquidbounce.ui.client.GuiBackground
          import net.ccbluex.liquidbounce.ui.client.GuiModsMenu
          import net.ccbluex.liquidbounce.ui.client.altmanager.GuiAltManager
          import net.ccbluex.liquidbounce.ui.font.Fonts
          import net.minecraft.client.gui.*
          import net.minecraft.client.renderer.GlStateManager
          import net.minecraft.client.resources.I18n
          import net.minecraft.util.ResourceLocation
          import org.lwjgl.opengl.GL11
          import java.awt.Color
          
          class MeMainMenu : GuiScreen(), GuiYesNoCallback {
              var alpha = 255
              private var currentX = 0f
              private var currentY = 0f
              var translate: Translate? = null
              var hue = 0.0f
          
          
              override fun initGui() {
                  val defaultHeight = this.height / 4 + 30
                  val defaultWidth = this.width / 2 - 60
                  val buttonWidth = 120
                  val buttonHeight = 20
                  this.buttonList.add(LoginButton(0, defaultWidth, defaultHeight, buttonWidth, buttonHeight, "Single Player"))
                  this.buttonList.add(LoginButton(1, defaultWidth, defaultHeight + 25, buttonWidth, buttonHeight, "Multi Player"))
                  this.buttonList.add(LoginButton(2, defaultWidth, defaultHeight + 50, buttonWidth, buttonHeight, "Alt Manager"))
                  this.buttonList.add(LoginButton(3, defaultWidth, defaultHeight + 75, buttonWidth, buttonHeight, "Script Manager"))
                  this.buttonList.add(LoginButton(4, defaultWidth, defaultHeight + 100, buttonWidth, buttonHeight, "Back Ground"))
                  this.buttonList.add(LoginButton(5, defaultWidth, defaultHeight + 125, buttonWidth, buttonHeight, "Game Options"))
                  this.buttonList.add(LoginButton(6, defaultWidth, defaultHeight + 150, buttonWidth, buttonHeight, "Quit Game"))
                  translate = Translate(0f, 0f)
                  super.initGui()
              }
          
              override fun drawScreen(mouseX: Int, mouseY: Int, partialTicks: Float) {
                  val defaultHeight = this.height / 4 + 30
                  val defaultWidth = this.width / 2 - 60
          
                  //ChangeInfos
                  val changes = ArrayList<String>()
                  changes.add("#221017")
                  changes.add("[+] Add LoginGui")
                  changes.add("[+] Add New Menu")
                  changes.add("")
          
                  drawBackground(0)
                  hue += 1f
                  if (hue > 255.0f) {
                      hue = 0.0f
                  }
                  translate?.interpolate(width.toFloat(), height.toFloat(), 4.0)
                  val xmod2 = width / 2 - (translate!!.x / 2).toDouble()
                  val ymod2 = height / 2 - (translate!!.y / 2).toDouble()
                  GlStateManager.translate(xmod2, ymod2, 0.0)
                  GlStateManager.scale(translate!!.x / width, translate!!.y / height, 1f)
          
                  //ClientUpdate
                  Fonts.sf40.drawStringWithShadow("Changelog:", 5f, 5f, Color(255, 255, 255, 220).rgb)
                  //循环绘制info
                  for (i in changes.indices) {
                      Fonts.sf35.drawStringWithShadow(changes[i], 5f, 16f + i * 12, Color(255, 255, 255, 220).rgb)
                  }
          
                  super.drawScreen(mouseX, mouseY, partialTicks)
              }
          
          
              override fun actionPerformed(button: GuiButton) {
                  when (button.id) {
                      0 -> mc.displayGuiScreen(GuiSelectWorld(this))
                      1 -> mc.displayGuiScreen(GuiMultiplayer(this))
                      2 -> mc.displayGuiScreen(GuiAltManager(this))
                      3 -> mc.displayGuiScreen(GuiModsMenu(this))
                      4 -> mc.displayGuiScreen(GuiBackground(this))
                      5 -> mc.displayGuiScreen(GuiOptions(this, mc.gameSettings))
                      6 -> mc.shutdown()
                  }
              }
              override fun keyTyped(typedChar: Char, keyCode: Int) {}
          }
          

          A Simple GuiLogin As this![V99ODWC52S_7@{J3{HL{ZE.png

          My GuiLogin Shader
          loginground.zip

          Codes

          login.zip

          M Offline
          M Offline
          Malware
          wrote on last edited by
          #4
          This post is deleted!
          1 Reply Last reply
          0
          • YounKooY YounKoo

            My Simple GuiMainMenu As this

            ![RJ1$~M7]~~B~XF(RP1IX{E.png
            My Shader
            background.zip
            Code

            package master.koitoyuu.ui
            
            import master.koitoyuu.ui.login.LoginButton
            import master.koitoyuu.utils.Translate
            import net.ccbluex.liquidbounce.ui.client.GuiBackground
            import net.ccbluex.liquidbounce.ui.client.GuiModsMenu
            import net.ccbluex.liquidbounce.ui.client.altmanager.GuiAltManager
            import net.ccbluex.liquidbounce.ui.font.Fonts
            import net.minecraft.client.gui.*
            import net.minecraft.client.renderer.GlStateManager
            import net.minecraft.client.resources.I18n
            import net.minecraft.util.ResourceLocation
            import org.lwjgl.opengl.GL11
            import java.awt.Color
            
            class MeMainMenu : GuiScreen(), GuiYesNoCallback {
                var alpha = 255
                private var currentX = 0f
                private var currentY = 0f
                var translate: Translate? = null
                var hue = 0.0f
            
            
                override fun initGui() {
                    val defaultHeight = this.height / 4 + 30
                    val defaultWidth = this.width / 2 - 60
                    val buttonWidth = 120
                    val buttonHeight = 20
                    this.buttonList.add(LoginButton(0, defaultWidth, defaultHeight, buttonWidth, buttonHeight, "Single Player"))
                    this.buttonList.add(LoginButton(1, defaultWidth, defaultHeight + 25, buttonWidth, buttonHeight, "Multi Player"))
                    this.buttonList.add(LoginButton(2, defaultWidth, defaultHeight + 50, buttonWidth, buttonHeight, "Alt Manager"))
                    this.buttonList.add(LoginButton(3, defaultWidth, defaultHeight + 75, buttonWidth, buttonHeight, "Script Manager"))
                    this.buttonList.add(LoginButton(4, defaultWidth, defaultHeight + 100, buttonWidth, buttonHeight, "Back Ground"))
                    this.buttonList.add(LoginButton(5, defaultWidth, defaultHeight + 125, buttonWidth, buttonHeight, "Game Options"))
                    this.buttonList.add(LoginButton(6, defaultWidth, defaultHeight + 150, buttonWidth, buttonHeight, "Quit Game"))
                    translate = Translate(0f, 0f)
                    super.initGui()
                }
            
                override fun drawScreen(mouseX: Int, mouseY: Int, partialTicks: Float) {
                    val defaultHeight = this.height / 4 + 30
                    val defaultWidth = this.width / 2 - 60
            
                    //ChangeInfos
                    val changes = ArrayList<String>()
                    changes.add("#221017")
                    changes.add("[+] Add LoginGui")
                    changes.add("[+] Add New Menu")
                    changes.add("")
            
                    drawBackground(0)
                    hue += 1f
                    if (hue > 255.0f) {
                        hue = 0.0f
                    }
                    translate?.interpolate(width.toFloat(), height.toFloat(), 4.0)
                    val xmod2 = width / 2 - (translate!!.x / 2).toDouble()
                    val ymod2 = height / 2 - (translate!!.y / 2).toDouble()
                    GlStateManager.translate(xmod2, ymod2, 0.0)
                    GlStateManager.scale(translate!!.x / width, translate!!.y / height, 1f)
            
                    //ClientUpdate
                    Fonts.sf40.drawStringWithShadow("Changelog:", 5f, 5f, Color(255, 255, 255, 220).rgb)
                    //循环绘制info
                    for (i in changes.indices) {
                        Fonts.sf35.drawStringWithShadow(changes[i], 5f, 16f + i * 12, Color(255, 255, 255, 220).rgb)
                    }
            
                    super.drawScreen(mouseX, mouseY, partialTicks)
                }
            
            
                override fun actionPerformed(button: GuiButton) {
                    when (button.id) {
                        0 -> mc.displayGuiScreen(GuiSelectWorld(this))
                        1 -> mc.displayGuiScreen(GuiMultiplayer(this))
                        2 -> mc.displayGuiScreen(GuiAltManager(this))
                        3 -> mc.displayGuiScreen(GuiModsMenu(this))
                        4 -> mc.displayGuiScreen(GuiBackground(this))
                        5 -> mc.displayGuiScreen(GuiOptions(this, mc.gameSettings))
                        6 -> mc.shutdown()
                    }
                }
                override fun keyTyped(typedChar: Char, keyCode: Int) {}
            }
            

            A Simple GuiLogin As this![V99ODWC52S_7@{J3{HL{ZE.png

            My GuiLogin Shader
            loginground.zip

            Codes

            login.zip

            M Offline
            M Offline
            Malware
            wrote on last edited by
            #5
            This post is deleted!
            1 Reply Last reply
            0
            • YounKooY YounKoo

              My Simple GuiMainMenu As this

              ![RJ1$~M7]~~B~XF(RP1IX{E.png
              My Shader
              background.zip
              Code

              package master.koitoyuu.ui
              
              import master.koitoyuu.ui.login.LoginButton
              import master.koitoyuu.utils.Translate
              import net.ccbluex.liquidbounce.ui.client.GuiBackground
              import net.ccbluex.liquidbounce.ui.client.GuiModsMenu
              import net.ccbluex.liquidbounce.ui.client.altmanager.GuiAltManager
              import net.ccbluex.liquidbounce.ui.font.Fonts
              import net.minecraft.client.gui.*
              import net.minecraft.client.renderer.GlStateManager
              import net.minecraft.client.resources.I18n
              import net.minecraft.util.ResourceLocation
              import org.lwjgl.opengl.GL11
              import java.awt.Color
              
              class MeMainMenu : GuiScreen(), GuiYesNoCallback {
                  var alpha = 255
                  private var currentX = 0f
                  private var currentY = 0f
                  var translate: Translate? = null
                  var hue = 0.0f
              
              
                  override fun initGui() {
                      val defaultHeight = this.height / 4 + 30
                      val defaultWidth = this.width / 2 - 60
                      val buttonWidth = 120
                      val buttonHeight = 20
                      this.buttonList.add(LoginButton(0, defaultWidth, defaultHeight, buttonWidth, buttonHeight, "Single Player"))
                      this.buttonList.add(LoginButton(1, defaultWidth, defaultHeight + 25, buttonWidth, buttonHeight, "Multi Player"))
                      this.buttonList.add(LoginButton(2, defaultWidth, defaultHeight + 50, buttonWidth, buttonHeight, "Alt Manager"))
                      this.buttonList.add(LoginButton(3, defaultWidth, defaultHeight + 75, buttonWidth, buttonHeight, "Script Manager"))
                      this.buttonList.add(LoginButton(4, defaultWidth, defaultHeight + 100, buttonWidth, buttonHeight, "Back Ground"))
                      this.buttonList.add(LoginButton(5, defaultWidth, defaultHeight + 125, buttonWidth, buttonHeight, "Game Options"))
                      this.buttonList.add(LoginButton(6, defaultWidth, defaultHeight + 150, buttonWidth, buttonHeight, "Quit Game"))
                      translate = Translate(0f, 0f)
                      super.initGui()
                  }
              
                  override fun drawScreen(mouseX: Int, mouseY: Int, partialTicks: Float) {
                      val defaultHeight = this.height / 4 + 30
                      val defaultWidth = this.width / 2 - 60
              
                      //ChangeInfos
                      val changes = ArrayList<String>()
                      changes.add("#221017")
                      changes.add("[+] Add LoginGui")
                      changes.add("[+] Add New Menu")
                      changes.add("")
              
                      drawBackground(0)
                      hue += 1f
                      if (hue > 255.0f) {
                          hue = 0.0f
                      }
                      translate?.interpolate(width.toFloat(), height.toFloat(), 4.0)
                      val xmod2 = width / 2 - (translate!!.x / 2).toDouble()
                      val ymod2 = height / 2 - (translate!!.y / 2).toDouble()
                      GlStateManager.translate(xmod2, ymod2, 0.0)
                      GlStateManager.scale(translate!!.x / width, translate!!.y / height, 1f)
              
                      //ClientUpdate
                      Fonts.sf40.drawStringWithShadow("Changelog:", 5f, 5f, Color(255, 255, 255, 220).rgb)
                      //循环绘制info
                      for (i in changes.indices) {
                          Fonts.sf35.drawStringWithShadow(changes[i], 5f, 16f + i * 12, Color(255, 255, 255, 220).rgb)
                      }
              
                      super.drawScreen(mouseX, mouseY, partialTicks)
                  }
              
              
                  override fun actionPerformed(button: GuiButton) {
                      when (button.id) {
                          0 -> mc.displayGuiScreen(GuiSelectWorld(this))
                          1 -> mc.displayGuiScreen(GuiMultiplayer(this))
                          2 -> mc.displayGuiScreen(GuiAltManager(this))
                          3 -> mc.displayGuiScreen(GuiModsMenu(this))
                          4 -> mc.displayGuiScreen(GuiBackground(this))
                          5 -> mc.displayGuiScreen(GuiOptions(this, mc.gameSettings))
                          6 -> mc.shutdown()
                      }
                  }
                  override fun keyTyped(typedChar: Char, keyCode: Int) {}
              }
              

              A Simple GuiLogin As this![V99ODWC52S_7@{J3{HL{ZE.png

              My GuiLogin Shader
              loginground.zip

              Codes

              login.zip

              M Offline
              M Offline
              Malware
              wrote on last edited by
              #6

              @YounKoo 怎么将logingui添加到mainmenu前面

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              About
              • Terms of Service
              • Privacy Policy
              • Status
              • Contact Us
              Downloads
              • Releases
              • Source code
              • License
              Docs
              • Tutorials
              • CustomHUD
              • AutoSettings
              • ScriptAPI
              Community
              • Forum
              • Guilded
              • YouTube
              • Twitter
              • D.Tube
              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups