use of com.minecolonies.coremod.colony.buildings.moduleviews.PupilBuildingModuleView in project minecolonies by Minecolonies.
the class WindowHireWorker method setupShowEmployed.
/**
* Set up the showEmployed button.
* Disable button if not a "normal" building, like a warehouse or quarry
* Also disable for pupils
*/
private void setupShowEmployed() {
Button button = findPaneOfTypeByID(TOGGLE_SHOW_EMPLOYED, Button.class);
button.setEnabled(selectedModule instanceof WorkerBuildingModuleView && !(selectedModule instanceof PupilBuildingModuleView));
button.setText("N");
showEmployed = false;
}
Aggregations