Question for AutoEquip: Locate the apparel

Started by soulkata, September 19, 2015, 09:02:08 AM

Previous topic - Next topic

soulkata

Hi folks!

Another question for AutoEquip! I am writing some GUI for the mod, clarify the apparel changes... It will show in a list, similar to the "Gear" tab, the desired apparel... in this list, i want to make a context menu "Locate", when the user click on it, it automatically select the item, and move the map to centralize it... You guys allready do that?

Fluffy (l2032)

Can't look for you now, but have you looked at the PreDrawPawnRow method in the core MainTabWindow_Pawnlist class? There's core functionality there to jump to a pawn, not sure if it works on pawns or things, but it should give you enough to work with either way.

(if it's not there, look in the MainTabWindow_Animals or MainTabWindow_Work classes, method name might be slightly different but should be findable)