Add "FPS Limit" line to resx

This commit is contained in:
L1Q 2022-01-30 04:40:04 +02:00
parent 081a65edc9
commit 8f5799c4cf
3 changed files with 13 additions and 2 deletions

View file

@ -629,6 +629,15 @@ internal class Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to FPS limit:.
/// </summary>
internal static string FPSLimit {
get {
return ResourceManager.GetString("FPSLimit", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>

View file

@ -792,4 +792,7 @@ X: {4} Y: {5}</value>
<data name="AutoCopyImageToClipboard" xml:space="preserve"> <data name="AutoCopyImageToClipboard" xml:space="preserve">
<value>Auto copy image to clipboard</value> <value>Auto copy image to clipboard</value>
</data> </data>
<data name="FPSLimit" xml:space="preserve">
<value>FPS limit:</value>
</data>
</root> </root>

View file

@ -989,8 +989,7 @@ internal void CreateToolbar()
}; };
tsddbOptions.DropDownItems.Add(tsmiShowFPS); tsddbOptions.DropDownItems.Add(tsmiShowFPS);
// TODO: Translate ToolStripLabeledNumericUpDown tslnudFPSLimit = new ToolStripLabeledNumericUpDown(Resources.FPSLimit);
ToolStripLabeledNumericUpDown tslnudFPSLimit = new ToolStripLabeledNumericUpDown("FPS limit:");
tslnudFPSLimit.Content.Minimum = 0; tslnudFPSLimit.Content.Minimum = 0;
tslnudFPSLimit.Content.Maximum = 300; tslnudFPSLimit.Content.Maximum = 300;
tslnudFPSLimit.Content.Value = Options.FPSLimit; tslnudFPSLimit.Content.Value = Options.FPSLimit;