暂存选项隐藏派系检测

This commit is contained in:
2025-08-11 22:05:04 +08:00
parent 75561a846a
commit 126d539543
7 changed files with 143 additions and 1 deletions

View File

@@ -194,6 +194,10 @@ namespace WulaFallenEmpire
}
else
{
if (option.hideWhenDisabled)
{
continue; // Skip rendering this option entirely
}
Rect rect = listing.GetRect(30f);
Widgets.ButtonText(rect, option.label, false, true, false);
TooltipHandler.TipRegion(rect, GetDisabledReason(option, reason));