📄 menulivelli.java
字号:
// FrontEnd Plus GUI for JAD
// DeCompiled : MenuLivelli.class
import javax.microedition.lcdui.*;
class MenuLivelli extends List
implements CommandListener
{
private final FastFuriousMIDlet mi;
private final Displayable pr;
private short li;
private short liP;
private Image spunta;
private final String liv[] = {
"Facile", "Normale", "Difficile"
};
private Image im;
MenuLivelli(FastFuriousMIDlet mi, Displayable pr)
{
super("Livello", 3);
this.mi = mi;
this.pr = pr;
liP = (short)mi.livello;
try
{
im = Image.createImage("/i/va/sp.png");
}
catch(Exception e) { }
for(int n = 0; n < 3; n++)
append(liv[n], null);
set(liP, liv[liP], im);
addCommand(new Command("Indietro", 2, 1));
setCommandListener(this);
}
public void commandAction(Command command, Displayable d)
{
if(command == List.SELECT_COMMAND)
{
li = (short)getSelectedIndex();
if(li != liP)
mi.assegnaLivello(liv[li], li);
} else
{
im = null;
System.gc();
mi.settingsScreenBack(pr);
}
}
void assegnaLivello(int livello)
{
liP = (short)livello;
for(int n = 0; n < 3; n++)
set(n, liv[n], null);
set(liP, liv[liP], im);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -