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] 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; }