displayTooltip() публичный статический Метод

public static displayTooltip ( ) : bool
Результат bool
 public bool askRemoveDevice()
 {
     TooltipManager.displayTooltip();
     return(_devicesDisplayer.askRemoveEquipedDevice(_device));
 }
Пример #2
0
    public void GoToScreen(GameScreen destination)
    {
        Logger.Log("GUITransitioner::GoToScreen(" + destination + ")");
        if (destination == GameScreen.screen1)
        {
            if (_currentScreen == GameScreen.screen2)
            {
                Logger.Log("2->1", Logger.Level.INFO);
                //2 -> 1
                //set zoom1
                //remove inventory device, deviceID
                //add graphs
                //move devices and potions?
            }
            else if (_currentScreen == GameScreen.screen3)
            {
                Logger.Log("3->1");
                //3 -> 1
                //set zoom1
                //remove craft screen
                //add graphs
                //add potions
                //add devices
                //add life/energy
                //add medium info
                SetScreen3(false);
                SetScreen1(true);
            }
            GameStateController.get().tryUnlockPause();
            ZoomOut();
            _currentScreen = GameScreen.screen1;
        }
        else if (destination == GameScreen.screen2)
        {
            if (animator.isPlaying == true)
            {
                animator.reset();
            }
            if (_currentScreen == GameScreen.screen1)
            {
                Logger.Log("GUITransitioner::GoToScreen 1->2", Logger.Level.INFO);
                //1 -> 2
                //set zoom2
                //add inventory device, deviceID
                //remove graphs
                //move devices and potions?
                GameStateController.get().tryLockPause();
            }
            else if (_currentScreen == GameScreen.screen3)
            {
                Logger.Log("GUITransitioner::GoToScreen 3->2", Logger.Level.INFO);
                //3 -> 2
                //set zoom2
                //remove craft screen
                //add inventory device, deviceID
                //add potions
                //add devices
                //add life/energy
                //add medium info
                SetScreen3(false);
                SetScreen2(true);
            }

            ZoomIn();
            _currentScreen = GameScreen.screen2;
        }
        else if (destination == GameScreen.screen3)
        {
            if (_currentScreen == GameScreen.screen1)
            {
                Logger.Log("GUITransitioner::GoToScreen 1->3", Logger.Level.INFO);
                //1 -> 3
                //remove everything
                //add device inventory, parameters
                //remove graphs
                //move devices and potions?
                SetScreen1(false);
                SetScreen3(true);
                GameStateController.get().tryLockPause();
            }
            else if (_currentScreen == GameScreen.screen2)
            {
                Logger.Log("GUITransitioner::GoToScreen 2->3", Logger.Level.INFO);
                //2 -> 3
                //remove everything
                //add craft screen
                SetScreen2(false);
                SetScreen3(true);
            }
            ZoomIn();
            _currentScreen = GameScreen.screen3;
        }
        else
        {
            Logger.Log("GuiTransitioner::GoToScreen(" + destination + "): error: unmanaged destination", Logger.Level.ERROR);
        }

        _devicesDisplayer.UpdateScreen();
        TooltipManager.displayTooltip();
    }
Пример #3
0
 //TODO remove tooltip only if tooltip was about this displayed device
 protected virtual void OnDestroy()
 {
     TooltipManager.displayTooltip();
 }
Пример #4
0
 protected virtual void OnHover(bool isOver)
 {
     Logger.Log("DisplayedDevice::OnHover(" + isOver + ") with _device=" + _device, Logger.Level.INFO);
     TooltipManager.displayTooltip(isOver, _device, transform.position);
 }
 protected override void OnPress(bool isPressed)
 {
     Logger.Log("CraftZoneDisplayedBioBrick::OnPress _id=" + _id + ", isPressed=" + isPressed, Logger.Level.INFO);
     CraftZoneManager.get().removeBioBrick(_biobrick);
     TooltipManager.displayTooltip();
 }
Пример #6
0
 void OnHover(bool isOver)
 {
     Logger.Log("DisplayedDevice::OnHover(" + isOver + ")", Logger.Level.DEBUG);
     TooltipManager.displayTooltip(isOver, _biobrick, transform.position);
 }