📄 help.java
字号:
package Src;
import javax.microedition.lcdui.*;
public class Help extends Canvas{
private int width,heigh;//获取不同机型长宽
private Image img;//定义背景图以及选择图
private FugitiveGame FugitiveGame;
Help(FugitiveGame FugitiveGame)
{
super.setFullScreenMode(true);
try{
img=Image.createImage("/res/help.png");
}catch(Exception e){}
width=this.getWidth();
heigh=this.getHeight();
this.FugitiveGame=FugitiveGame;
}
public void keyPressed(int keycode)
{
if(keycode==-7)
{
this.FugitiveGame.back();
}
}
public void paint(Graphics g)
{
g.setColor(0xFFFFFF);
g.fillRect( 0, 0, width,heigh );
g.setColor(0x00000);
g.drawImage(img,0,0, g.TOP | g.LEFT );
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -