void MouseZoneHint::ExitZoneHint(Waypoint* waypoint)
{
  MouseCursor* cursor = MouseCursor::Get();

  if (zone_manager.IsInsideExitZone(waypoint))
    cursor->SetHint("exit");
  else
    cursor->SetHint("");
}
void MouseZoneHint::SetHoveredWaypoint(Waypoint* waypoint)
{
  MouseCursor* cursor = MouseCursor::Get();

  if (waypoint)
    ExitZoneHint(waypoint);
  else
    cursor->SetHint("nowhere");
  MouseWaypointHint::SetHoveredWaypoint(waypoint);
}
    //==============================================================================
    void showMouseCursor (MouseCursor cursor, bool forcedUpdate)
    {
        if (isUnboundedMouseModeOn && ((! unboundedMouseOffset.isOrigin()) || ! isCursorVisibleUntilOffscreen))
        {
            cursor = MouseCursor::NoCursor;
            forcedUpdate = true;
        }

        if (forcedUpdate || cursor.getHandle() != currentCursorHandle)
        {
            currentCursorHandle = cursor.getHandle();
            cursor.showInWindow (getPeer());
        }
    }
Exemple #4
0
int PASCAL WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
						  LPSTR lpCmdLine, int nCmdShow)
#endif
{
	sys.set_config_dir();

	//try to read from CONFIG.DAT, moved to AM.CPP

	if( !config.load("CONFIG.DAT") )
	{
		new_config_dat_flag = 1;
		config.init();
   }

   if( !sys.init() )
      return FALSE;

   err.set_extra_handler( extra_error_handler );   // set extra error handler, save the game when a error happens

   // set mouse cursor now to prevent bugginess later
   mouse_cursor.set_icon(CURSOR_NORMAL);

   // launch game directly
   game.init();
   battle.run(0);
   game.deinit();

   sys.deinit();

   return 1;
}
bool MouseCursor::operator!= (const MouseCursor& other) const noexcept
{
    return getHandle() != other.getHandle();
}