VATS Settings Header

This commit is contained in:
Canon
2026-02-08 14:57:07 +08:00
parent ca608a254b
commit b1ad81d353
4 changed files with 11 additions and 6 deletions
Binary file not shown.
@@ -21,7 +21,7 @@
<FCP_Settings_Debug_tt>Options to help with the diagnosis of issues or modify behaviour for debugging</FCP_Settings_Debug_tt>
<FCP_Settings_Debug_Logging>Logging</FCP_Settings_Debug_Logging>
<FCP_Settings_Debug_VerboseLogging>Debug</FCP_Settings_Debug_VerboseLogging>
<FCP_Settings_Debug_VerboseLogging>Verbose Logging</FCP_Settings_Debug_VerboseLogging>
<!-- Permits -->
<FCP_MessagePermitLostOnPromotion>Due to {0_possessive} promotion to {1}, {0_labelShort} has lost {0_possessive} {2} permit</FCP_MessagePermitLostOnPromotion>
+2 -1
View File
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<LanguageData>
<FCP_Settings.VATS>V.A.T.S.</FCP_Settings.VATS>
<FCP_Settings_VATS>V.A.T.S.</FCP_Settings_VATS>
<FCP_Settings_VATS_header>V.A.T.S. Settings</FCP_Settings_VATS_header>
<FCP_VATS_Settings_EnableSlowDownTime>Enable time slowdown</FCP_VATS_Settings_EnableSlowDownTime>
<FCP_VATS_Settings_EnableZoom>Enable the zoom shader</FCP_VATS_Settings_EnableZoom>
<FCP_VATS_Settings_ZoomTimeout>How many ticks after creation until we force remove the zoom (in case of bugs): {0} ticks</FCP_VATS_Settings_ZoomTimeout>
@@ -4,7 +4,7 @@ namespace FCP.Core.VATS;
public class VATSSettings : SettingsTab
{
public override string TabName => "FCP_Settings.VATS".Translate();
public override string TabName => "FCP_Settings_VATS".Translate();
public float flatHitChanceBoost = 0.2f;
public int cooldownTicks = 600;
@@ -17,16 +17,20 @@ public class VATSSettings : SettingsTab
public override void DoTabWindowContents(Rect wrect)
{
PopulateMissingMultipliers();
int multiplierHeight = multiplierLookup.Count * 56;
int restHeight = 248 + 64;
float scrollViewHeight = multiplierHeight + restHeight;
Rect viewRect = new Rect(wrect.x, wrect.y, wrect.width - 20, scrollViewHeight);
scrollPosition = GUI.BeginScrollView(new Rect(wrect.x, wrect.y, wrect.width, wrect.height - 50), scrollPosition, viewRect);
Listing_Standard options = new Listing_Standard();
var options = new Listing_Standard();
options.Begin(viewRect);
Text.Font = GameFont.Medium;
options.Label("FCP_Settings_VATS_header".Translate());
Text.Font = GameFont.Small;
options.GapLine();
try
{
if (options.ButtonText("FCP_VATS_Settings_Reset".Translate()))