-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAnarchyCollabSettings.cs
More file actions
62 lines (48 loc) · 2.12 KB
/
AnarchyCollabSettings.cs
File metadata and controls
62 lines (48 loc) · 2.12 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
using Microsoft.Xna.Framework.Input;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Celeste.Mod.AnarchyCollab2022 {
public class AnarchyCollabSettings : EverestModuleSettings {
// These are all for TetrisHelper
#region keyboard
//TODO change defaults on controller?
[DefaultButtonBinding(Buttons.BigButton, Keys.Space)]
public ButtonBinding HardDropButton { get; set; }
[DefaultButtonBinding(Buttons.BigButton, Keys.Down)]
public ButtonBinding SoftDropButton { get; set; }
[DefaultButtonBinding(Buttons.BigButton, Keys.Z)]
public ButtonBinding RotateCWButton { get; set; }
[DefaultButtonBinding(Buttons.BigButton, Keys.Up)]
public ButtonBinding RotateCCWButton { get; set; }
[DefaultButtonBinding(Buttons.BigButton, Keys.X)]
public ButtonBinding Rotate180Button { get; set; }
[DefaultButtonBinding(Buttons.BigButton, Keys.LeftShift)]
public ButtonBinding HoldButton { get; set; }
[DefaultButtonBinding(Buttons.BigButton, Keys.Left)]
public ButtonBinding LeftButton { get; set; }
[DefaultButtonBinding(Buttons.BigButton, Keys.Right)]
public ButtonBinding RightButton { get; set; }
#endregion
#region handling
[SettingNumberInput(allowNegatives: false, maxLength: 3)]
//<summary>
//Automatic Repeat Factor: frames at which tetronimoes move when holding down movement keys
//</summary>
[SettingSubText("Automatic Repeat Rate")]
public float ARR { get; set; } = 6f;
[SettingNumberInput(allowNegatives: false, maxLength: 3)]
//<summary>
//Delayed auto shift: frames between initial keypress and ARR starting
//</summary>
[SettingSubText("Delayed Auto-Shift")]
public float DAS { get; set; } = 6f;
//soft drop factor
[SettingNumberInput(allowNegatives: false, maxLength: 5)]
[SettingSubText("Soft Drop Factor")]
public float SDF { get; set; } = 1f;
#endregion
}
}