mirror of
https://gitee.com/nomat/lcc-ui-sorting-group-demo.git
synced 2025-10-24 09:05:27 +00:00
日常
This commit is contained in:
@@ -72,13 +72,6 @@ export function updateOpacity (renderData: RenderData, opacity: number) {
|
||||
}
|
||||
}
|
||||
|
||||
const UI_initialize = UI.prototype.initialize;
|
||||
UI.prototype.initialize = function(){
|
||||
this.rendererCache = [];
|
||||
this.rendererOrder = false;
|
||||
return UI_initialize.call(this);
|
||||
}
|
||||
|
||||
UI.prototype.flushRendererCache = function(){
|
||||
const rendererCache = this.rendererCache;
|
||||
if(rendererCache.length > 0){
|
||||
@@ -104,6 +97,8 @@ UI.prototype.update = function() {
|
||||
if (JSB) {
|
||||
return;
|
||||
}
|
||||
this.rendererCache = this.rendererCache ?? [];
|
||||
this.rendererOrder = false;
|
||||
const screens = this._screens;
|
||||
let offset = 0;
|
||||
for (let i = 0; i < screens.length; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user