-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCreativeInputConfig.cs
More file actions
37 lines (33 loc) · 1.12 KB
/
Copy pathCreativeInputConfig.cs
File metadata and controls
37 lines (33 loc) · 1.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
using Microsoft.Xna.Framework.Input;
using Razorwing.Framework.Configuration;
using Razorwing.Framework.Platform;
namespace Terraria.ModKit
{
public class CreativeInputConfig : IniConfigManager<InputConfig>
{
public CreativeInputConfig(Storage storage) : base(storage) {}
protected override string Filename => @"CreativeInput.ini";
protected override void InitialiseDefaults()
{
Set(InputConfig.CycleMode, Keys.NumPad0);
Set(InputConfig.FlyMode, Keys.NumPad4);
Set(InputConfig.UnlockAllItems, Keys.NumPad5);
Set(InputConfig.UnlockAllBestiary, Keys.NumPad3);
Set(InputConfig.LockBestiary, Keys.NumPad7);
Set(InputConfig.IncreaseFlySpeed, Keys.OemOpenBrackets);
Set(InputConfig.DecreaseFlySpeed, Keys.OemCloseBrackets);
Set(InputConfig.InstantRespawn, Keys.NumPad9);
}
}
public enum InputConfig
{
CycleMode,
FlyMode,
UnlockAllItems,
UnlockAllBestiary,
LockBestiary,
IncreaseFlySpeed,
DecreaseFlySpeed,
InstantRespawn,
}
}