Creating an NRaas project Interaction refuses to replace

Talk nerdy to us here.
User avatar
JunJayMdM
Reactions:
Posts: 262
Joined: April 2nd, 2012, 6:00 pm

Post by JunJayMdM » January 26th, 2014, 11:29 am

Ah, I found something interesting. The reason ILSpy was reporting it not being used is because that method is none other than an interface implementation and that one IS being indeed used and that's a problem.

Sims3.Gameplay.CAS.MiniSimDescription.OnPickFromPanel(UIMouseEventArgs eventArgs, GameObjectHit gameObjectHit)
Sims3.Gameplay.CAS.SimDescription.OnPickFromPanel(UIMouseEventArgs eventArgs, GameObjectHit gameObjectHit)

The very same 2 methods that RelationshipPanel uses. The problem is of course that, at this point, I would consider adding the interaction to RelationshipPanel and not Woohoer, but anyway you put it, to have that interaction working you will need both mods in, is that practical?

User avatar
Chain_Reaction
Site Admin
Reactions:
Posts: 7596
Joined: December 30th, 2011, 6:00 pm
Answers: 81
Contact:

Post by Chain_Reaction » January 26th, 2014, 11:44 am

It's not ideal considering Twallan minimized that but if that's how I have to go then I will. The core of it should be in Woohooer due to most of the changes being for that mod but I could alter the OnPickFromPanel to pull the new method using Common.MethodStore. Probably the only way to get around it.

User avatar
JunJayMdM
Reactions:
Posts: 262
Joined: April 2nd, 2012, 6:00 pm

Post by JunJayMdM » January 26th, 2014, 11:54 am

Yeah, that would be the only solution, cos I just checked again and making a Singleton won't work, because there needs to always be an IMiniSimDescription passed to the Definition. With MethodStore it'll be easier anyway, cos you can just Invoke and pass it there :)

User avatar
Chain_Reaction
Site Admin
Reactions:
Posts: 7596
Joined: December 30th, 2011, 6:00 pm
Answers: 81
Contact:

Post by Chain_Reaction » January 27th, 2014, 5:30 pm

Woohooty, it worked. Now if I could get them to actually woohoo we'd be in business. I'm pretty sure I know the issue with that so hopefully I have this finished shortly.

User avatar
JunJayMdM
Reactions:
Posts: 262
Joined: April 2nd, 2012, 6:00 pm

Post by JunJayMdM » January 27th, 2014, 5:40 pm

I'm glad that worked, though I'll deny any involvment in this if asked, all huggies shall be directed towards Chain and Chain only

Post Reply