mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
refactor: remove single-owner helpers and redundant plumbing
Return feature-only helpers to their owners, remove inactive scaffolding and duplicate state, and reuse existing calculation and UI work without changing public contracts or gameplay. Record repository-wide coverage, justified retentions, independent reviews and validation, including baseline dashboard fixture failures. Assisted-by: Cindy (https://cindy.app)
This commit is contained in:
1 parent
325536fc79
commit
ba2648a3e3
60 files changed
+1094
-994
No files matched your search
@@ -27,14 +27,6 @@ internal static class MenuButtonUI
|
||||
I18N.OnInitialized += RecreateConfigWindow;
|
||||
}
|
||||
|
||||
public static void Start()
|
||||
{
|
||||
}
|
||||
|
||||
public static void Uninit()
|
||||
{
|
||||
}
|
||||
|
||||
public static void OnInputUpdate()
|
||||
{
|
||||
if (_toggleKey.keyValue)
|
||||
@@ -43,10 +35,6 @@ internal static class MenuButtonUI
|
||||
}
|
||||
}
|
||||
|
||||
public static void OnUpdate()
|
||||
{
|
||||
}
|
||||
|
||||
public static void ToggleConfigWindow()
|
||||
{
|
||||
if (!_configWinInitialized)
|
||||
|
||||
@@ -35,10 +35,6 @@ internal static class MilkyWayUI
|
||||
GameLogicProc.OnGameEnd += ResetState;
|
||||
}
|
||||
|
||||
public static void Start()
|
||||
{
|
||||
}
|
||||
|
||||
public static void Uninit()
|
||||
{
|
||||
GameLogicProc.OnGameEnd -= ResetState;
|
||||
@@ -50,14 +46,6 @@ internal static class MilkyWayUI
|
||||
_topTenPlayerData = null;
|
||||
}
|
||||
|
||||
public static void OnInputUpdate()
|
||||
{
|
||||
}
|
||||
|
||||
public static void OnUpdate()
|
||||
{
|
||||
}
|
||||
|
||||
public static void AddClusterUploadResult(int result, float requestTime)
|
||||
{
|
||||
lock (_clusterUploadResultsLock)
|
||||
|
||||
@@ -58,26 +58,6 @@ internal static class StarmapFilterUI
|
||||
{1000, 23},
|
||||
};
|
||||
|
||||
public static void Init()
|
||||
{
|
||||
}
|
||||
|
||||
public static void Start()
|
||||
{
|
||||
}
|
||||
|
||||
public static void Uninit()
|
||||
{
|
||||
}
|
||||
|
||||
public static void OnInputUpdate()
|
||||
{
|
||||
}
|
||||
|
||||
public static void OnUpdate()
|
||||
{
|
||||
}
|
||||
|
||||
public static void InitStarmapButtons()
|
||||
{
|
||||
var uiRoot = UIRoot.instance;
|
||||
|
||||
@@ -10,7 +10,6 @@ public static class UIFunctions
|
||||
public static void Init()
|
||||
{
|
||||
MenuButtonUI.Init();
|
||||
StarmapFilterUI.Init();
|
||||
MilkyWayUI.Init();
|
||||
|
||||
UXAssist.RegisterExporter(ExportClusterUploadResults);
|
||||
@@ -19,32 +18,22 @@ public static class UIFunctions
|
||||
|
||||
public static void Start()
|
||||
{
|
||||
MenuButtonUI.Start();
|
||||
StarmapFilterUI.Start();
|
||||
MilkyWayUI.Start();
|
||||
}
|
||||
|
||||
public static void Uninit()
|
||||
{
|
||||
MenuButtonUI.Uninit();
|
||||
StarmapFilterUI.Uninit();
|
||||
MilkyWayUI.Uninit();
|
||||
}
|
||||
|
||||
public static void OnInputUpdate()
|
||||
{
|
||||
MenuButtonUI.OnInputUpdate();
|
||||
StarmapFilterUI.OnInputUpdate();
|
||||
MilkyWayUI.OnInputUpdate();
|
||||
}
|
||||
|
||||
public static void OnUpdate()
|
||||
{
|
||||
MenuButtonUI.OnUpdate();
|
||||
AutoCruiseUI.OnUpdate();
|
||||
AutoConstructUI.OnUpdate();
|
||||
StarmapFilterUI.OnUpdate();
|
||||
MilkyWayUI.OnUpdate();
|
||||
}
|
||||
|
||||
public static void InitMenuButtons()
|
||||
|
||||
@@ -46,19 +46,6 @@ public static class WindowFunctions
|
||||
process.PriorityClass = (ProcessPriorityClass)ProrityFlags[ProcessPriority.Value];
|
||||
}
|
||||
|
||||
private static string GetPriorityName(int priority)
|
||||
{
|
||||
return priority switch
|
||||
{
|
||||
WinApi.HIGH_PRIORITY_CLASS => I18NKeys.High.Translate(),
|
||||
WinApi.ABOVE_NORMAL_PRIORITY_CLASS => I18NKeys.AboveNormal.Translate(),
|
||||
WinApi.NORMAL_PRIORITY_CLASS => I18NKeys.Normal.Translate(),
|
||||
WinApi.BELOW_NORMAL_PRIORITY_CLASS => I18NKeys.BelowNormal.Translate(),
|
||||
WinApi.IDLE_PRIORITY_CLASS => I18NKeys.Idle.Translate(),
|
||||
_ => I18NKeys.Unknown.Translate()
|
||||
};
|
||||
}
|
||||
|
||||
public static void SetWindowTitle()
|
||||
{
|
||||
// Get profile name from command line arguments, and set window title accordingly
|
||||
|
||||
Reference in new issue
Block a user