CCBlueX Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Share My UIs && Shader background

    Kotlin/Java
    4
    6
    455
    Loading More Posts
    • 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.
    • YounKoo
      YounKoo last edited by 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 soicaublog M 5 Replies Last reply Reply Quote 0
      • W
        wdsjxj8451 @YounKoo last edited by

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

        1 Reply Last reply Reply Quote 0
        • soicaublog
          soicaublog @YounKoo last edited by

          @YounKoo thank, tip

          1 Reply Last reply Reply Quote 1
          • M
            Malware @YounKoo last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • M
              Malware @YounKoo last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • M
                Malware @YounKoo last edited by

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

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                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