Exemple #1
0
        public void MenuMouseUpAsButton(WSMenuOption option)
        {
            if (!inputEnabled)
            {
                return;
            }

            option.FaintBackground();

            wsController.MenuOptionClicked(option.optionType, option.unit, option.weapon);
        }
Exemple #2
0
        public void MenuMouseDown(WSMenuOption option)
        {
            if (!inputEnabled)
            {
                return;
            }

            clickedOnThisMenuOption = option;

            option.FullBackground();
        }
Exemple #3
0
        public void MenuMouseEnter(WSMenuOption option)
        {
            if (!inputEnabled)
            {
                return;
            }

            option.FaintBackground();

            wsController.MenuOptionHover(option.optionType, option.unit, option.weapon);
        }
Exemple #4
0
        public void MenuMouseExit(WSMenuOption option)
        {
            option.FullBackground();

            wsController.MenuOptionEndHover();

            if (!inputEnabled)
            {
                return;
            }

            if (Input.GetMouseButton(0) && option == clickedOnThisMenuOption)
            {
                //if (GameObject.Find("WSOptionGhost(Clone)") == null) { // If there are currently no other optionghosts
                option.CreateOptionGhost();
                //}
            }
            clickedOnThisMenuOption = null;
        }