public string Output() { return(string.Format("primary_colour{0}red {1}, green {2}, blue {3}\r\n" + "secondary_colour{4}red {5}, green {6}, blue {7}\r\n", StrFormat.GetTabSpacing(priTag, 7), colours[0].R, colours[0].G, colours[0].B, StrFormat.GetTabSpacing(secTag, 7), colours[1].R, colours[1].G, colours[1].B)); }
public string Output() { string str = ""; if (skeleton != null) { str += string.Format("{0}{1}{2}", tag, StrFormat.GetNewWhiteSpace(tag), skeleton.ToArray().ArrayToString(false, false, true, 0)).CRL(); } if (skeleHorse != null) { str += string.Format("{0}{1}{2}{3}", tag, horse, StrFormat.GetNewWhiteSpace(tag + horse), skeleHorse.ToArray().ArrayToString(false, false, true, 0)).CRL(); } if (skeleElephant != null) { str += string.Format("{0}{1}{2}{3}", tag, elephant, StrFormat.GetNewWhiteSpace(tag + elephant), skeleElephant.ToArray().ArrayToString(false, false, true, 0)).CRL(); } if (skeleChariot != null) { str += string.Format("{0}{1}{2}{3}", tag, chariot, StrFormat.GetNewWhiteSpace(tag + chariot), skeleChariot.ToArray().ArrayToString(false, false, true, 0)).CRL(); } if (skeleCamel != null) { str += string.Format("{0}{1}{2}{3}", tag, camel, StrFormat.GetNewWhiteSpace(tag + camel), skeleCamel.ToArray().ArrayToString(false, false, true, 0)).CRL(); } return(str); }
public string Output() { string str = ""; str = String.Format("{0}{1}{2}", tag, StrFormat.GetNewWhiteSpace(tag), type); return(str.CRL()); }
public void RefreshLines() { foreach (var attr in attributeLineNumbers) { foreach (var param in attr.Value) { int lineno = param.Value; string p = param.Key; string a = attr.Key; lines[lineno] = String.Format(Format, p, StrFormat.GetNewWhiteSpace(p, MaxSizeOfTag), attributes[a][p].items.OutputArrayAsLine(", ")); } } }
public string Output() { string str = ""; if (modelTri != null) { str = String.Format("{0}{1}{2}{3}", tag, StrFormat.GetNewWhiteSpace(tag), val.ToString() + ", ", modelTri.ArrayToString(false, false, true, 0, "f")); } return(str.CRL()); }
public string Output() { string str = ""; if (!Active) { return(str); } str = String.Format("{0}{1}{2}", tag, StrFormat.GetNewWhiteSpace(tag), scale); return(str.CRL()); }
public string Output() { if (typeof(T) == typeof(bool)) { string yesNo = ""; if ((bool)(object)value == true) { return(string.Format("{0}{1}{2}\r\n", tag, StrFormat.GetTabSpacing(tag, 7), "yes")); } else { return(string.Format("{0}{1}{2}\r\n", tag, StrFormat.GetTabSpacing(tag, 7), "no")); } } return(string.Format("{0}{1}{2}\r\n", tag, StrFormat.GetTabSpacing(tag, 7), value)); }
public string Output() { string str = ""; if (factions != null) { str = String.Format("{0}{1}{2}{3}", tag, StrFormat.GetNewWhiteSpace(tag), factions.ToArray().ArrayToString(false, false, false, 0), filepath); } else { str = String.Format("{0}{1}{2}", tag, StrFormat.GetNewWhiteSpace(tag), filepath); } return(str.CRL()); }
public string Output() { string str = ""; if (factions == null) { str = String.Format("{0}{1}{2}, {3}", tag, StrFormat.GetNewWhiteSpace(tag), value, filepath); } else if (factions.Count > 0) { str = String.Format("{0}{1}{2}{3}, {4}", tag, StrFormat.GetNewWhiteSpace(tag), factions.ToArray().ArrayToString(false, false, true, 1), value, filepath); } return(str.CRL()); }
public string Output() { string str = ""; string typeStr = type.ToString(); if (valueStr != null) { str = String.Format("{0}{1}{2}, {3}", type.ToString(), StrFormat.GetNewWhiteSpace(type.ToString()), filepath, valueStr); } else if (valueInt != int.MaxValue) { str = String.Format("{0}{1}{2}, {3}", type.ToString(), StrFormat.GetNewWhiteSpace(type.ToString()), filepath, valueInt.ToString()); } return(str.CRL()); }
void UpdateLine(string name, string editstr, string attribute, bool append) { int lineNumber = attributeLineNumbers[name][attribute]; lines[lineNumber] = String.Format(Format, name, StrFormat.GetNewWhiteSpace(name, MaxSizeOfTag), attributes[name][attribute].items.OutputArrayAsLine(", ")); }