|
|
|
@ -262,18 +262,13 @@ export class ModelInfo_mark extends ModelInfo {
|
|
|
|
|
if (this.markData.property.taskType != MarkTask.None) { |
|
|
|
|
this.uiNumber.text = this.markData.property.getInstitutionNum(); |
|
|
|
|
this.uiTask.text = this.markData.property.task; |
|
|
|
|
this.uiNumber |
|
|
|
|
let instance = this; |
|
|
|
|
// setTimeout(() => {
|
|
|
|
|
// if (instance.uiNumber == null) {
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
// let numWidth = instance.uiNumber.widthInPixels;
|
|
|
|
|
// let taskWidth = instance.uiTask.widthInPixels;
|
|
|
|
|
// let maxWidth = Math.max(numWidth, taskWidth, this.c_uiDefaultWidth);
|
|
|
|
|
// instance.uiFollowHead.widthInPixels = maxWidth;
|
|
|
|
|
// // instance.uiFollowHeadBg.widthInPixels = maxWidth;
|
|
|
|
|
// }, (100));
|
|
|
|
|
if (this.markData.property.isMainCharacter) { |
|
|
|
|
this.uiFollowHeadBg.background = BabylonUIStyleTool.c_color_3d_redBg; |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
this.uiFollowHeadBg.background = BabylonUIStyleTool.c_color_3d_blueBg; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// console.log("喷水", this.taskNeedWaterParticle());
|
|
|
|
|
if (this.taskNeedWaterParticle()) { |
|
|
|
|