# Implementing batch cleaning with washboard - help me!

**URL:** <https://discourse.cataclysmdda.org/t/implementing-batch-cleaning-with-washboard-help-me/15279>\
**Category:** The Toolbox\
**Created:** [April 16, 2018, 5:31pm UTC](https://discourse.cataclysmdda.org/t/implementing-batch-cleaning-with-washboard-help-me/15279 "2018-04-16T17:31:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanielPBak](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/danielpbak/32/2120_2.png) [@DanielPBak](https://discourse.cataclysmdda.org/u/DanielPBak)\
**Post date:** [April 16, 2018, 5:31pm UTC](https://discourse.cataclysmdda.org/t/implementing-batch-cleaning-with-washboard-help-me/15279/1 "2018-04-16T17:31:13Z")

</div>

I’ve decided to finally getting around to implementing [https://github.com/CleverRaven/Cataclysm-DDA/issues/22776](https://github.com/CleverRaven/Cataclysm-DDA/issues/22776)

Can anyone give me advice on how the UI works? Is there a framework or something that we use?

If someone more well-versed in the UI (especially inventory filtering and such) could give me a general plan for implementing this I’d really appreciate it.

---

<div class="post-metadata">

**Author:** ![Zhilkin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zhilkin/32/3749_2.png) [@Zhilkin](https://discourse.cataclysmdda.org/u/Zhilkin)\
**Post date:** [April 16, 2018, 6:00pm UTC](https://discourse.cataclysmdda.org/t/implementing-batch-cleaning-with-washboard-help-me/15279/2 "2018-04-16T18:00:51Z")

</div>

Popup menus with filtering can be created using `uimenu` class. You can look into Lua example here:

> <https://github.com/ZhilkinSerg/Cataclysm-DDA-LUA/blob/master/dda-lua-items/preload.lua>

or C++ examples all over the code:

> **[CleverRaven/Cataclysm-DDA](https://github.com/CleverRaven/Cataclysm-DDA/search?utf8=%E2%9C%93&q=uimenu&type=)**
>
> Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world. - CleverRaven/Cataclysm-DDA

---

<div class="post-metadata">

**Author:** ![DanielPBak](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/danielpbak/32/2120_2.png) [@DanielPBak](https://discourse.cataclysmdda.org/u/DanielPBak)\
**Post date:** [April 16, 2018, 8:48pm UTC](https://discourse.cataclysmdda.org/t/implementing-batch-cleaning-with-washboard-help-me/15279/3 "2018-04-16T20:48:35Z")

</div>

Would you recommend implementing this with lua or C++?

---

<div class="post-metadata">

**Author:** ![Zhilkin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zhilkin/32/3749_2.png) [@Zhilkin](https://discourse.cataclysmdda.org/u/Zhilkin)\
**Post date:** [April 16, 2018, 8:53pm UTC](https://discourse.cataclysmdda.org/t/implementing-batch-cleaning-with-washboard-help-me/15279/4 "2018-04-16T20:53:20Z")

</div>

I dunno. It is up to you. That was just code example.

---

<div class="post-metadata">

**Author:** ![dissociativity](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/dissociativity/32/4967_2.png) [@dissociativity](https://discourse.cataclysmdda.org/u/dissociativity)\
**Post date:** [April 17, 2018, 12:13am UTC](https://discourse.cataclysmdda.org/t/implementing-batch-cleaning-with-washboard-help-me/15279/5 "2018-04-17T00:13:42Z")

</div>

the devs have considered ultimately phasing lua out, so I’d recommend C++

---

<div class="post-metadata">

**Author:** ![DanielPBak](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/danielpbak/32/2120_2.png) [@DanielPBak](https://discourse.cataclysmdda.org/u/DanielPBak)\
**Post date:** [April 17, 2018, 8:56pm UTC](https://discourse.cataclysmdda.org/t/implementing-batch-cleaning-with-washboard-help-me/15279/6 "2018-04-17T20:56:46Z")

</div>

Does anybody know if there is currently a way to do inv\_for\_flag as a multi-selector instead of a single selector? Or any examples in the game where the user can select multiple items from a filtered list?

---

<div class="post-metadata">

**Author:** ![darktoes](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@darktoes](https://discourse.cataclysmdda.org/u/darktoes)\
**Post date:** [April 17, 2018, 11:44pm UTC](https://discourse.cataclysmdda.org/t/implementing-batch-cleaning-with-washboard-help-me/15279/7 "2018-04-17T23:44:58Z")

</div>

The only time I can think of where you can select multiple things from a list is the item compare UI, but I don’t think that’s filtered.
