mirror of
https://github.com/xiaozhou233/OrangeX-Client.git
synced 2026-12-05 21:15:53 +08:00
[Feat] Add ClickGUI Base.
[BugFix] MCPEntry [BugFix] Build Injector before Start Minecraft
This commit is contained in:
1 parent
58dd1572f2
commit
797251efc5
4 files changed
+48
-1
No files matched your search
@@ -7,6 +7,7 @@
|
||||
<option name="VM_PARAMETERS" value="-Djava.library.path=versions\1.8.8\1.8.8-natives" />
|
||||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/Minecraft/runtime" />
|
||||
<method v="2">
|
||||
<option name="RunConfigurationTask" enabled="true" run_configuration_name="OrangeX-Client [buildInjector]" run_configuration_type="GradleRunConfiguration" />
|
||||
<option name="Make" enabled="true" />
|
||||
</method>
|
||||
</configuration>
|
||||
|
||||
@@ -2,11 +2,15 @@ package cn.xiaozhou233.orangex.module;
|
||||
|
||||
import cn.xiaozhou233.orangex.OrangeX;
|
||||
import cn.xiaozhou233.orangex.module.impl.misc.Test;
|
||||
import cn.xiaozhou233.orangex.module.impl.render.HUD;
|
||||
import cn.xiaozhou233.orangex.module.impl.render.*;
|
||||
|
||||
public class ModuleManager {
|
||||
public static void registerAll() {
|
||||
// Render
|
||||
OrangeX.getEventBus().register(new HUD());
|
||||
OrangeX.getEventBus().register(new ClickGUI());
|
||||
|
||||
// Misc
|
||||
OrangeX.getEventBus().register(new Test());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package cn.xiaozhou233.orangex.module.impl.render;
|
||||
|
||||
import cn.xiaozhou233.orangex.event.impl.EventKey;
|
||||
import cn.xiaozhou233.orangex.module.Module;
|
||||
import cn.xiaozhou233.orangex.ui.clickgui.ClickGuiScreen;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import org.greenrobot.eventbus.Subscribe;
|
||||
import org.lwjgl.input.Keyboard;
|
||||
|
||||
public class ClickGUI extends Module {
|
||||
|
||||
@Subscribe
|
||||
public void onKey(EventKey event) {
|
||||
if (event.getKey() == Keyboard.KEY_RSHIFT) {
|
||||
Minecraft.getMinecraft().displayGuiScreen(new ClickGuiScreen());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package cn.xiaozhou233.orangex.ui.clickgui;
|
||||
|
||||
import net.minecraft.client.gui.GuiScreen;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class ClickGuiScreen extends GuiScreen {
|
||||
|
||||
@Override
|
||||
public void drawScreen(int mouseX, int mouseY, float partialTicks) {
|
||||
drawDefaultBackground();
|
||||
super.drawScreen(mouseX, mouseY, partialTicks);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void mouseClicked(int mouseX, int mouseY, int mouseButton) throws IOException {
|
||||
super.mouseClicked(mouseX, mouseY, mouseButton);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean doesGuiPauseGame() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user