| | |
| | | Height = Application.GetRealHeight(288), |
| | | UnSelectedImagePath = "FunctionIcon/Light/RelayBg.png", |
| | | SelectedImagePath = "FunctionIcon/Light/RelayOnBg.png", |
| | | IsSelected = light.on_off == "on" |
| | | IsSelected = light.trait_on_off.value.ToString() == "on" |
| | | }; |
| | | controlView.AddChidren(btnSwitchIcon); |
| | | |
| | |
| | | Height = Application.GetMinRealAverage(40), |
| | | UnSelectedImagePath = "Public/PowerClose.png", |
| | | SelectedImagePath = "Public/PowerOpen.png", |
| | | IsSelected = light.on_off == "on" |
| | | IsSelected = light.trait_on_off.value.ToString() == "on" |
| | | }; |
| | | controlView.AddChidren(btnSwitch); |
| | | |