mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-10-25 20:22:22 +00:00
Add a default-enabled option for grouped F3 panels
This commit is contained in:
1 parent
fa0156a851
commit
3338c6c8d2
5 files changed
+15
-1
No files matched your search
@@ -116,6 +116,10 @@ public class AngelicaConfig {
|
||||
@Config.DefaultBoolean(true)
|
||||
public static boolean modernizeF3Screen;
|
||||
|
||||
@Config.Comment("Group F3 debug information into labeled panels.")
|
||||
@Config.DefaultBoolean(true)
|
||||
public static boolean enableGroupedF3;
|
||||
|
||||
@Config.Comment("Show block registry name and meta value in F3, similar to 1.8+. [From ArchaicFix]")
|
||||
@Config.DefaultBoolean(true)
|
||||
public static boolean showBlockDebugInfo;
|
||||
|
||||
@@ -812,6 +812,12 @@ public class SodiumGameOptionPages {
|
||||
groups.add(OptionGroup.createBuilder()
|
||||
.add(Settings.MODE_GUI_BACKGROUND.option)
|
||||
.add(Settings.GUI_BACKGROUND.option)
|
||||
.add(OptionImpl.createBuilder(boolean.class, angelicaOpts)
|
||||
.setName(I18n.format("options.angelica.groupedf3"))
|
||||
.setTooltip(I18n.format("options.angelica.groupedf3.tooltip"))
|
||||
.setControl(TickBoxControl::new)
|
||||
.setBinding((opts, value) -> AngelicaConfig.enableGroupedF3 = value, opts -> AngelicaConfig.enableGroupedF3)
|
||||
.build())
|
||||
.add(OptionImpl.createBuilder(boolean.class, angelicaOpts)
|
||||
.setName(I18n.format("options.angelica.disablef3"))
|
||||
.setTooltip(I18n.format("options.angelica.disablef3.tooltip"))
|
||||
|
||||
@@ -344,6 +344,8 @@ sodium.options.use_render_pass_optimization.tooltip=Analyzes sprite transparency
|
||||
|
||||
options.angelica.aggressiveChunkLoading=Aggressive Chunk Loading
|
||||
options.angelica.aggressiveChunkLoading.tooltip=Renders chunks immediately when loaded, even if neighbors aren't ready yet. Improves perceived loading speed at render distance edges. Chunks rebuild automatically when neighbors load. Useful for low render distance servers.
|
||||
options.angelica.groupedf3=Grouped F3 Screen
|
||||
options.angelica.groupedf3.tooltip=Show grouped panels on the F3 debug screen.
|
||||
options.angelica.disablef3=Disable F3 Additions
|
||||
options.angelica.disablef3.tooltip=Disables Angelica's additions to the F3 debug screen.
|
||||
options.angelica.verbosef3=Verbose F3
|
||||
|
||||
@@ -224,6 +224,8 @@ sodium.options.use_render_pass_optimization.tooltip=分析贴图透明度,当
|
||||
|
||||
options.angelica.aggressiveChunkLoading=更激进地区块加载
|
||||
options.angelica.aggressiveChunkLoading.tooltip=区块加载后立即渲染,即使相邻区块尚未加载完毕。将提升最大渲染距离处区块的加载速度。在相邻区块加载后会自动重建。适用于渲染距离较低的服务器。
|
||||
options.angelica.groupedf3=启用 F3 分组界面
|
||||
options.angelica.groupedf3.tooltip=将 F3 调试信息按类别分组显示。
|
||||
options.angelica.disablef3=禁用F3附加信息显示
|
||||
options.angelica.disablef3.tooltip=禁用Angelica在F3调试界面的附加信息。
|
||||
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ public class MixinGuiIngameForge_ModernF3 {
|
||||
@Local(argsOnly = true, ordinal = 0) int width, @Local(argsOnly = true, ordinal = 1) int height) {
|
||||
final boolean canceled = original.call(bus, event);
|
||||
final Minecraft mc = Minecraft.getMinecraft();
|
||||
if (canceled || !AngelicaConfig.modernizeF3Screen || !mc.gameSettings.showDebugInfo
|
||||
if (canceled || !AngelicaConfig.modernizeF3Screen || !AngelicaConfig.enableGroupedF3 || !mc.gameSettings.showDebugInfo
|
||||
|| !(event instanceof RenderGameOverlayEvent.Text text) || text.left.isEmpty()) return canceled;
|
||||
|
||||
final int columnWidth = Math.max(20, (width - 16) / 2);
|
||||
|
||||
Reference in new issue
Block a user