SS3D icon indicating copy to clipboard operation
SS3D copied to clipboard

Radial menu passes incorrect interaction event

Open Alainx277 opened this issue 5 years ago • 0 comments

Summary

The radial menu is responsible for presenting interactions to the player. In this process it calls methods that require an interaction event. The interaction event contains the target of the interaction.

Current Behavior

The InteractionHandler passes an event to the ui. This event is then reused for all interactions, even if they were generated by a different target. This can lead to a mismatch in the GetName function, causing it to error out or display an incorrect value.

Expected Behavior

Each interaction should be passed an event with the target value properly set.

Possible Solution

Pass an array of InteractionEntry to the ui and use them to construct a proper event.

Alainx277 avatar Jun 11 '20 23:06 Alainx277