Browse Source

update

sunlight
zhaohe 11 months ago
parent
commit
13f414362d
  1. 8
      usrc/service/page/Page_main.cpp

8
usrc/service/page/Page_main.cpp

@ -87,13 +87,19 @@ void Page_main::OnPageLoad(OnPageLoadContext* cxt) {
void Page_main::OnAppEvent(AppEvent_t* event) {
if (event->type == kAppEvent_RunModeChangeEvent) {
updateRunModeState();
UIS->setTxt(PAGE, ob_main_sysInfo, "切换模式");
}
if (event->type == kAppEvent_RemoterConnectStateChangeEvent) {
UIS->setEnumComponentState(PAGE, ob_main_RemoterS, GSM->getRemoterS());
if (GSM->getRemoterS()) {
UIS->setTxt(PAGE, ob_main_sysInfo, "连接上手柄");
} else {
UIS->setTxt(PAGE, ob_main_sysInfo, "断开手柄连接");
}
}
if(event->type == kAppEvent_StateDisplayInfo){
if (event->type == kAppEvent_StateDisplayInfo) {
UIS->setTxt(PAGE, ob_main_sysInfo, event->d.stateDisplayInfo);
}

Loading…
Cancel
Save