That sounds several times better and though its a much more complex solution its still simple logic-wise. It would be nice if you could add a in-game settings page. Though Im not sure such a feature would work without the need to restart the game.
Viewing post in Improved Random Portraits v1.0
Implemented in 0.10, wasn't that complex of logic. Reworked the mod too so from now on, don't need to re-apply for most updates.
I'd like to add settings UI, was thinking in the game's own options menu, add a tab. Wouldn't require a restart of the game, but would be a bit painful to implement. my godot knowledge isn't the best. I kinda hope I can copy chunks of options.tscn, make up my own options panel, load that, then add it as a child of the existing options panel and have it work.
Thank you for adding this. I just tested by messing around with the minMatch variable and its working flawlessly. Though I think the random portrait button should ignore minMatch. Right now I only have 1 female HalfkinTanuki image and though I dont want every female HalfkinTanuki slave to show up with that image I still want the random portrait button to assign it in case I intend to keep the slave. I cant see any drawback on this.
I had hoped to use another tscn file to define the tab, and then just insert it in and wire it up, but Couldn't get that working, loaded fine, but instancing it spit out:
At: scene/resources/packed_scene.cpp:98
WARNING: instance: Parent path './RandomPortrait' for node 'minmatch' has vanished when instancing: 'user://mods/randomportraits/options.tscn'.
Worked fine to create a tab in code, add the texture (duplicate dit from one of the other tabs), and then start adding my own checkbox's and labels. It's just tedious laying things out.