| 41 |
41 |
| 42 cxBufferPutString(&buf, "{"); |
42 cxBufferPutString(&buf, "{"); |
| 43 |
43 |
| 44 UI_STANDARD_ARGS(&buf, args); |
44 UI_STANDARD_ARGS(&buf, args); |
| 45 UI_LABEL_ARGS(&buf, args); |
45 UI_LABEL_ARGS(&buf, args); |
| 46 // TODO: labeltype, states |
46 if(args->labeltype != UI_LABEL_DEFAULT) ui_argstr_add_int(&buf, "labeltype", (int)args->labeltype); |
| 47 |
47 |
| 48 if(buf.size > 0 && buf.space[buf.size-1] == ',') { |
48 if(buf.size > 0 && buf.space[buf.size-1] == ',') { |
| 49 buf.space[buf.size-1] = ' '; |
49 buf.space[buf.size-1] = ' '; |
| 50 } |
50 } |
| 51 cxBufferPutString(&buf, "}"); |
51 cxBufferPutString(&buf, "}"); |
| 59 cxBufferPutString(&buf, "{"); |
59 cxBufferPutString(&buf, "{"); |
| 60 |
60 |
| 61 UI_STANDARD_ARGS(&buf, args); |
61 UI_STANDARD_ARGS(&buf, args); |
| 62 UI_LABEL_ARGS(&buf, args); |
62 UI_LABEL_ARGS(&buf, args); |
| 63 if(value.ptr) ui_argstr_add_str(&buf, "value", value.ptr); |
63 if(value.ptr) ui_argstr_add_str(&buf, "value", value.ptr); |
| 64 // TODO: labeltype, states |
64 if(args->labeltype != UI_LABEL_DEFAULT) ui_argstr_add_int(&buf, "labeltype", (int)args->labeltype); |
| 65 |
65 |
| 66 if(buf.size > 0 && buf.space[buf.size-1] == ',') { |
66 if(buf.size > 0 && buf.space[buf.size-1] == ',') { |
| 67 buf.space[buf.size-1] = ' '; |
67 buf.space[buf.size-1] = ' '; |
| 68 } |
68 } |
| 69 cxBufferPutString(&buf, "}"); |
69 cxBufferPutString(&buf, "}"); |