| | |
| | | Progress = light.brightness, |
| | | }; |
| | | controlView.AddChidren(dimmerBar); |
| | | if(light.on_off == "on") |
| | | if(light.trait_on_off.value.ToString() == "on") |
| | | { |
| | | dimmerBar.SetProgressBarColors(CSS_Color.AuxiliaryColor1, CSS_Color.AuxiliaryColor1); |
| | | } |
| | |
| | | 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", |
| | | //Tag = |
| | | }; |
| | | controlView.AddChidren(btnSwitch); |