+public bool WriteColorAlpha(File f, Class type, DataValue value, int indent)
+{
+ char buffer[1024];
+ char * string = buffer;
+ ColorAlpha color = value.i;
+ int a = color.a;
+ int len;
+ DefinedColor c = color;
+ buffer[0] = '\0';
+ if(a != 255)
+ {
+ a.class::OnGetString(buffer, null, null);
+ len = strlen(buffer);
+ buffer[len++] = ',';
+ buffer[len++] = ' ';
+ buffer[len] = '\0';
+ string += len;
+ }
+ if(!c.class::OnGetString(string, null, null))
+ sprintf(buffer, "0x%x", color);
+ f.Puts("\"");
+ f.Puts(buffer);
+ f.Puts("\"");
+ return true;
+}
+