| | |
| | | var btnGradualChangeMinValuesText = new Button() |
| | | { |
| | | X = Application.GetRealWidth(35), |
| | | Y = btnGradualChangeText.Bottom,// + Application.GetRealHeight(10), |
| | | Y = btnGradualChangeText.Bottom + Application.GetRealHeight(10), |
| | | Width = Application.GetRealWidth(22), |
| | | Height = Application.GetRealHeight(21), |
| | | Text = "0s", |
| | |
| | | var btnGradualChangeMaxValuesText = new Button() |
| | | { |
| | | X = barFadeTime.Right, |
| | | Y = btnGradualChangeText.Bottom,// + Application.GetRealHeight(10), |
| | | Y = btnGradualChangeText.Bottom + Application.GetRealHeight(10), |
| | | Width = Application.GetRealWidth(35), |
| | | Height = Application.GetRealHeight(21), |
| | | Text = "10s", |
| | |
| | | var btnEditColorful = new Button() |
| | | { |
| | | X = Application.GetRealWidth(35), |
| | | Y = btnGradualChangeText.Bottom,// + Application.GetRealHeight(10), |
| | | Y = btnGradualChangeText.Bottom + Application.GetRealHeight(10), |
| | | Width = Application.GetRealWidth(22), |
| | | Height = Application.GetRealHeight(21), |
| | | UnSelectedImagePath = "Public/Edit.png", |
| | |
| | | var barColorful = new FrameLayout() |
| | | { |
| | | X = btnEditColorful.Right + Application.GetRealWidth(15), |
| | | Y = Application.GetRealHeight(27 + heightMore + magriHeight), |
| | | Y = Application.GetRealHeight(37 + heightMore + magriHeight), |
| | | Width = Application.GetRealWidth(180), |
| | | Height = Application.GetRealHeight(8), |
| | | BackgroundImagePath = "FunctionIcon/Light/ColorfulBar.png", |
| | |
| | | btnColorfulSwitch = new Button() |
| | | { |
| | | X = barColorful.Right + Application.GetRealWidth(8), |
| | | Y = btnGradualChangeText.Bottom,// + Application.GetRealHeight(10), |
| | | Y = btnGradualChangeText.Bottom + Application.GetRealHeight(10), |
| | | Width = Application.GetRealWidth(38), |
| | | Height = Application.GetRealHeight(24), |
| | | UnSelectedImagePath = "Public/Switch.png", |
| | |
| | | function.SetAttrState(FunctionAttributeKey.Colorful, controlColorfulState); |
| | | System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); |
| | | d.Add(FunctionAttributeKey.Colorful, controlColorfulState); |
| | | if (controlColorfulState == "on") |
| | | { |
| | | var color = function.GetAttrState(FunctionAttributeKey.ColorfulBegin).Split(","); |
| | | var sendColorString = color[0] + "," + color[1] + "," + color[2]; |
| | | d.Add(FunctionAttributeKey.ColorfulBegin, sendColorString); |
| | | color = function.GetAttrState(FunctionAttributeKey.ColorfulEnd).Split(","); |
| | | sendColorString = color[0] + "," + color[1] + "," + color[2]; |
| | | d.Add(FunctionAttributeKey.ColorfulEnd, sendColorString); |
| | | d.Add(FunctionAttributeKey.ColorfulTime, function.GetAttrState(FunctionAttributeKey.ColorfulTime)); |
| | | } |
| | | Control.Ins.SendWriteCommand(function, d); |
| | | }catch(Exception ex) |
| | | { |