File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,14 @@ public static partial class RSCommands
15
15
static DateTime _lastClickTime = DateTime . MinValue ;
16
16
static bool _lastState ;
17
17
18
+ public static void IncrementState ( )
19
+ {
20
+ if ( ! DataCenter . State ) { DoStateCommandType ( StateCommandType . Auto ) ; return ; }
21
+ if ( DataCenter . State && ! DataCenter . IsManual && DataCenter . TargetingType == TargetingType . Big ) { DoStateCommandType ( StateCommandType . Auto ) ; return ; }
22
+ if ( DataCenter . State && ! DataCenter . IsManual ) { DoStateCommandType ( StateCommandType . Manual ) ; return ; }
23
+ if ( DataCenter . State && DataCenter . IsManual ) { DoStateCommandType ( StateCommandType . Cancel ) ; return ; }
24
+ }
25
+
18
26
internal static unsafe bool CanDoAnAction ( bool isGCD )
19
27
{
20
28
if ( ! _lastState || ! DataCenter . State )
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ private static void UpdateEntry()
42
42
new IconPayload ( BitmapFontIcon . DPS ) ,
43
43
new TextPayload ( showStr )
44
44
) ;
45
+ _dtrEntry . OnClick = RSCommands . IncrementState ;
45
46
}
46
47
else if ( _dtrEntry != null && _dtrEntry . Shown )
47
48
{
You can’t perform that action at this time.
0 commit comments