internal static GuiColourMatrix FromXml(XElement xml) { var r = GuiColourMatrixEntry.FromXml(xml.Element("MatrixRed")); var g = GuiColourMatrixEntry.FromXml(xml.Element("MatrixGreen")); var b = GuiColourMatrixEntry.FromXml(xml.Element("MatrixBlue")); return(new GuiColourMatrix(r, g, b) { LocalisationName = xml.Element("LocalisationName")?.Value, }); }
private GuiColourMatrix(GuiColourMatrixEntry r, GuiColourMatrixEntry g, GuiColourMatrixEntry b) { _v[0] = r; _v[1] = g; _v[2] = b; }