diff --git a/src/app/babylon/model/info/mark/model-info-mark.ts b/src/app/babylon/model/info/mark/model-info-mark.ts index cc06525..57d85ed 100644 --- a/src/app/babylon/model/info/mark/model-info-mark.ts +++ b/src/app/babylon/model/info/mark/model-info-mark.ts @@ -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()) { diff --git a/src/app/babylon/tool/babylon-ui-style-tool.ts b/src/app/babylon/tool/babylon-ui-style-tool.ts index 16e4f41..3c0a2d8 100644 --- a/src/app/babylon/tool/babylon-ui-style-tool.ts +++ b/src/app/babylon/tool/babylon-ui-style-tool.ts @@ -24,6 +24,8 @@ export class BabylonUIStyleTool { static c_color_3d_blue: string = "#47E0FF";//蓝, 框体 static c_color_3d_blueBg: string = "#122F49";//蓝黑,背景 + static c_color_3d_redBg: string = "#990000";//红黑,背景 + static c_shadow_blur_button = 2;//按钮的阴影模糊 static c_shadow_blur_window = 20; //界面的阴影模糊