mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-14 02:15:10 +00:00
[MOD] Multiple-option choices for lists.
You can now mass-remove admins!
This commit is contained in:
parent
0cb19a15d8
commit
308dfd500d
3 changed files with 59 additions and 16 deletions
|
|
@ -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 \
|
||||
{ \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue