[#modding] @books Suggestion #2 (bit vague, subjective, and also this is coming from a C# n...

Issue #11962 new
Freehold Games Bot Account created an issue

Marked for crossposting by: books

Message (jump):

<Zephyr0> @books Suggestion #2 (bit vague, subjective, and also this is coming from a C# noob for all intensive purposes):

"Filter bars" in the new equipment screen seem quite coupled to the internals of UpdateViewFromData(). If a modder such as myself would want to make a custom filter category for say "Leader's inventory" for Clever Girl (which wouldn't technically be a filter 😛 ) it seemed difficult to implement because I'd have to probably rewrite the method or do some Harmony shenanigans to "get at" the filter bar functionality.

I wanted to ask, (and this is likely where my C# inexperience shines through), could some of these filter bar components could be separated out into smaller functions that modders could more easily hook into? Or maybe even make Filter Bars into more abstract objects that modders could use OOP to override bits and pieces of their functionality? Maybe that'd help support complex functionality like "Click-and-drag equipment to the Leader filter inserts that equipment into Leader's inventory instead of the companions inventory"

Comments (1)

  1. Log in to comment