| | 1 | | using DCL.Interface; |
| | 2 | | using DCL.Models; |
| | 3 | |
|
| | 4 | | namespace DCL.Components |
| | 5 | | { |
| | 6 | | public class OnPointerHoverEnter : OnPointerHoverEvent |
| | 7 | | { |
| | 8 | | public const string NAME = "pointerHoverEnter"; |
| | 9 | |
|
| | 10 | | private bool isHovering = false; |
| | 11 | |
|
| | 12 | | public override void SetHoverState(bool hoverState) |
| | 13 | | { |
| 11 | 14 | | if (hoverState && !isHovering) |
| | 15 | | { |
| 4 | 16 | | Model model = this.model as Model; |
| 4 | 17 | | WebInterface.ReportOnPointerHoverEnterEvent(scene.sceneData.id, model.uuid); |
| | 18 | | } |
| 11 | 19 | | isHovering = hoverState; |
| 11 | 20 | | } |
| | 21 | |
|
| | 22 | | public override int GetClassId() |
| | 23 | | { |
| 0 | 24 | | return (int)CLASS_ID_COMPONENT.UUID_ON_HOVER_ENTER; |
| | 25 | | } |
| | 26 | | } |
| | 27 | | } |