From 0e09c17ea01c4cd4a795708364c0bcca4e9b8009 Mon Sep 17 00:00:00 2001 From: Soar Qin Date: Wed, 22 Jul 2026 15:50:16 +0800 Subject: [PATCH] feat(UXAssist): show original building buffer values --- AGENTS.md | 2 +- UXAssist/Common/I18NKeys.cs | 22 ++++++++++++++++++++++ UXAssist/UIConfigWindow.cs | 4 +++- 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 68fe348..4d0002c 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -51,7 +51,7 @@ DSP_Mods/ | Mod | GUID | Description | |-----|------|-------------| -| **UXAssist** | `org.soardev.uxassist` | Core QoL mod and shared library. Window resize, profile-based saves, FPS control, factory/logistics/navigation/Dyson Sphere tweaks, UI improvements, config panel UI, and `Common/` + `UI/` widget library shared by other mods. The Logistics tab can push auto-config values to all existing facilities of a type on the current planet (per-setting `Apply` and per-category `Apply All` buttons), and can set both product limits of every Orbital Collector across all loaded factories; logic is in `LogisticsPatch.Apply*`/`ForEach*` and wired in `UIConfigWindow`. | +| **UXAssist** | `org.soardev.uxassist` | Core QoL mod and shared library. Window resize, profile-based saves, FPS control, factory/logistics/navigation/Dyson Sphere tweaks, UI improvements, config panel UI, and `Common/` + `UI/` widget library shared by other mods. The Factory tab's building-buffer controls include a comparison tip with the original game values. The Logistics tab can push auto-config values to all existing facilities of a type on the current planet (per-setting `Apply` and per-category `Apply All` buttons), and can set both product limits of every Orbital Collector across all loaded factories; logic is in `LogisticsPatch.Apply*`/`ForEach*` and wired in `UIConfigWindow`. | | **CheatEnabler** | `org.soardev.cheatenabler` | Cheat pack (depends on UXAssist). Instant build, architect mode, infinite resources, power boosts, Dyson Sphere cheats with a bounded shell-count input (1–99,999), mecha invincibility, and more. | | **LogisticMiner** | — | Makes logistic stations automatically mine ores and water from the current planet. | | **HideTips** | — | Suppresses all tutorial popups, random tips, achievement/milestone cards, and skips the prologue cutscene. | diff --git a/UXAssist/Common/I18NKeys.cs b/UXAssist/Common/I18NKeys.cs index d49aca6..03bdb61 100644 --- a/UXAssist/Common/I18NKeys.cs +++ b/UXAssist/Common/I18NKeys.cs @@ -142,6 +142,7 @@ public static class I18NKeys public const string RealTimeLogisticStationsInfoPanel = "Real-time logistic stations info panel"; public const string ShowStatusBarsForStorageItems = "Show status bars for storage items"; public const string TweakBuildingBuffers = "Tweak building buffers"; + public const string TweakBuildingBuffersTips = "Tweak building buffers tips"; public const string AssemblerBufferTimeMultiplierInSeconds = "Assembler buffer time multiplier(in seconds)"; public const string AssemblerBufferMinimumMultiplier = "Assembler buffer minimum multiplier"; public const string BufferCountForAssemblingInLabs = "Buffer count for assembling in labs"; @@ -380,6 +381,27 @@ Quick-set item filter while right-clicking item icons in storage list on the pan I18N.Add(RealTimeLogisticStationsInfoPanel, "Real-time logistic stations info panel", "物流运输站实时信息面板"); I18N.Add(ShowStatusBarsForStorageItems, "Show status bars for storage items", "显示存储物品状态条"); I18N.Add(TweakBuildingBuffers, "Tweak building buffers", "调整建筑输入缓冲"); + I18N.Add(TweakBuildingBuffersTips, """ +Original in-game values: +Assembler buffer time multiplier (in seconds): 4 +Assembler buffer minimum multiplier: 2 +Buffer count for assembling in labs: 6 +Extra buffer count for Self-evolution Labs: 3 +Buffer count for researching in labs: 10 +Ray Receiver Graviton Lens buffer count: 20 +Ejector Solar Sails buffer count: 20 +Silo Rockets buffer count: 20 +""", """ +游戏内原始值: +工厂配方缓冲时间倍率(秒):4 +工厂配方缓冲最小倍率:2 +研究站矩阵合成模式缓存数量:6 +自演化研究站矩阵额外缓冲数量:3 +研究站科研模式缓存数量:10 +射线接收器透镜缓冲数量:20 +弹射器太阳能帆缓冲数量:20 +发射井火箭缓冲数量:20 +"""); I18N.Add(AssemblerBufferTimeMultiplierInSeconds, "Assembler buffer time multiplier(in seconds)", "工厂配方缓冲时间倍率(秒)"); I18N.Add(AssemblerBufferMinimumMultiplier, "Assembler buffer minimum multiplier", "工厂配方缓冲最小倍率"); I18N.Add(BufferCountForAssemblingInLabs, "Buffer count for assembling in labs", "研究站矩阵合成模式缓存数量"); diff --git a/UXAssist/UIConfigWindow.cs b/UXAssist/UIConfigWindow.cs index 5b776a3..bedc68d 100644 --- a/UXAssist/UIConfigWindow.cs +++ b/UXAssist/UIConfigWindow.cs @@ -375,7 +375,9 @@ public static class UIConfigWindow { y += 36f; - wnd.AddCheckBox(x, y, tab2, FactoryConfigProvider.TweakBuildingBufferEnabled, I18NKeys.TweakBuildingBuffers); + checkBoxForMeasureTextWidth = wnd.AddCheckBox(x, y, tab2, FactoryConfigProvider.TweakBuildingBufferEnabled, I18NKeys.TweakBuildingBuffers); + wnd.AddTipsButton2(x + checkBoxForMeasureTextWidth.Width + 5f, y + 6f, tab2, I18NKeys.TweakBuildingBuffers, + I18NKeys.TweakBuildingBuffersTips, "tweak-building-buffers-tips"); y += 27f; txt = wnd.AddText2(x + 20f, y, tab2, I18NKeys.AssemblerBufferTimeMultiplierInSeconds, 13); var nx1 = txt.preferredWidth + 5f;