mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-03 01:12:42 +08:00
95105db4c8
* feat: inspector/texture/ Comparison of the differences between atlas and useData regarding the configuration of filter * feat: update color
34 lines
757 B
JavaScript
34 lines
757 B
JavaScript
'use strict';
|
|
|
|
const texture = require('./texture');
|
|
|
|
exports.template = texture.template;
|
|
|
|
exports.style = texture.style;
|
|
|
|
exports.$ = texture.$;
|
|
|
|
const Elements = texture.Elements;
|
|
|
|
exports.methods = texture.methods;
|
|
|
|
exports.ready = texture.ready;
|
|
|
|
exports.update = function(assetList, metaList, parentAssetList) {
|
|
this.assetList = assetList;
|
|
this.metaList = metaList;
|
|
this.asset = assetList[0];
|
|
this.meta = metaList[0];
|
|
this.parentAssetList = parentAssetList;
|
|
|
|
this.userData = this.meta.userData;
|
|
this.userDataList = this.metaList.map((item) => item.userData);
|
|
|
|
for (const prop in Elements) {
|
|
const element = Elements[prop];
|
|
if (element.update) {
|
|
element.update.call(this);
|
|
}
|
|
}
|
|
};
|