「Change」
1、增加编译期控制白天模式/夜间模式 FunctionBuildConfig.skinMode = 1; 2、增加地图3D白天模式兼容 Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user