antirez / antirez/protoview

Ability to create a field with an array of strings

未关闭
#6 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C
星标
594
派生
24
PR 合并指标
30 天内没有已合并 PR

描述

We currently have the ability to add a str field and we have a nice keyboard where we can edit it.
However, sometimes the number of possibilities may be limited and it would be nice to be able to choose one from a pre-prepared list.
This can also be useful for describing other types (e.g. button lock/unlock) instead of using byte or int.

Pseudocode for better visualization:

```c
fieldset_add_str_arr(info->fieldset,"Button",{"Lock", "Unlock"},2,0);
```

It would work so that instead of editing on the keyboard, we would switch between strings from the list using the arrows.

I am convinced that you know what I mean.
Let me know what do you think about it 😉

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。