void changeReformValue() { if (selectedReform != null && selectedReformValue != null && selectedReformValue != selectedReform.getValue()) { selectedReform.setValue(selectedReformValue); MainCamera.refreshAllActive(); } }
void setNewReform() { if (selectedReform != null && selectedReformValue != null && selectedReformValue != selectedReform.getValue()) { selectedReform.setValue(selectedReformValue); refresh(true); if (MainCamera.buildPanel.isActiveAndEnabled) { MainCamera.buildPanel.refresh(); } if (MainCamera.populationPanel.isActiveAndEnabled) { MainCamera.populationPanel.refresh(); } if (MainCamera.factoryPanel.isActiveAndEnabled) { MainCamera.factoryPanel.refresh(); } } }