()
| 21 | } |
| 22 | |
| 23 | @Override |
| 24 | public void init() { |
| 25 | // openAutoScreenshots(5,StageTest.class);//开启自动截图 |
| 26 | setResources(R.class);//不设置这一句无法使用R.strings.xxxxx的形式使用多语言,但可以使用其他在assets里的资源 |
| 27 | // openProtect("image");//加密image文件夹资源 |
| 28 | // unProtect("image"); |
| 29 | //showFps();//显示fps |
| 30 | setFont("test", new FreeBitmapFont(this, new FreePaint(R.font.DroidSans)));//添加自定义字体(可由用户自己提供 ttf) |
| 31 | /**对于 ios 版本,需要在 Info.plist.xml文件里定义 ttf 的路径,可定义多个 ttf 文件,例如 |
| 32 | <key>UIAppFonts</key> |
| 33 | <array> |
| 34 | <string>font/mainfont.ttf</string> |
| 35 | <string>font/DroidSans.ttf</string> |
| 36 | </array> |
| 37 | */ |
| 38 | setStage(StageMain.class);//设置入口界面 |
| 39 | } |
| 40 | } |
nothing calls this directly
no test coverage detected