Exemplo n.º 1
0
 public bool ToolTipCheck(Vector2 point)
 {
     if (baseRect.Contains(point))
     {
         if (GameManager.instance.GetGameSpeed() == 1f)
         {
             ToolTip.SetText("normalSpeed", "normalSpeedDesc");
         }
         else if (GameManager.instance.GetGameSpeed() == 2f)
         {
             ToolTip.SetText("doubleSpeed", "doubleSpeedDesc");
         }
         else if (GameManager.instance.GetGameSpeed() == 4f)
         {
             ToolTip.SetText("quadrupleSpeed", "quadrupleSpeedDesc");
         }
         else if (GameManager.instance.GetGameSpeed() == 0f)
         {
             ToolTip.SetText("paused", "pausedDesc");
         }
         else
         {
             ToolTip.SetText("halfSpeed", "halfSpeedDesc");
         }
         return(true);
     }
     return(false);
 }
Exemplo n.º 2
0
 void DrawToolTip(Vector2 mouse)
 {
     if (RectShipyardButton.Contains(mouse))
     {
         toolTip.SetText("screenShipyard", "screenShipyardDesc");
     }
     else if (RectCustomBattleButton.Contains(mouse))
     {
         toolTip.SetText("screenBattleSim", "screenBattleSimDesc");
     }
 }
Exemplo n.º 3
0
 public bool CheckToolTip(Vector2 point)
 {
     if (mainRect.Contains(point))
     {
         ToolTip.SetText("miniMap", "miniMapDesc");
         return(true);
     }
     return(false);
 }
Exemplo n.º 4
0
 public bool CheckToolTip(Vector2 point)
 {
     if (baseRect.Contains(point))
     {
         ToolTip.SetText("combatTimer", "combatTimerDesc");
         return(true);
     }
     return(false);
 }
Exemplo n.º 5
0
 public bool CheckForToolTip(Vector2 mousePosition)
 {
     if (baseRect.Contains(mousePosition))
     {
         ToolTip.SetText(ToolTipTitle, ToolTipBody);
         return(true);
     }
     return(false);
 }