| | |
| | | } |
| | | if (trait_color.curValue.ToString() == "{}") |
| | | trait_color.curValue = "255,255,255"; |
| | | int.TryParse(trait_color.curValue.ToString().Split(",")[0], out redColor); |
| | | int.TryParse(trait_color.curValue.ToString().Split(",")[1], out greenColor); |
| | | int.TryParse(trait_color.curValue.ToString().Split(",")[2], out blueColor); |
| | | } |
| | | int.TryParse(trait_color.curValue.ToString().Split(",")[0], out redColor); |
| | | int.TryParse(trait_color.curValue.ToString().Split(",")[1], out greenColor); |
| | | int.TryParse(trait_color.curValue.ToString().Split(",")[2], out blueColor); |
| | | |
| | | int recolor = redColor * 256 * 256 + greenColor * 256 + blueColor; |
| | | |
| | |
| | | redColor = color[0]; |
| | | greenColor = color[1]; |
| | | blueColor = color[2]; |
| | | trait_color.curValue = redColor + "," + greenColor + "," + blueColor; |
| | | } |
| | | |
| | | [Newtonsoft.Json.JsonIgnore] |