完善地图交互、动画与罗盘调试
This commit is contained in:
@@ -9,11 +9,14 @@ const SCORE_LABEL_FONT_SIZE_RATIO = 0.7
|
||||
const SCORE_LABEL_OFFSET_Y_RATIO = 0.06
|
||||
const DEFAULT_LABEL_COLOR = 'rgba(204, 0, 107, 0.98)'
|
||||
const ACTIVE_LABEL_COLOR = 'rgba(255, 219, 54, 0.98)'
|
||||
const READY_LABEL_COLOR = 'rgba(98, 255, 214, 0.98)'
|
||||
const MULTI_ACTIVE_LABEL_COLOR = 'rgba(255, 202, 72, 0.96)'
|
||||
const FOCUSED_LABEL_COLOR = 'rgba(255, 252, 255, 0.98)'
|
||||
const COMPLETED_LABEL_COLOR = 'rgba(126, 131, 138, 0.94)'
|
||||
const SKIPPED_LABEL_COLOR = 'rgba(152, 156, 162, 0.88)'
|
||||
const SCORE_LABEL_COLOR = 'rgba(255, 252, 242, 0.98)'
|
||||
const SCORE_COMPLETED_LABEL_COLOR = 'rgba(214, 218, 224, 0.94)'
|
||||
const SCORE_SKIPPED_LABEL_COLOR = 'rgba(176, 182, 188, 0.9)'
|
||||
|
||||
export class CourseLabelRenderer {
|
||||
courseLayer: CourseLayer
|
||||
@@ -107,6 +110,10 @@ export class CourseLabelRenderer {
|
||||
return FOCUSED_LABEL_COLOR
|
||||
}
|
||||
|
||||
if (scene.readyControlSequences.includes(sequence)) {
|
||||
return READY_LABEL_COLOR
|
||||
}
|
||||
|
||||
if (scene.activeControlSequences.includes(sequence)) {
|
||||
return scene.controlVisualMode === 'multi-target' ? MULTI_ACTIVE_LABEL_COLOR : ACTIVE_LABEL_COLOR
|
||||
}
|
||||
@@ -116,7 +123,7 @@ export class CourseLabelRenderer {
|
||||
}
|
||||
|
||||
if (scene.skippedControlSequences.includes(sequence)) {
|
||||
return COMPLETED_LABEL_COLOR
|
||||
return SKIPPED_LABEL_COLOR
|
||||
}
|
||||
|
||||
return DEFAULT_LABEL_COLOR
|
||||
@@ -127,12 +134,16 @@ export class CourseLabelRenderer {
|
||||
return FOCUSED_LABEL_COLOR
|
||||
}
|
||||
|
||||
if (scene.readyControlSequences.includes(sequence)) {
|
||||
return READY_LABEL_COLOR
|
||||
}
|
||||
|
||||
if (scene.completedControlSequences.includes(sequence)) {
|
||||
return SCORE_COMPLETED_LABEL_COLOR
|
||||
}
|
||||
|
||||
if (scene.skippedControlSequences.includes(sequence)) {
|
||||
return SCORE_COMPLETED_LABEL_COLOR
|
||||
return SCORE_SKIPPED_LABEL_COLOR
|
||||
}
|
||||
|
||||
return SCORE_LABEL_COLOR
|
||||
|
||||
Reference in New Issue
Block a user