stuff
This commit is contained in:
parent
48547a2c66
commit
dc1e189d38
25 changed files with 259 additions and 157 deletions
|
@ -4,7 +4,7 @@ import java.util.ArrayList;
|
|||
|
||||
import me.kawaiizenbo.moonlight.Moonlight;
|
||||
import me.kawaiizenbo.moonlight.module.ModuleManager;
|
||||
import me.kawaiizenbo.moonlight.module.Module_;
|
||||
import me.kawaiizenbo.moonlight.module.Module;
|
||||
import net.minecraft.client.MinecraftClient;
|
||||
|
||||
import net.minecraft.client.gui.DrawContext;
|
||||
|
@ -13,7 +13,7 @@ public class ModulesListOverlay
|
|||
{
|
||||
public static ModulesListOverlay INSTANCE = new ModulesListOverlay();
|
||||
private MinecraftClient mc = MinecraftClient.getInstance();
|
||||
private ArrayList<Module_> enabledModules = ModuleManager.INSTANCE.getEnabledModules();
|
||||
private ArrayList<Module> enabledModules = ModuleManager.INSTANCE.getEnabledModules();
|
||||
|
||||
public void render(DrawContext drawContext, int scaledWidth, int scaledHeight)
|
||||
{
|
||||
|
@ -21,7 +21,7 @@ public class ModulesListOverlay
|
|||
if (mc.getDebugHud().shouldShowDebugHud()) return;
|
||||
|
||||
int yOffset = 0;
|
||||
for (Module_ m : enabledModules)
|
||||
for (Module m : enabledModules)
|
||||
{
|
||||
if (!m.showInModulesList.value) continue;
|
||||
int nameWidth = mc.textRenderer.getWidth(m.name);
|
||||
|
|
|
@ -4,7 +4,7 @@ import java.util.ArrayList;
|
|||
|
||||
import me.kawaiizenbo.moonlight.module.Category;
|
||||
import me.kawaiizenbo.moonlight.module.ModuleManager;
|
||||
import me.kawaiizenbo.moonlight.module.Module_;
|
||||
import me.kawaiizenbo.moonlight.module.Module;
|
||||
import net.minecraft.client.font.TextRenderer;
|
||||
import net.minecraft.client.gui.DrawContext;
|
||||
|
||||
|
@ -24,7 +24,7 @@ public class CategoryPane
|
|||
this.y = initialY;
|
||||
this.collapsed = collapsed;
|
||||
moduleButtons = new ArrayList<ModuleButton>();
|
||||
for (Module_ m : ModuleManager.INSTANCE.getModulesByCategory(category))
|
||||
for (Module m : ModuleManager.INSTANCE.getModulesByCategory(category))
|
||||
{
|
||||
moduleButtons.add(new ModuleButton(m));
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ public class KeybindScreen extends Screen
|
|||
public void render(DrawContext drawContext, int mouseX, int mouseY, float delta)
|
||||
{
|
||||
this.renderBackground(drawContext, mouseX, mouseY, delta);
|
||||
drawContext.drawCenteredTextWithShadow(textRenderer, "Press any key", width/2, height/2, 0xFFFFFFFF);
|
||||
drawContext.drawCenteredTextWithShadow(textRenderer, "Press any key (may not work, use .setting instead)", width/2, height/2, 0xFFFFFFFF);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
package me.kawaiizenbo.moonlight.ui.clickgui;
|
||||
|
||||
import me.kawaiizenbo.moonlight.Moonlight;
|
||||
import me.kawaiizenbo.moonlight.module.Module_;
|
||||
import me.kawaiizenbo.moonlight.module.Module;
|
||||
import net.minecraft.client.MinecraftClient;
|
||||
import net.minecraft.client.font.TextRenderer;
|
||||
import net.minecraft.client.gui.DrawContext;
|
||||
|
||||
public class ModuleButton
|
||||
{
|
||||
public Module_ module;
|
||||
public Module module;
|
||||
public int x, y, width, height = 0;
|
||||
|
||||
public ModuleButton(Module_ module)
|
||||
public ModuleButton(Module module)
|
||||
{
|
||||
this.module = module;
|
||||
this.width = 92;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package me.kawaiizenbo.moonlight.ui.clickgui;
|
||||
|
||||
import me.kawaiizenbo.moonlight.module.Module_;
|
||||
import me.kawaiizenbo.moonlight.module.Module;
|
||||
import me.kawaiizenbo.moonlight.module.settings.Setting;
|
||||
import me.kawaiizenbo.moonlight.ui.TextButton;
|
||||
import me.kawaiizenbo.moonlight.util.ColorUtils;
|
||||
|
@ -10,13 +10,13 @@ import net.minecraft.text.Text;
|
|||
|
||||
public class SettingsScreen extends Screen
|
||||
{
|
||||
private Module_ module;
|
||||
private Module module;
|
||||
private TextButton backButton;
|
||||
|
||||
boolean dragging = false;
|
||||
int startX, startY, x = 4, y = 4, windowWidth = 224, windowHeight = 192;
|
||||
|
||||
public SettingsScreen(Module_ module)
|
||||
public SettingsScreen(Module module)
|
||||
{
|
||||
super(Text.literal("Settings"));
|
||||
this.module = module;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue