⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 formhelp.java

📁 j2me游戏引擎
💻 JAVA
字号:
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

public class FormHelp extends Form implements CommandListener {
        private GAEM midletReference;
        private Command back;
        private StringItem instructions;
        public FormHelp(GAEM midlet) {
                super(null);
                instructions = new StringItem(null, "TITLE OPTIONS" + '\n' +
                "New game: Starts a game and erase previous saved game." + '\n' +
                "Load game: Loads the previous saved game if there is, else starts new game." + '\n' +
                "Help: Displays this help" + '\n' + " " + '\n' +
                
                "IN GAME CONTROLS" + '\n' +
                "Use directions keys or keypad to move. Back to Title saves the game and return to title screen. Open menu for options:" + '\n' +
                "-look, grab: Looks at or takes a nearby object." + '\n' +
                "-Inventory: Displays inventory." + '\n' + " " + '\n' +
                
                "INVENTORY MODE" + '\n' +
                "-Use in inventory: Uses selected with another one located in the inventory." + '\n' +
                "-Use in map: Uses Uses selected object with another located in the map. A pointer is displayed to select second object, move with keys.");
                append(instructions);
                midletReference = midlet;
                back = new Command("Back", Command.BACK, 3);
                addCommand(back);
                setCommandListener(this);
        }
        public void commandAction(Command c, Displayable d) {
                if (c == back)
                        midletReference.changeScreen(0);
        }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -