mirror of
https://github.com/jokerx3/HeatUp
synced 2026-07-27 09:59:45 +02:00
Kommentar für die Entwicklung hinzugefügt
This commit is contained in:
@@ -24,7 +24,15 @@ public class ActionControl {
|
||||
public static void setAction(String s){
|
||||
System.out.println("prompt");
|
||||
if(s.equals("smashing")){
|
||||
String str= "Bitte die Taste "+smashing.getKey()+" so schnell wie möglich drücken";
|
||||
char tmp = smashing.getKey();
|
||||
|
||||
|
||||
//Hier soll eine Methode rein, sowas wie setTaste() oder setKey(), welche in der Manipulationshändling Klasse
|
||||
//Implemintiert ist. Damit das Programm weiß welche Tasten Ausgelost wurden. Man übergibt einfach den tmp Char weiter.
|
||||
|
||||
|
||||
|
||||
String str= "Bitte die Taste "+tmp+" so schnell wie möglich drücken";
|
||||
comp.setText(str);
|
||||
comp.setFont(new Font("Arial", Font.CENTER_BASELINE, 16));
|
||||
comp.setBorder(new LineBorder(Color.BLACK, 1));
|
||||
@@ -33,6 +41,11 @@ public class ActionControl {
|
||||
panel.setVisible(true);
|
||||
}else{
|
||||
char []tmp = keysequence.getKeySequence();
|
||||
|
||||
|
||||
//Das selbe wie oben...
|
||||
|
||||
|
||||
String str="Bitte diese Tastenkombination \""+tmp[0]+" "+tmp[1]+" "+tmp[2]+" "+tmp[3]+"\" "+"so schnell wie möglich eingeben";
|
||||
comp.setText(str);
|
||||
comp.setFont(new Font("Arial", Font.CENTER_BASELINE, 16));
|
||||
|
||||
Reference in New Issue
Block a user