public void clearScannerChecker(int callingScreen) {
        boolean clearScreen = false;

        switch (callingScreen) {
            case TrekHud.SCANNER_HELP:
                if (showStats) {
                    clearScreen = true;
                    showStats = false;
                }

                if (showPlayerPage > 0) {
                    clearScreen = true;
                    showPlayerPage = 0;
                }

                if (showInventory) {
                    clearScreen = true;
                    showInventory = false;
                }

                if (showOdometer) {
                    clearScreen = true;
                    showOdometer = false;
                }

                if (player.ship.scanTarget != null) {
                    player.ship.scanTarget = null;
                    clearScreen = true;
                }

                break;
            case TrekHud.SCANNER_INVENTORY:
                if (showPlayerPage > 0) {
                    showPlayerPage = 0;
                    clearScreen = true;
                }

                if (showOdometer) {
                    clearScreen = true;
                    showOdometer = false;
                }

                if (showStats) {
                    clearScreen = true;
                    showStats = false;
                }

                if (showingHelpScreen) {
                    showHelpScreen = false;
                    showingHelpScreen = false;
                    helpScreenLetter = "";
                    clearScreen = true;
                }

                if (player.ship.scanTarget != null) {
                    player.ship.scanTarget = null;
                    clearScreen = true;
                }

                break;
            case TrekHud.SCANNER_ODOMETER:
                if (showStats) {
                    clearScreen = true;
                    showStats = false;
                }

                if (showPlayerPage > 0) {
                    clearScreen = true;
                    showPlayerPage = 0;
                }

                if (showInventory) {
                    clearScreen = true;
                    showInventory = false;
                }

                if (showingHelpScreen) {
                    showHelpScreen = false;
                    showingHelpScreen = false;
                    helpScreenLetter = "";
                    clearScreen = true;
                }

                if (player.ship.scanTarget != null) {
                    player.ship.scanTarget = null;
                    clearScreen = true;
                }

                break;
            case TrekHud.SCANNER_ROSTER:
                if (showStats) {
                    clearScreen = true;
                    showStats = false;
                }

                if (showOdometer) {
                    clearScreen = true;
                    showOdometer = false;
                }

                if (showInventory) {
                    clearScreen = true;
                    showInventory = false;
                }

                if (showingHelpScreen) {
                    showHelpScreen = false;
                    showingHelpScreen = false;
                    helpScreenLetter = "";
                    clearScreen = true;
                }

                if (player.ship.scanTarget != null) {
                    player.ship.scanTarget = null;
                    clearScreen = true;
                }

                break;
            case TrekHud.SCANNER_STATS:

                if (showPlayerPage > 0) {
                    showPlayerPage = 0;
                    clearScreen = true;
                }

                if (showOdometer) {
                    clearScreen = true;
                    showOdometer = false;
                }

                if (showingHelpScreen) {
                    showHelpScreen = false;
                    showingHelpScreen = false;
                    helpScreenLetter = "";
                    clearScreen = true;
                }

                if (showInventory) {
                    clearScreen = true;
                    showInventory = false;
                }

                if (player.ship.scanTarget != null) {
                    player.ship.scanTarget = null;
                    clearScreen = true;
                }

                break;
            default:
        }

        if (clearScreen) clearScanner();
    }