Commit a6cfac7 1 parent 4e8e57b commit a6cfac7 Copy full SHA for a6cfac7
File tree 3 files changed +15
-4
lines changed
bdofishbot-bot/src/main/java/ru/namibios/bdofishbot/bot
bdofishbot-gui/src/main/java/ru/namibios/bdofishbot/gui
3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ public Stats() {
21
21
private String hash ;
22
22
private long startWork ;
23
23
private long endWork ;
24
+ private String mode ;
24
25
25
26
private StatSeries current ;
26
27
private List <StatSeries > series ;
@@ -40,6 +41,14 @@ public void setHash(String hash) {
40
41
this .hash = hash ;
41
42
}
42
43
44
+ public String getMode () {
45
+ return mode ;
46
+ }
47
+
48
+ public void setMode (String mode ) {
49
+ this .mode = mode ;
50
+ }
51
+
43
52
public void updateEndWork () {
44
53
endWork = new Date ().getTime ();
45
54
}
Original file line number Diff line number Diff line change @@ -94,7 +94,9 @@ public FishBot(boolean start) {
94
94
95
95
this .timer = new Timer ();
96
96
this .pauseService = new PauseService (Application .getInstance ().TASK_PAUSE ());
97
+
97
98
this .stats = new Stats ();
99
+ this .stats .setMode (Application .getInstance ().MODE ().name ());
98
100
99
101
}
100
102
Original file line number Diff line number Diff line change @@ -16,14 +16,14 @@ public MousePointer(JLabel mouseXY) {
16
16
17
17
@ Override
18
18
public void nativeMouseMoved (NativeMouseEvent nativeMouseEvent ) {
19
-
19
+ mouseXY .setText (String .format ("[x: %s, y: %s]" ,
20
+ (int ) MouseInfo .getPointerInfo ().getLocation ().getLocation ().getX (),
21
+ (int ) MouseInfo .getPointerInfo ().getLocation ().getLocation ().getY ()));
20
22
}
21
23
22
24
@ Override
23
25
public void nativeMouseDragged (NativeMouseEvent nativeMouseEvent ) {
24
- mouseXY .setText (String .format ("[x: %s, y: %s]" ,
25
- (int ) MouseInfo .getPointerInfo ().getLocation ().getLocation ().getX (),
26
- (int ) MouseInfo .getPointerInfo ().getLocation ().getLocation ().getY ()));
26
+
27
27
}
28
28
29
29
}
You can’t perform that action at this time.
0 commit comments