feat: start adding our own shortcut support
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
using ChatTwo.Code;
|
||||
|
||||
namespace ChatTwo.GameFunctions.Types;
|
||||
|
||||
internal class ChannelSwitchInfo {
|
||||
internal InputChannel? Channel { get; }
|
||||
internal bool Permanent { get; }
|
||||
internal RotateMode Rotate { get; }
|
||||
internal string? Text { get; }
|
||||
|
||||
internal ChannelSwitchInfo(InputChannel? channel, bool permanent = false, RotateMode rotate = RotateMode.None, string? text = null) {
|
||||
this.Channel = channel;
|
||||
this.Permanent = permanent;
|
||||
this.Rotate = rotate;
|
||||
this.Text = text;
|
||||
}
|
||||
}
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
using Dalamud.Game.ClientState.Keys;
|
||||
|
||||
namespace ChatTwo.GameFunctions.Types;
|
||||
|
||||
internal class Keybind {
|
||||
internal VirtualKey Key1 { get; init; }
|
||||
internal ModifierFlag Modifier1 { get; init; }
|
||||
|
||||
internal VirtualKey Key2 { get; init; }
|
||||
internal ModifierFlag Modifier2 { get; init; }
|
||||
}
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
namespace ChatTwo.GameFunctions.Types;
|
||||
|
||||
[Flags]
|
||||
internal enum ModifierFlag {
|
||||
Shift = 1 << 0,
|
||||
Ctrl = 1 << 1,
|
||||
Alt = 1 << 2,
|
||||
}
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
namespace ChatTwo.GameFunctions.Types;
|
||||
|
||||
internal enum RotateMode {
|
||||
None,
|
||||
Forward,
|
||||
Reverse,
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
namespace ChatTwo.GameFunctions.Types;
|
||||
|
||||
internal sealed class TellHistoryInfo {
|
||||
internal string Name { get; }
|
||||
internal uint World { get; }
|
||||
internal ulong ContentId { get; }
|
||||
|
||||
internal TellHistoryInfo(string name, uint world, ulong contentId) {
|
||||
this.Name = name;
|
||||
this.World = world;
|
||||
this.ContentId = contentId;
|
||||
}
|
||||
}
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
namespace ChatTwo.GameFunctions.Types;
|
||||
|
||||
internal enum TellReason {
|
||||
Direct = 0,
|
||||
PartyFinder = 1,
|
||||
Friend = 3,
|
||||
}
|
||||
Reference in New Issue
Block a user