Implementing batch cleaning with washboard - help me!


#1

I’ve decided to finally getting around to implementing 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.


#2

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

or C++ examples all over the code:


#3

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


#4

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


#5

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


#6

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?


#7

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.