mirror of
https://github.com/jokerx3/HeatUp
synced 2026-07-27 07:29:45 +02:00
reInit StatusPanelAdder
This commit is contained in:
@@ -49,6 +49,15 @@ public class StatusPanelAdder{
|
||||
private static JProgressBar tempBar;
|
||||
|
||||
|
||||
public static void reInit(){
|
||||
labelTempC= new JLabel("§");
|
||||
scoreLabel= new JLabel(" ");
|
||||
powerUpLabel = new JLabel(" ");
|
||||
timeLabel = new JLabel("0");
|
||||
barSpeed=0.01;
|
||||
tempBar.setValue(30);
|
||||
Timer.reInit();
|
||||
}
|
||||
|
||||
|
||||
public static void raiseMod(){
|
||||
|
||||
@@ -12,6 +12,12 @@ public class Score {
|
||||
public static int getScore(){
|
||||
return score;
|
||||
}
|
||||
|
||||
public static void reInit(){
|
||||
score=0;
|
||||
bonusTime=180;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Score as String
|
||||
*/
|
||||
|
||||
@@ -13,6 +13,11 @@ public class Timer {
|
||||
raiseSeconds();
|
||||
}
|
||||
}
|
||||
public static void reInit(){
|
||||
ticktick=0;
|
||||
minute=0;
|
||||
seconds=0;
|
||||
}
|
||||
private static void raiseSeconds(){
|
||||
seconds++;
|
||||
if (seconds==60){
|
||||
|
||||
Reference in New Issue
Block a user