Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Source/Client/Debug/DebugActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
7 changes: 6 additions & 1 deletion Source/Client/Windows/ModCompatWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
Loading