[MOD] Multiple-option choices for lists.

You can now mass-remove admins!
This commit is contained in:
LDA 2024-07-15 12:33:39 +02:00
commit 308dfd500d
3 changed files with 59 additions and 16 deletions

View file

@ -46,6 +46,23 @@
} \
} \
while(0)
#define GFVMulti(to,id,form,n) do \
{ \
XMLElement *field_content = XMLookForTKV(form, "field", "var", id); \
XMLElement *value = field_content ? ArrayGet(field_content->children, n) : NULL; \
XMLElement *val_data = value ? ArrayGet(value->children, 0) : NULL; \
if (val_data && val_data->data) \
{ \
to = val_data->data; \
} \
} \
while(0)
#define GFVCount(to,id,form) do \
{ \
XMLElement *field_content = XMLookForTKV(form, "field", "var", id); \
to = field_content ? ArraySize(field_content->children) : 0; \
} \
while(0)
#define SetNote(type, text) do \
{ \