// Path: src/VASL/environment/DustLevel.java
// public enum DustLevel {
//     NONE ("No Dust"),
//     LIGHT ("Light Dust (F11.71)"),
//     MODERATE("Moderate Dust (F11.72)"),
//     HEAVY("Heavy Dust (F11.73)"),
//     VERY_HEAVY("Very Heavy Dust (F11.731)"),
//     EXTREMELY_HEAVY("Extremely Heavy Dust (F11.732)"),
//     SPECIAL("Special Dust (Preferences->Environment)")
//     {
//         @Override
//         public DustLevel next() {
//             return NONE;
//         };
//     };
// 
//     private String dustLevelDescription;
// 
//     DustLevel(String s) {
//         dustLevelDescription = s;
//     }
// 
//     public String toString() {
//         if(values()[ordinal()] == SPECIAL){
//             return (String) GameModule.getGameModule().getPrefs().getValue(ASLDTODustMapShader.SPECIAL_DUST_NAME);
//         }
//         return this.dustLevelDescription;
//     }
// 
//     public DustLevel next() {
//         return values()[ordinal() + 1];
//     }
// }
// 
// Path: src/VASL/environment/DustLevel.java
// public enum DustLevel {
//     NONE ("No Dust"),
//     LIGHT ("Light Dust (F11.71)"),
//     MODERATE("Moderate Dust (F11.72)"),
//     HEAVY("Heavy Dust (F11.73)"),
//     VERY_HEAVY("Very Heavy Dust (F11.731)"),
//     EXTREMELY_HEAVY("Extremely Heavy Dust (F11.732)"),
//     SPECIAL("Special Dust (Preferences->Environment)")
//     {
//         @Override
//         public DustLevel next() {
//             return NONE;
//         };
//     };
// 
//     private String dustLevelDescription;
// 
//     DustLevel(String s) {
//         dustLevelDescription = s;
//     }
// 
//     public String toString() {
//         if(values()[ordinal()] == SPECIAL){
//             return (String) GameModule.getGameModule().getPrefs().getValue(ASLDTODustMapShader.SPECIAL_DUST_NAME);
//         }
//         return this.dustLevelDescription;
//     }
// 
//     public DustLevel next() {
//         return values()[ordinal() + 1];
//     }
// }


import VASL.environment.DustLevel;
import VASSAL.build.Buildable;
import VASSAL.build.GameModule;
import VASSAL.build.module.map.MapShader;
import VASSAL.build.module.properties.GlobalProperty;
import VASSAL.configure.BooleanConfigurer;
import VASSAL.configure.StringConfigurer;
import VASSAL.configure.StringEnumConfigurer;
import VASSAL.preferences.Prefs;
import javax.swing.*;
import static VASL.environment.DustLevel.*;
package VASL.build.module;




public class ASLDTODustMapShader extends MapShader {
    public final static String ENVIRONMENT = "Environment";
    public final static String SPECIAL_DUST_SETTING = "UseSpecialDustSetting";
    public final static String SPECIAL_DUST_NAME = "SpecialDustName";
    public final static String SPECIAL_DUST_DIVIDE_BY = "SpecialDustDivideBy";
    public final static String SPECIAL_DUST_ROUNDING = "SpecialDustRounding";

// Path: src/VASL/environment/DustLevel.java
// public enum DustLevel {
//     NONE ("No Dust"),
//     LIGHT ("Light Dust (F11.71)"),
//     MODERATE("Moderate Dust (F11.72)"),
//     HEAVY("Heavy Dust (F11.73)"),
//     VERY_HEAVY("Very Heavy Dust (F11.731)"),
//     EXTREMELY_HEAVY("Extremely Heavy Dust (F11.732)"),
//     SPECIAL("Special Dust (Preferences->Environment)")
//     {
//         @Override
//         public DustLevel next() {
//             return NONE;
//         };
//     };
// 
//     private String dustLevelDescription;
// 
//     DustLevel(String s) {
//         dustLevelDescription = s;
//     }
// 
//     public String toString() {
//         if(values()[ordinal()] == SPECIAL){
//             return (String) GameModule.getGameModule().getPrefs().getValue(ASLDTODustMapShader.SPECIAL_DUST_NAME);
//         }
//         return this.dustLevelDescription;
//     }
// 
//     public DustLevel next() {
//         return values()[ordinal() + 1];
//     }
// }
// 
// Path: src/VASL/environment/DustLevel.java
// public enum DustLevel {
//     NONE ("No Dust"),
//     LIGHT ("Light Dust (F11.71)"),
//     MODERATE("Moderate Dust (F11.72)"),
//     HEAVY("Heavy Dust (F11.73)"),
//     VERY_HEAVY("Very Heavy Dust (F11.731)"),
//     EXTREMELY_HEAVY("Extremely Heavy Dust (F11.732)"),
//     SPECIAL("Special Dust (Preferences->Environment)")
//     {
//         @Override
//         public DustLevel next() {
//             return NONE;
//         };
//     };
// 
//     private String dustLevelDescription;
// 
//     DustLevel(String s) {
//         dustLevelDescription = s;
//     }
// 
//     public String toString() {
//         if(values()[ordinal()] == SPECIAL){
//             return (String) GameModule.getGameModule().getPrefs().getValue(ASLDTODustMapShader.SPECIAL_DUST_NAME);
//         }
//         return this.dustLevelDescription;
//     }
// 
//     public DustLevel next() {
//         return values()[ordinal() + 1];
//     }
// }


// Path: src/VASL/build/module/ASLDTODustMapShader.java
import VASL.environment.DustLevel;
import VASSAL.build.Buildable;
import VASSAL.build.GameModule;
import VASSAL.build.module.map.MapShader;
import VASSAL.build.module.properties.GlobalProperty;
import VASSAL.configure.BooleanConfigurer;
import VASSAL.configure.StringConfigurer;
import VASSAL.configure.StringEnumConfigurer;
import VASSAL.preferences.Prefs;
import javax.swing.*;
import static VASL.environment.DustLevel.*;

package VASL.build.module;




public class ASLDTODustMapShader extends MapShader {
    public final static String ENVIRONMENT = "Environment";
    public final static String SPECIAL_DUST_SETTING = "UseSpecialDustSetting";
    public final static String SPECIAL_DUST_NAME = "SpecialDustName";
    public final static String SPECIAL_DUST_DIVIDE_BY = "SpecialDustDivideBy";
    public final static String SPECIAL_DUST_ROUNDING = "SpecialDustRounding";

    private DustLevel dustLevel = NONE;