Ignore:
Timestamp:
2020-08-03T18:47:15+02:00 (4 years ago)
Author:
Klumbumbus
Message:
  • Add irrigation=pivot to farmland preset (usage > 10k) and make crop optional (can change every year)
  • Fix checks with value_on=*
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/resources/data/defaultpresets.xml

    r16803 r16831  
    18251825            <space />
    18261826            <key key="covered" value="arcade" />
    1827             <check key="arcade:left" value_on="open" text="Open on left side" />
    1828             <check key="arcade:right" value_on="open" text="Open on right side" />
     1827            <check key="arcade:left" value_on="open" text="Open on left side" disable_off="true" />
     1828            <check key="arcade:right" value_on="open" text="Open on right side" disable_off="true" />
    18291829            <optional>
    18301830                <reference ref="name_layer" />
     
    18361836            <space />
    18371837            <key key="covered" value="colonnade" />
    1838             <check key="colonnade:left" value_on="open" text="Open on left side" />
    1839             <check key="colonnade:right" value_on="open" text="Open on right side" />
     1838            <check key="colonnade:left" value_on="open" text="Open on left side" disable_off="true" />
     1839            <check key="colonnade:right" value_on="open" text="Open on right side" disable_off="true" />
    18401840            <optional>
    18411841                <reference ref="name_layer" />
     
    18471847            <space />
    18481848            <key key="tunnel" value="avalanche_protector" />
    1849             <check key="avalanche_protector:left" value_on="open" text="Open on left side" />
    1850             <check key="avalanche_protector:right" value_on="open" text="Open on right side" />
     1849            <check key="avalanche_protector:left" value_on="open" text="Open on left side" disable_off="true" />
     1850            <check key="avalanche_protector:right" value_on="open" text="Open on right side" disable_off="true" />
    18511851            <optional>
    18521852                <reference ref="name_layer" />
     
    62136213                <combo key="wires" text="Number of conductors/wires per cable" values="single,double,triple,quad,fivefold,sixfold,eightfold" values_context="power" values_sort="false" />
    62146214                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
    6215                 <check key="communication" text="Used for data communications" value_on="line" value_off="" default="off" />
     6215                <check key="communication" text="Used for data communications" value_on="line" disable_off="true" />
    62166216            </optional>
    62176217        </item> <!-- Power Line -->
     
    62266226                <combo key="location" text="Location" values="underground,underwater,overground" values_context="power cable" />
    62276227                <combo key="layer" text="Layer" values="5,4,3,2,1,0,-1,-2,-3,-4,-5" length="3" />
    6228                 <check key="communication" text="Used for data communications" value_on="line" value_off="" default="off" />
     6228                <check key="communication" text="Used for data communications" value_on="line" disable_off="true" />
    62296229            </optional>
    62306230        </item> <!-- Power Cable -->
     
    80408040            <space />
    80418041            <key key="landuse" value="farmland" />
    8042             <combo key="crop" text="Crop" values="barley,cereal,corn,grass,hop,rape,rice,soy,sugarcane,tea,wheat" values_context="crop" />
    8043             <reference ref="optional_name" />
     8042            <optional>
     8043                <combo key="crop" text="Crop" values="barley,cereal,corn,grass,hop,rape,rice,soy,sugarcane,tea,wheat" values_context="crop" />
     8044                <text key="name" text="Name" />
     8045                <check key="irrigation" text="Center pivot irrigation" value_on="pivot" disable_off="true" />
     8046            </optional>
    80448047        </item> <!-- Farmland -->
    80458048        <item name="Meadow" icon="presets/landuse/meadow.svg" type="closedway,multipolygon" preset_name_label="true">
Note: See TracChangeset for help on using the changeset viewer.