소스 검색

modding #1974: Added the ability for mods to override default UIs

tags/v0.12.0
Shaun 1 년 전
부모
커밋
971fc10e9c
1개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. +7
    -2
      src/client/ui/factory.js

+ 7
- 2
src/client/ui/factory.js 파일 보기

@@ -90,8 +90,13 @@ define([
let path = null;
if (options && options.path)
path = options.path + `\\${type}.js`;
else
path = this.root + 'ui/templates/' + type + '/' + type;
else {
const entryInClientConfig = globals.clientConfig.uiList.find(u => u.type === type);
if (entryInClientConfig)
path = entryInClientConfig.path;
else
path = this.root + 'ui/templates/' + type + '/' + type;
}
require([path], this.onGetTemplate.bind(this, options, type));
},


불러오는 중...
취소
저장