File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
src/main/java/com/github/ilovegamecoding/intellijcodexp/form Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
1
package com .github .ilovegamecoding .intellijcodexp .form ;
2
2
3
+ import com .github .ilovegamecoding .intellijcodexp .services .CodeXPService ;
4
+ import com .intellij .openapi .application .ApplicationManager ;
5
+
3
6
import javax .swing .*;
4
7
5
8
public class CodeXPDashboard {
9
+ private CodeXPService codeXPService = ApplicationManager .getApplication ().getService (CodeXPService .class );
6
10
public JPanel pMain ;
7
11
public JProgressBar pbCurrentLevelProgress ;
8
12
public JLabel lblNextLabel ;
9
13
public JLabel lblCurrentLevel ;
10
14
public JLabel tvCurrentLevelXP ;
11
15
public JTextField nicknameTextField ;
12
- public JPanel clChallenges ;
13
- public JPanel clCompletedChallenges ;
14
16
public JPanel lblCompletedChallenges ;
15
17
public JLabel lblTotalXP ;
16
18
public JLabel lblLevel ;
17
19
public JButton resetButton ;
20
+ public JPanel pEventStatistics ;
21
+ public JPanel pCompletedChallenges ;
22
+ public JPanel pChallenges ;
23
+
24
+ public CodeXPDashboard () {
25
+ resetButton .addActionListener (e -> {
26
+ codeXPService .resetPlugin ();
27
+ });
28
+ }
18
29
}
You can’t perform that action at this time.
0 commit comments