ui/server/button.c

changeset 1007
a2070417b280
parent 1004
8b8d4f8af38e
--- 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] = ' ';

mercurial