This commit is contained in:
Sollace 2023-09-27 01:18:26 +01:00
parent 0f9e865dc4
commit 2c6c23d05c
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB
4 changed files with 9 additions and 9 deletions

View file

@ -106,7 +106,7 @@ public class MineLittlePony implements ClientModInitializer {
}
if ((mainMenu || inGame) && keyBinding.isPressed()) {
client.setScreen(new PonySettingsscreen(client.currentScreen));
client.setScreen(new PonySettingsScreen(client.currentScreen));
}
}
@ -120,7 +120,7 @@ public class MineLittlePony implements ClientModInitializer {
if (show) {
int y = hasHdSkins ? 75 : 50;
Button button = buttons.addButton(new Button(screen.width - 50, screen.height - y, 20, 20))
.onClick(sender -> MinecraftClient.getInstance().setScreen(new PonySettingsscreen(screen)));
.onClick(sender -> MinecraftClient.getInstance().setScreen(new PonySettingsScreen(screen)));
button.getStyle()
.setIcon(new TextureSprite()
.setPosition(2, 2)

View file

@ -24,7 +24,7 @@ import org.jetbrains.annotations.Nullable;
* In-Game options menu.
*
*/
public class PonySettingsscreen extends GameGui {
public class PonySettingsScreen extends GameGui {
private static final String OPTIONS_PREFIX = "minelp.options.";
private static final String PONY_LEVEL = OPTIONS_PREFIX + "ponylevel";
private static final String MOB_PREFIX = "minelp.mobs.";
@ -41,7 +41,7 @@ public class PonySettingsscreen extends GameGui {
private final boolean hiddenOptions;
public PonySettingsscreen(@Nullable Screen parent) {
public PonySettingsScreen(@Nullable Screen parent) {
super(Text.literal(OPTIONS_PREFIX + "title"), parent);
content.margin.top = 30;
content.margin.bottom = 30;

View file

@ -1,6 +1,6 @@
package com.minelittlepony.client.compat.hdskins;
import com.minelittlepony.client.PonySettingsscreen;
import com.minelittlepony.client.PonySettingsScreen;
import com.minelittlepony.client.MineLittlePony;
import com.minelittlepony.common.client.gui.dimension.Bounds;
import com.minelittlepony.common.client.gui.element.Button;
@ -41,9 +41,9 @@ class GuiSkinsMineLP extends GuiSkins {
@Override
protected void initServerPreviewButtons(Bounds area) {
if (!(parent instanceof PonySettingsscreen)) {
if (!(parent instanceof PonySettingsScreen)) {
addButton(new Button(area.right() - 20, area.bottom() + 5, 20, 20))
.onClick(sender -> client.setScreen(new PonySettingsscreen(this)))
.onClick(sender -> client.setScreen(new PonySettingsScreen(this)))
.getStyle()
.setIcon(new TextureSprite()
.setPosition(2, 2)

View file

@ -3,11 +3,11 @@ package com.minelittlepony.client.compat.modmenu;
import com.terraformersmc.modmenu.api.ConfigScreenFactory;
import com.terraformersmc.modmenu.api.ModMenuApi;
import com.minelittlepony.client.PonySettingsscreen;
import com.minelittlepony.client.PonySettingsScreen;
public class MineLPModMenuFactory implements ModMenuApi {
@Override
public ConfigScreenFactory<?> getModConfigScreenFactory() {
return PonySettingsscreen::new;
return PonySettingsScreen::new;
}
}