mirror of
https://github.com/xiaozhou233/OrangeX-Client.git
synced 2026-12-05 13:05:52 +08:00
Fix: Enable font debug overlay by default
Forgot -Dorangex.debugFont on Forge/Vanilla launchers left the Render2D event without subscribers. Keep the overlay on by default during the porting phase; disable with -Dorangex.debugFont=false.
This commit is contained in:
1 parent
867949967e
commit
b909a01fe0
2 files changed
+4
-2
No files matched your search
@@ -47,7 +47,7 @@ public class OrangeX {
|
|||||||
runtimeInfo, MappingManager.getResolver(), minecraft.getMinecraft());
|
runtimeInfo, MappingManager.getResolver(), minecraft.getMinecraft());
|
||||||
System.out.println("[OrangeX] Font backend: " + render2DManager.getBackendName());
|
System.out.println("[OrangeX] Font backend: " + render2DManager.getBackendName());
|
||||||
|
|
||||||
if (Boolean.getBoolean("orangex.debugFont")) {
|
if (!"false".equalsIgnoreCase(System.getProperty("orangex.debugFont", "true"))) {
|
||||||
eventBus.register(new FontDebugOverlay());
|
eventBus.register(new FontDebugOverlay());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -133,8 +133,10 @@ drawScale = logicalSize / rasterHeight
|
|||||||
> 启动器会读取 `%USERPROFILE%\.orangex\OrangeX.jar`。改完代码后必须把新
|
> 启动器会读取 `%USERPROFILE%\.orangex\OrangeX.jar`。改完代码后必须把新
|
||||||
> jar 同步过去,否则会出现“MCP 正常、其他版本没反应”。
|
> jar 同步过去,否则会出现“MCP 正常、其他版本没反应”。
|
||||||
|
|
||||||
|
调试 Overlay 默认开启;不需要时加:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
-Dorangex.debugFont=true
|
-Dorangex.debugFont=false
|
||||||
```
|
```
|
||||||
|
|
||||||
会在屏幕左上角绘制:
|
会在屏幕左上角绘制:
|
||||||
|
|||||||
Reference in new issue
Block a user