add some new modules, kill off alt manager, clean up other code
This commit is contained in:
parent
4b1e0b4fa9
commit
3ad5af7ea7
13 changed files with 120 additions and 95 deletions
|
@ -25,7 +25,7 @@ public class ModulesListOverlay
|
|||
{
|
||||
if (!m.showInModulesList.value) continue;
|
||||
int nameWidth = mc.textRenderer.getWidth(m.name);
|
||||
drawContext.fill(scaledWidth - nameWidth - 8, yOffset, scaledWidth, yOffset+12, 0x55222222);
|
||||
drawContext.fill(scaledWidth - nameWidth - 8, yOffset, scaledWidth, yOffset+12, 0x77222222);
|
||||
drawContext.fill(scaledWidth - 2, yOffset, scaledWidth, yOffset+12, Moonlight.uiColorA);
|
||||
drawContext.drawText(mc.textRenderer, m.name, scaledWidth - nameWidth - 4, yOffset + 2, 0xFFFFFFFF, false);
|
||||
yOffset += 12;
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
package me.kawaiizenbo.moonlight.ui.altmanager;
|
||||
|
||||
import net.minecraft.client.gui.DrawContext;
|
||||
import net.minecraft.client.gui.screen.Screen;
|
||||
import net.minecraft.text.Text;
|
||||
|
||||
public class AltManagerScreen extends Screen
|
||||
{
|
||||
public static AltManagerScreen INSTANCE = new AltManagerScreen();
|
||||
|
||||
protected AltManagerScreen()
|
||||
{
|
||||
super(Text.literal("Alt Manager"));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void render(DrawContext drawContext, int mouseX, int mouseY, float delta)
|
||||
{
|
||||
renderBackgroundTexture(drawContext);
|
||||
}
|
||||
|
||||
}
|
|
@ -36,7 +36,7 @@ public class SettingsScreen extends Screen
|
|||
drawContext.fill(x, y, x+windowWidth, y+windowHeight, 0xFF222222);
|
||||
drawContext.fill(x, y, x+windowWidth, y+16, module.category.color);
|
||||
drawContext.fill(x+2, y+2, x+(windowWidth-2), y+14, 0xFF222222);
|
||||
drawContext.drawCenteredTextWithShadow(textRenderer, "Module Settings: "+module.name, x+(windowWidth/2), y+4, 0xFFFFFF);
|
||||
drawContext.drawCenteredTextWithShadow(textRenderer, module.name, x+(windowWidth/2), y+4, 0xFFFFFF);
|
||||
drawContext.drawText(textRenderer, module.description, x+8, y+24, 0xFFFFFF, true);
|
||||
backButton = new TextButton(ColorUtils.underline + "< Back", x+4, y+4, 0xFFFFFF);
|
||||
backButton.render(drawContext, textRenderer, mouseX, mouseY);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue