Fix scrollbar positions in settings/server list screens

This commit is contained in:
FlorianMichael 2024-07-25 09:44:39 +02:00
parent cc980360c0
commit ee378dc808
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
4 changed files with 3 additions and 16 deletions

View File

@ -92,11 +92,6 @@ public class BetaCraftScreen extends VFPScreen {
public int getRowWidth() {
return super.getRowWidth() + 140;
}
@Override
protected int getScrollbarX() {
return this.width - 5;
}
}
public static class ServerSlot extends VFPListEntry {

View File

@ -108,11 +108,6 @@ public class ClassiCubeServerListScreen extends VFPScreen {
public int getRowWidth() {
return super.getRowWidth() + 140;
}
@Override
protected int getScrollbarX() {
return this.width - 5;
}
}

View File

@ -27,13 +27,14 @@ import de.florianmichael.viafabricplus.settings.base.AbstractSetting;
import de.florianmichael.viafabricplus.settings.base.SettingGroup;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.DrawContext;
import net.minecraft.text.Text;
public class SettingsScreen extends VFPScreen {
public static final SettingsScreen INSTANCE = new SettingsScreen();
public SettingsScreen() {
super("Setting", true);
super(Text.translatable("screen.viafabricplus.settings"), true);
}
@Override
@ -69,11 +70,6 @@ public class SettingsScreen extends VFPScreen {
public int getRowWidth() {
return super.getRowWidth() + 140;
}
@Override
protected int getScrollbarX() {
return this.width - 5;
}
}
}

View File

@ -40,6 +40,7 @@
"screen.viafabricplus.server_list": "Server Lists",
"screen.viafabricplus.classicube_login": "Classicube Login",
"screen.viafabricplus.classicube_mfa": "Classicube MFA",
"screen.viafabricplus.settings": "Settings",
"general_settings.viafabricplus.save_selected_protocol_version": "Save selected protocol version",
"general_settings.viafabricplus.extra_information_in_debug_hud": "Show extra information in Debug HUD",