[3.4.0]红绿灯增加控制是否显示方法

This commit is contained in:
xuxinchao
2023-07-17 16:02:53 +08:00
parent 9bd1ea78e0
commit 1bc001d173
3 changed files with 42 additions and 0 deletions

View File

@@ -20,9 +20,11 @@ import com.mogo.eagle.core.data.enums.WarningDirectionEnum
import com.mogo.eagle.core.data.map.Infrastructure
import com.mogo.eagle.core.data.biz.notice.NoticeNormalData
import com.mogo.eagle.core.data.biz.notice.NoticeTrafficStylePushData
import com.mogo.eagle.core.data.config.HmiBuildConfig
import com.mogo.eagle.core.function.api.hmi.warning.IMoGoHmiProvider
import com.mogo.eagle.core.function.api.hmi.warning.IMoGoWarningStatusListener
import com.mogo.eagle.core.function.call.hmi.*
import com.mogo.eagle.core.function.call.v2x.CallerTrafficLightListenerManager
import com.mogo.eagle.core.function.call.v2x.CallerV2XWarningListenerManager
import com.mogo.eagle.core.function.hmi.ui.camera.RoadVideoDialog
import com.mogo.eagle.core.function.hmi.ui.lookaround.*
@@ -356,4 +358,19 @@ class MoGoHmiProvider : IMoGoHmiProvider {
override fun showStatusSummaryDialog() {
context?.let { StatusView.statusView.toggle(it) }
}
/**
* 展示红绿灯
*/
override fun showTrafficLightView() {
HmiBuildConfig.isShowTrafficLightView = false
}
/**
* 隐藏红绿灯
*/
override fun hideTrafficLightView() {
HmiBuildConfig.isShowTrafficLightView = true
CallerTrafficLightListenerManager.disableTrafficLight()
}
}