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