forked from UnlegitMC/FDPClient_legacy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
liuli
committed
May 26, 2021
1 parent
29b2d04
commit b678556
Showing
8 changed files
with
247 additions
and
30 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
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
14 changes: 14 additions & 0 deletions
14
src/main/java/net/ccbluex/liquidbounce/ui/click/ClickGui.kt
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 |
---|---|---|
@@ -1,9 +1,23 @@ | ||
package net.ccbluex.liquidbounce.ui.click | ||
|
||
import net.minecraft.client.gui.GuiScreen | ||
import org.lwjgl.opengl.GL11 | ||
|
||
open class ClickGui : GuiScreen() { | ||
open val name="" | ||
open val scale=1F | ||
|
||
override fun drawScreen(mouseX: Int, mouseY: Int, partialTicks: Float) { | ||
GL11.glPushMatrix() | ||
|
||
GL11.glScalef(scale,scale,scale) | ||
|
||
render(width*scale.toInt(), height*scale.toInt(), mouseX, mouseY, partialTicks) | ||
|
||
GL11.glPopMatrix() | ||
} | ||
|
||
open fun render(width: Int, height: Int, mouseX: Int, mouseY: Int, partialTicks: Float) {} | ||
|
||
open fun load() {} | ||
} |
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
Oops, something went wrong.