RimWorld

RimWorld

193 ratings
Searchable Menus
2
3
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.4, 1.5
File Size
Posted
Updated
59.625 KB
Feb 4, 2023 @ 5:37pm
Apr 10, 2024 @ 6:54pm
3 Change Notes ( view )

Subscribe to download
Searchable Menus

Description
Adds a quick search field to any float menu that is at least a minimum size (configurable, default 15 options).

The mouse cursor must be over the menu when typing, or the search field will not pick up the keypresses. Note that the menu will become shorter when items are filtered out, so having the mouse over the search field is easiest.

Safe to add or remove at any time.

Compatibility
If Categorized Bill Dropdown is also used, then the bill menu from that mod is not affected.

It appears that it does not work on MacOS. I do not have a Mac and therefore have no real way to fix that.

Note for mod developers
The menu search field is available for modders through the Float Sub-Menus mod. This mod just adds it to menus that do not already have it.

Source code is on GitHub.[github.com]
44 Comments
Kathanon  [author] Feb 1 @ 6:44am 
As I said, terrible git discipline. Sorry.
llunak Feb 1 @ 6:43am 
@Kathanon: I wanted to add some "do not split into submenus if fewer than X items", because e.g. for the stonecutting table I find the mod makes things worse rather than better. But then I think this mod probably is actually good enough for me, so I probably won't find the motivation again. And I think this is actually the second time this has happened to me with your mods/repos.
Kathanon  [author] Feb 1 @ 6:15am 
Thanks for letting me know. :)

I know, my git discipline is terrible. I'll make sure to get that one pushed.
What change did you want to make? There is a lot of code that is just deactivated currently, since it needs better documentation to be usable.
llunak Feb 1 @ 4:27am 
@Kathanon: The mod appears to work without problems for me on Linux.

Also, your github repos are apparently very out of date. I wanted to do an improvement for Categorized Bill Menus, but the last commit is 3 years old.
Kathanon  [author] Dec 18, 2024 @ 12:41pm 
Yes, it just takes a while to go through and convert all my mods.
PeachySnail183444 Dec 18, 2024 @ 10:01am 
is non hugslib version possible?
HawnHan Nov 13, 2024 @ 5:03pm 
Can you please optimise it for Chinese players? Or maybe for all players who need spelling input. In Chinese, you need to input the sound and rhyme and then select the corresponding text to output, but this mod can't use spelling (when you input the text at the end, it will reset the input, i.e. it will become empty).
Currently, Chinese players can use the method of typing and copying the text they want to search and then pasting it into the search box of this mod, it works!
Above content translated by DeepL
Kathanon  [author] Jun 2, 2024 @ 4:39pm 
Options if you want both categorized menus and search field are:
* Convince the author of "Categorized Bill Dropdown" to switch to using the "Float Sub-Menus" library mod for sub-menus instead of their own variant. (With a dependency, not copying the code.) Then it would just work.
* Use "Categorized Bill Menus" instead - it is already compatible, but does not work quite the same. (Categories are not curated, but better compatibility with other mods.)
* Convince them to implement the same feature in their mod. It would maybe be possible for them to integrate with this mod instead, but easier to just do it separately.

It feels wrong to push my own mods as response to a compatibility issue, but it's just the way it is in this case.
Kathanon  [author] Jun 2, 2024 @ 4:35pm 
The reason it does not work is that they re-implemented the game's menu code. This mod integrates with the built-in version. It would be possible to specifically add compatibility at my end, but it would be messy, a lot of work, and I'd rather not.
Kusko25 Jun 2, 2024 @ 6:48am 
Is there a way to integrate this with "Categorized Bill Dropdown"? At the moment that menu takes precedence