mirror of
https://github.com/jokerx3/HeatUp
synced 2026-07-27 12:49:45 +02:00
änderung am StatusPanelAdder ...
This commit is contained in:
@@ -21,7 +21,7 @@ import de.heatup.ui.statusPanel.Timer;
|
||||
|
||||
public class StatusPanelAdder{
|
||||
private static JPanel panel;
|
||||
private static int hgap=30;
|
||||
private static int hgap=32;
|
||||
private static int vgap=9;
|
||||
private static int modifier=-1;
|
||||
private static int temping=0;
|
||||
@@ -73,15 +73,24 @@ public class StatusPanelAdder{
|
||||
newPanel.setLayout(new FlowLayout(FlowLayout.CENTER, hgap,5));
|
||||
panel=newPanel;
|
||||
}
|
||||
/**
|
||||
* erhöht die Anzahl Manipulationen
|
||||
*/
|
||||
public static void addManipulations(){
|
||||
manipulations+=1;
|
||||
Score.raiseScore(25);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @return anzahl Manipulationen
|
||||
*/
|
||||
public static int getManipulations(){
|
||||
return manipulations;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* tick-Methode für das StatusPanel
|
||||
*/
|
||||
public static void tick() {
|
||||
Timer.tickTimer();
|
||||
timeLabel.setText(Timer.getMinuteS() + ":" + Timer.getSecondsS());
|
||||
|
||||
Reference in New Issue
Block a user