Pull down scroll velocity option. Add property categories for ruleset config.

This commit is contained in:
2022-11-16 17:30:33 +08:00
parent 87e406e903
commit 80cc5fdbda
3 changed files with 19 additions and 13 deletions

View File

@@ -1,12 +1,26 @@
using Newtonsoft.Json;
using Cryville.Common.ComponentModel;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel;
namespace Cryville.Crtr.Config {
public class RulesetConfig {
public Generic generic = new Generic();
public class Generic {
[Category("basic")]
[JsonProperty("skin")]
public string Skin { get; set; }
[Category("deprecated")][Obsolete]
[JsonProperty("scroll_velocity")][DefaultValue(1)]
[LogarithmicScale][Step(0.5f)][Precision(1e-1)]
public float ScrollVelocity { get; set; }
public Generic() {
Skin = "";
ScrollVelocity = 1;
}
}
public Dictionary<string, InputEntry> inputs
= new Dictionary<string, InputEntry>();