mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-12-22 16:48:25 +01:00
Fix scrollbar positions in settings/server list screens
This commit is contained in:
parent
cc980360c0
commit
ee378dc808
@ -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 {
|
||||
|
@ -108,11 +108,6 @@ public class ClassiCubeServerListScreen extends VFPScreen {
|
||||
public int getRowWidth() {
|
||||
return super.getRowWidth() + 140;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getScrollbarX() {
|
||||
return this.width - 5;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user