「Change」

1、增加编译期控制白天模式/夜间模式
FunctionBuildConfig.skinMode = 1;
2、增加地图3D白天模式兼容

Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
donghongyu
2022-04-14 11:25:03 +08:00
parent bbadffe84f
commit 1d8ba2834d
5 changed files with 101 additions and 64 deletions

View File

@@ -1,5 +1,6 @@
package com.mogo.eagle.core.function.call.setting
import com.mogo.eagle.core.data.config.FunctionBuildConfig
import com.mogo.eagle.core.function.api.setting.MoGoUiSettingProvider
/**
@@ -8,8 +9,6 @@ import com.mogo.eagle.core.function.api.setting.MoGoUiSettingProvider
* @author mogoauto
*/
object CallerMoGoUiSettingManager : MoGoUiSettingProvider {
// 0--默认夜间模式1-白天模式2-节日模式(待开发,加载节日图片包)
private var skinMode = 0
// 是否是VR模式true-VR模式false-2D模式
var vrMode = true
@@ -23,20 +22,20 @@ object CallerMoGoUiSettingManager : MoGoUiSettingProvider {
}
override fun stepInDayMode() {
skinMode = 1
CallerSkinModeListenerManager.invokeListener(skinMode)
FunctionBuildConfig.skinMode = 1
CallerSkinModeListenerManager.invokeListener(FunctionBuildConfig.skinMode)
}
override fun stepOutDayMode() {
skinMode = 0
CallerSkinModeListenerManager.invokeListener(skinMode)
FunctionBuildConfig.skinMode = 0
CallerSkinModeListenerManager.invokeListener(FunctionBuildConfig.skinMode)
}
/**
* 0--默认夜间模式1-白天模式2-节日模式(待开发,加载节日图片包)
*/
override fun getDayMode(): Int {
return skinMode
return FunctionBuildConfig.skinMode
}