Improved Context Menus

Context menus now support dropdown options
Context menus can now be created for UI elements with new dedicated cancellation click catcher
Game manager creates context menus based on the object being clicked, no need for duplicate code in every context that object appears
This commit is contained in:
hyperion51 2020-05-22 00:01:07 +01:00
commit 0ae4a388f5
14 changed files with 1062 additions and 226 deletions

View file

@ -0,0 +1,13 @@
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class ContextMenuOption : MonoBehaviour
{
public TextMeshProUGUI Label;
public Image Arrow;
public Button Button;
public MouseHover Hover;
}