Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!
Quick Reply
Search this Thread
Inventor
Original Poster
#1 Old 18th Dec 2014 at 11:18 AM Last edited by Arsil : 23rd Dec 2014 at 8:21 AM. Reason: added "solved" to title
Default [SOLVED] Assigning an icon to an interaction
Hello,
I'm working on a TerrainInteraction. Since you click on the ground to activate it
(and not on a sim or on a object) it doesn't have an icon (in the interaction queue
at the top of the screen). I added a IMAG resource and tried to override some
method in the interaction definition to use it but so far with no success.

Any suggestions?
Advertisement
Field Researcher
#2 Old 18th Dec 2014 at 1:41 PM
You need to implement both IOverridesVisualType and IHasCustomThumbnailIcon interfaces in the InteractionDefinition class, then return VisualTypes.CustomThumbnail for the first implementation and the code to retrieve the thumbnail for the latter

P.S. The Sim parameter used in GetCustomThumbnailIcon is the ActiveActor (i.e. the Sim you currently have selected while playing), not the one from the InteractionDefinition (if you're using one).

EDIT : I forgot to mention, the above is for the Pie Menu, for the InteractionQueue you need to override the GetIconKey method in the InteractionInstance class. As it is it retrieves the icon from Target, but you can change it to anything you like.

Nothing's real. Nothing's unreal either.
The frontier between true and untrue is a shady fuzzy line.
Destiny, or maybe the long flight's time-span, shall decide the issue.
Inventor
Original Poster
#3 Old 18th Dec 2014 at 3:06 PM
Thanks! You missed my relentless questions, didn't you? ^^

The system you suggested allows to change the little icon on the pie menu, I love
that and I'll use that, but I meant the icon in the queue at the top of the screen ^^
Screenshots
Field Researcher
#4 Old 18th Dec 2014 at 3:48 PM
Quote: Originally posted by Arsil
Thanks! You missed my relentless questions, didn't you? ^^

The system you suggested allows to change the little icon on the pie menu, I love
that and I'll use that, but I meant the icon in the queue at the top of the screen ^^


You missed the part where I tell you how to change that one :p

Nothing's real. Nothing's unreal either.
The frontier between true and untrue is a shady fuzzy line.
Destiny, or maybe the long flight's time-span, shall decide the issue.
Inventor
Original Poster
#5 Old 18th Dec 2014 at 5:14 PM
Yep, totally missed the edited part. It worked, thanks again.
Field Researcher
#6 Old 18th Dec 2014 at 5:21 PM
Quote: Originally posted by Arsil
Yep, totally missed the edited part. It worked, thanks again.


You're welcome

Nothing's real. Nothing's unreal either.
The frontier between true and untrue is a shady fuzzy line.
Destiny, or maybe the long flight's time-span, shall decide the issue.
Back to top