mirror of
https://gitee.com/dgflash/oops-framework.git
synced 2026-05-31 18:59:19 +08:00
同步最新框架代码
This commit is contained in:
@@ -265,7 +265,7 @@
|
||||
"_priority": 1073741824,
|
||||
"_fov": 45,
|
||||
"_fovAxis": 0,
|
||||
"_orthoHeight": 414.47852760736197,
|
||||
"_orthoHeight": 360,
|
||||
"_near": 1,
|
||||
"_far": 2000,
|
||||
"_color": {
|
||||
|
||||
@@ -52,16 +52,11 @@ export class InitResSystem extends ecs.ComblockSystem implements ecs.IEntityEnte
|
||||
queue.push((next: NextFunction, params: any, args: any) => {
|
||||
// 设置默认语言
|
||||
let lan = oops.storage.get("language");
|
||||
// if (lan == null) {
|
||||
if (lan == null || lan == "") {
|
||||
lan = "zh";
|
||||
oops.storage.set("language", lan);
|
||||
}
|
||||
|
||||
// 设置语言包路径
|
||||
oops.language.pack.json = oops.config.game.languagePathJson;
|
||||
oops.language.pack.texture = oops.config.game.languagePathTexture;
|
||||
|
||||
// 加载语言包资源
|
||||
oops.language.setLanguage(lan, next);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user