Sun, 14 Dec 2025 21:03:19 +0100
implement button label type (Server)
| ui/server/button.c | file | annotate | diff | comparison | revisions |
--- a/ui/server/button.c Sun Dec 14 20:22:41 2025 +0100 +++ b/ui/server/button.c Sun Dec 14 21:03:19 2025 +0100 @@ -43,7 +43,7 @@ UI_STANDARD_ARGS(&buf, args); UI_LABEL_ARGS(&buf, args); - // TODO: labeltype, states + if(args->labeltype != UI_LABEL_DEFAULT) ui_argstr_add_int(&buf, "labeltype", (int)args->labeltype); if(buf.size > 0 && buf.space[buf.size-1] == ',') { buf.space[buf.size-1] = ' '; @@ -61,7 +61,7 @@ UI_STANDARD_ARGS(&buf, args); UI_LABEL_ARGS(&buf, args); if(value.ptr) ui_argstr_add_str(&buf, "value", value.ptr); - // TODO: labeltype, states + if(args->labeltype != UI_LABEL_DEFAULT) ui_argstr_add_int(&buf, "labeltype", (int)args->labeltype); if(buf.size > 0 && buf.space[buf.size-1] == ',') { buf.space[buf.size-1] = ' ';