-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfig.cs
44 lines (36 loc) · 1.38 KB
/
Config.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using System.ComponentModel;
using nights.test.sixtyfps.Template.Configuration;
namespace nights.test.sixtyfps.Configuration;
public class Config : Configurable<Config>
{
/*
User Properties:
- Please put all of your configurable properties here.
By default, configuration saves as "Config.json" in mod user config folder.
Need more config files/classes? See Configuration.cs
Available Attributes:
- Category
- DisplayName
- Description
- DefaultValue
// Technically Supported but not Useful
- Browsable
- Localizable
The `DefaultValue` attribute is used as part of the `Reset` button in Reloaded-Launcher.
*/
[Category("Debugging")]
[DisplayName("Target Framerate")]
[Description("Framerate that the game will try to limit itself to.\n" +
"This WILL make the game run either too fast or too slow.\n" +
"The game's logic was already in 60 FPS, which is why this mod exists.")]
[DefaultValue(60.0)]
public double TargetFramerate { get; set; } = 60.0;
}
/// <summary>
/// Allows you to override certain aspects of the configuration creation process (e.g. create multiple configurations).
/// Override elements in <see cref="ConfiguratorMixinBase"/> for finer control.
/// </summary>
public class ConfiguratorMixin : ConfiguratorMixinBase
{
//
}