From c4f1ef01cb7c56bfee84c1cf65d045de8d8a8543 Mon Sep 17 00:00:00 2001 From: mibac138 <5672750+mibac138@users.noreply.github.com> Date: Wed, 22 Apr 2026 02:45:20 +0200 Subject: [PATCH 1/2] Add debug action to show mod compat when playing Requested by a mod tester --- Source/Client/Debug/DebugActions.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/Client/Debug/DebugActions.cs b/Source/Client/Debug/DebugActions.cs index 9bc4f512..46d05147 100644 --- a/Source/Client/Debug/DebugActions.cs +++ b/Source/Client/Debug/DebugActions.cs @@ -373,6 +373,13 @@ public static void DumpAddrInfoTable() } } + [DebugAction(MultiplayerLocalCategory, "Show mod compat", allowedGameStates = AllowedGameStates.Playing)] + public static void ShowModCompatDialog() + { + var window = new ModCompatWindow(null, true, false, null); + Find.WindowStack.Add(window); + } + #if DEBUG [DebugOutput] From 6afb55b9635abdcd6d0b806b6846340aac1307e7 Mon Sep 17 00:00:00 2001 From: mibac138 <5672750+mibac138@users.noreply.github.com> Date: Wed, 22 Apr 2026 03:06:38 +0200 Subject: [PATCH 2/2] Allow clicking a mod name in mod compat dialog to open the mod's workshop page --- Source/Client/Windows/ModCompatWindow.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/Client/Windows/ModCompatWindow.cs b/Source/Client/Windows/ModCompatWindow.cs index 656aff6a..af155406 100644 --- a/Source/Client/Windows/ModCompatWindow.cs +++ b/Source/Client/Windows/ModCompatWindow.cs @@ -266,8 +266,13 @@ private void DoModRow(ModMetaData mod, bool alt, Rect row) // Name { + var labelRect = row.Width(NameWidth - Spacing - ListInset); using (MpStyle.Set(nameContainsSearch ? Color.white : Color.grey)) - MpUI.LabelTruncatedWithTip(row.Width(NameWidth - Spacing - ListInset), modName, modNameCache); + MpUI.LabelTruncatedWithTip(labelRect, modName, modNameCache); + + if (Widgets.ButtonInvisible(labelRect) && mod.Source == ContentSource.SteamWorkshop) + SteamUtility.OpenWorkshopPage(mod.GetPublishedFileId()); + row.xMin += NameWidth - ListInset; }