# HG changeset patch # User Olaf Wintermann # Date 1765742599 -3600 # Node ID a2070417b2801825fbe17d9fc1e69741c5bce537 # Parent ee62f38292719a03af09cfee89ea50bacc1858b6 implement button label type (Server) diff -r ee62f3829271 -r a2070417b280 ui/server/button.c --- 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] = ' ';