コード例 #1
0
 void changeReformValue()
 {
     if (selectedReform != null && selectedReformValue != null && selectedReformValue != selectedReform.getValue())
     {
         selectedReform.setValue(selectedReformValue);
         MainCamera.refreshAllActive();
     }
 }
コード例 #2
0
 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();
         }
     }
 }