Skip to content

Commit

Permalink
Increment version
Browse files Browse the repository at this point in the history
  • Loading branch information
RoanH committed Apr 29, 2017
1 parent aba5c9c commit a0204e6
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions KeysPerSecond/src/me/roan/kps/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -458,32 +458,42 @@ private static final void configure(){
labels.add(ltop);
labels.add(lcol);
labels.add(lall);
JButton save = new JButton("Save config");
ctop.addActionListener((e)->{
config.overlay = ctop.isSelected();
save.setEnabled(true);
});
call.addActionListener((e)->{
config.trackAll = call.isSelected();
save.setEnabled(true);
});
cmax.addActionListener((e)->{
config.showMax = cmax.isSelected();
save.setEnabled(true);
});
cavg.addActionListener((e)->{
config.showAvg = cavg.isSelected();
save.setEnabled(true);
});
ccur.addActionListener((e)->{
config.showCur = ccur.isSelected();
save.setEnabled(true);
});
cgra.addActionListener((e)->{
config.showGraph = cgra.isSelected();
save.setEnabled(true);
});
ccol.addActionListener((e)->{
config.customColors = ccol.isSelected();
save.setEnabled(true);
});
ckey.addActionListener((e)->{
config.showKeys = ckey.isSelected();
save.setEnabled(true);
});
ctot.addActionListener((e)->{
config.showTotal = ctot.isSelected();
save.setEnabled(true);
});
JPanel options = new JPanel();
labels.setPreferredSize(new Dimension((int)labels.getPreferredSize().getWidth(), (int)boxes.getPreferredSize().getHeight()));
Expand All @@ -492,7 +502,6 @@ private static final void configure(){
JPanel buttons = new JPanel(new GridLayout(9, 0));
JButton addkey = new JButton("Add key");
JButton load = new JButton("Load config");
JButton save = new JButton("Save config");
JButton updaterate = new JButton("Update rate");
JButton cmdkeys = new JButton("Commands");
save.setEnabled(false);
Expand Down Expand Up @@ -528,9 +537,11 @@ private static final void configure(){
form.add(all, BorderLayout.CENTER);
size.addActionListener((e)->{
configureSize();
save.setEnabled(true);
});
cmdkeys.addActionListener((e)->{
configureCommandKeys();
save.setEnabled(true);
});
precision.addActionListener((e)->{
JPanel pconfig = new JPanel(new BorderLayout());
Expand Down Expand Up @@ -648,7 +659,7 @@ public Component getListCellRendererComponent(JList<?> list, Object value, int i
}
});
String version = checkVersion();//XXX the version number
JLabel ver = new JLabel("<html><center><i>Version: v5.5, latest version: " + (version == null ? "unknown :(" : version) + "<br>"
JLabel ver = new JLabel("<html><center><i>Version: v5.6, latest version: " + (version == null ? "unknown :(" : version) + "<br>"
+ "<u><font color=blue>https://osu.ppy.sh/forum/t/552405</font></u></i></center></html>", SwingConstants.CENTER);
ver.addMouseListener(new MouseListener(){

Expand Down Expand Up @@ -798,7 +809,6 @@ public void mouseExited(MouseEvent e) {
* Show the command key configuration dialog
*/
protected static final void configureCommandKeys(){
//TODO implement
JPanel content = new JPanel(new GridLayout(6, 2, 10, 2));

JLabel lcp = new JLabel("Reset stats:");
Expand Down

0 comments on commit a0204e6

Please sign in to comment.