Advertisement
Guest User

Untitled

a guest
Apr 4th, 2024
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 12.65 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Patch>
  3.   <!-- Erin's Decorations -->
  4.   <Operation Class="PatchOperationSequence">
  5.     <operations>
  6.       <li Class="PatchOperationConditional">
  7.         <!-- Add uiIconOffset to all the decorations if it does not exist. -->
  8.         <xpath>/Defs/ThingDef[defName="ED_Doormat" or defName="ED_Bin" or defName="ED_SmallPhotos" or defName="ED_Candles" or defName="ED_PetBowl" or defName="ED_Plushie" or defName="ED_Vase" or defName="ED_Laptop" or defName="ED_SmallPlant" or defName="ED_Paper" or defName="ED_Papers" or defName="ED_Book" or defName="ED_PileofBooks" or defName="ED_CatTower" or defName="ED_DogHouse" or defName="ED_Pillow" or defName="ED_Trophy" or defName="ED_Clock"]/uiIconOffset</xpath>
  9.         <nomatch Class="PatchOperationAdd">
  10.           <xpath>/Defs/ThingDef[defName="ED_Doormat" or defName="ED_Bin" or defName="ED_SmallPhotos" or defName="ED_Candles" or defName="ED_PetBowl" or defName="ED_Plushie" or defName="ED_Vase" or defName="ED_Laptop" or defName="ED_SmallPlant" or defName="ED_Paper" or defName="ED_Papers" or defName="ED_Book" or defName="ED_PileofBooks" or defName="ED_CatTower" or defName="ED_DogHouse" or defName="ED_Pillow" or defName="ED_Trophy" or defName="ED_Clock"]</xpath>
  11.           <value>
  12.             <uiIconOffset />
  13.           </value>
  14.         </nomatch>
  15.       </li>
  16.       <li Class="PatchOperationConditional">
  17.         <!-- Add uiIconScale to all the decorations if it does not exist. -->
  18.         <xpath>/Defs/ThingDef[defName="ED_Doormat" or defName="ED_Bin" or defName="ED_SmallPhotos" or defName="ED_Candles" or defName="ED_PetBowl" or defName="ED_Plushie" or defName="ED_Vase" or defName="ED_Laptop" or defName="ED_SmallPlant" or defName="ED_Paper" or defName="ED_Papers" or defName="ED_Book" or defName="ED_PileofBooks" or defName="ED_CatTower" or defName="ED_DogHouse" or defName="ED_Pillow" or defName="ED_Trophy" or defName="ED_Clock"]/uiIconScale</xpath>
  19.         <nomatch Class="PatchOperationAdd">
  20.           <xpath>/Defs/ThingDef[defName="ED_Doormat" or defName="ED_Bin" or defName="ED_SmallPhotos" or defName="ED_Candles" or defName="ED_PetBowl" or defName="ED_Plushie" or defName="ED_Vase" or defName="ED_Laptop" or defName="ED_SmallPlant" or defName="ED_Paper" or defName="ED_Papers" or defName="ED_Book" or defName="ED_PileofBooks" or defName="ED_CatTower" or defName="ED_DogHouse" or defName="ED_Pillow" or defName="ED_Trophy" or defName="ED_Clock"]</xpath>
  21.           <value>
  22.             <uiIconScale />
  23.           </value>
  24.         </nomatch>
  25.       </li>
  26.       <!-- Doormat -->
  27.       <li Class="PatchOperationReplace">
  28.         <!-- Adjust the UI offset so it is centred. -->
  29.         <xpath>/Defs/ThingDef[defName="ED_Doormat"]/uiIconOffset</xpath>
  30.         <value>
  31.           <uiIconOffset>0.20, 0.00</uiIconOffset>
  32.         </value>
  33.       </li>
  34.       <li Class="PatchOperationReplace">
  35.         <!-- Adjust the UI scale so it is larger and more visible. -->
  36.         <xpath>/Defs/ThingDef[defName="ED_Doormat"]/uiIconScale</xpath>
  37.         <value>
  38.           <uiIconScale>1.00</uiIconScale>
  39.         </value>
  40.       </li>
  41.       <!-- Small plant pot -->
  42.       <li Class="PatchOperationReplace">
  43.         <!-- Adjust the UI offset so it is centred. -->
  44.         <xpath>/Defs/ThingDef[defName="ED_SmallPlant"]/uiIconOffset</xpath>
  45.         <value>
  46.           <uiIconOffset>-0.02, 0.10</uiIconOffset>
  47.         </value>
  48.       </li>
  49.       <li Class="PatchOperationReplace">
  50.         <!-- Adjust the UI scale so it is larger and more visible. -->
  51.         <xpath>/Defs/ThingDef[defName="ED_SmallPlant"]/uiIconScale</xpath>
  52.         <value>
  53.           <uiIconScale>2.10</uiIconScale>
  54.         </value>
  55.       </li>
  56.       <!-- Pillow -->
  57.       <li Class="PatchOperationReplace">
  58.         <!-- Adjust the UI offset so it is centred. -->
  59.         <xpath>/Defs/ThingDef[defName="ED_Pillow"]/uiIconOffset</xpath>
  60.         <value>
  61.           <uiIconOffset>0, 0.25</uiIconOffset>
  62.         </value>
  63.       </li>
  64.       <li Class="PatchOperationReplace">
  65.         <!-- Adjust the UI scale so it is larger and more visible. -->
  66.         <xpath>/Defs/ThingDef[defName="ED_Pillow"]/uiIconScale</xpath>
  67.         <value>
  68.           <uiIconScale>1.50</uiIconScale>
  69.         </value>
  70.       </li>
  71.       <!-- Bedside clock -->
  72.       <li Class="PatchOperationReplace">
  73.         <!-- Adjust the UI offset so it is centred. -->
  74.         <xpath>/Defs/ThingDef[defName="ED_Clock"]/uiIconOffset</xpath>
  75.         <value>
  76.           <uiIconOffset>-0.02, 0.08</uiIconOffset>
  77.         </value>
  78.       </li>
  79.       <li Class="PatchOperationReplace">
  80.         <!-- Adjust the UI scale so it is larger and more visible. -->
  81.         <xpath>/Defs/ThingDef[defName="ED_Clock"]/uiIconScale</xpath>
  82.         <value>
  83.           <uiIconScale>2.70</uiIconScale>
  84.         </value>
  85.       </li>
  86.       <!-- Small photos -->
  87.       <li Class="PatchOperationReplace">
  88.         <!-- Adjust the UI offset so it is centred. -->
  89.         <xpath>/Defs/ThingDef[defName="ED_SmallPhotos"]/uiIconOffset</xpath>
  90.         <value>
  91.           <uiIconOffset>0, 0.00</uiIconOffset>
  92.         </value>
  93.       </li>
  94.       <li Class="PatchOperationReplace">
  95.         <!-- Adjust the UI scale so it is larger and more visible. -->
  96.         <xpath>/Defs/ThingDef[defName="ED_SmallPhotos"]/uiIconScale</xpath>
  97.         <value>
  98.           <uiIconScale>1.90</uiIconScale>
  99.         </value>
  100.       </li>
  101.       <!-- Candles -->
  102.       <li Class="PatchOperationReplace">
  103.         <!-- Adjust the UI offset so it is centred. -->
  104.         <xpath>/Defs/ThingDef[defName="ED_Candles"]/uiIconOffset</xpath>
  105.         <value>
  106.           <uiIconOffset>0, 0.10</uiIconOffset>
  107.         </value>
  108.       </li>
  109.       <li Class="PatchOperationReplace">
  110.         <!-- Adjust the UI scale so it is larger and more visible. -->
  111.         <xpath>/Defs/ThingDef[defName="ED_Candles"]/uiIconScale</xpath>
  112.         <value>
  113.           <uiIconScale>2.00</uiIconScale>
  114.         </value>
  115.       </li>
  116.       <!-- Pet bowl -->
  117.       <li Class="PatchOperationReplace">
  118.         <!-- Adjust the UI offset so it is centred. -->
  119.         <xpath>/Defs/ThingDef[defName="ED_PetBowl"]/uiIconOffset</xpath>
  120.         <value>
  121.           <uiIconOffset>-0.02, -0.05</uiIconOffset>
  122.         </value>
  123.       </li>
  124.       <li Class="PatchOperationReplace">
  125.         <!-- Adjust the UI scale so it is larger and more visible. -->
  126.         <xpath>/Defs/ThingDef[defName="ED_PetBowl"]/uiIconScale</xpath>
  127.         <value>
  128.           <uiIconScale>1.20</uiIconScale>
  129.         </value>
  130.       </li>
  131.       <!-- Vase -->
  132.       <li Class="PatchOperationReplace">
  133.         <!-- Adjust the UI offset so it is centred. -->
  134.         <xpath>/Defs/ThingDef[defName="ED_Vase"]/uiIconOffset</xpath>
  135.         <value>
  136.           <uiIconOffset>0, 0.05</uiIconOffset>
  137.         </value>
  138.       </li>
  139.       <li Class="PatchOperationReplace">
  140.         <!-- Adjust the UI scale so it is larger and more visible. -->
  141.         <xpath>/Defs/ThingDef[defName="ED_Vase"]/uiIconScale</xpath>
  142.         <value>
  143.           <uiIconScale>2.10</uiIconScale>
  144.         </value>
  145.       </li>
  146.       <!-- Trophy -->
  147.       <li Class="PatchOperationReplace">
  148.         <!-- Adjust the UI offset so it is centred. -->
  149.         <xpath>/Defs/ThingDef[defName="ED_Trophy"]/uiIconOffset</xpath>
  150.         <value>
  151.           <uiIconOffset>0.05, 0.10</uiIconOffset>
  152.         </value>
  153.       </li>
  154.       <li Class="PatchOperationReplace">
  155.         <!-- Adjust the UI scale so it is larger and more visible. -->
  156.         <xpath>/Defs/ThingDef[defName="ED_Trophy"]/uiIconScale</xpath>
  157.         <value>
  158.           <uiIconScale>2.10</uiIconScale>
  159.         </value>
  160.       </li>
  161.       <!-- Plushie -->
  162.       <li Class="PatchOperationReplace">
  163.         <!-- Adjust the UI offset so it is centred. -->
  164.         <xpath>/Defs/ThingDef[defName="ED_Plushie"]/uiIconOffset</xpath>
  165.         <value>
  166.           <uiIconOffset>0.03, 0.05</uiIconOffset>
  167.         </value>
  168.       </li>
  169.       <li Class="PatchOperationReplace">
  170.         <!-- Adjust the UI scale so it is larger and more visible. -->
  171.         <xpath>/Defs/ThingDef[defName="ED_Plushie"]/uiIconScale</xpath>
  172.         <value>
  173.           <uiIconScale>2.10</uiIconScale>
  174.         </value>
  175.       </li>
  176.       <!-- Laptop -->
  177.       <li Class="PatchOperationReplace">
  178.         <!-- Adjust the UI offset so it is centred. -->
  179.         <xpath>/Defs/ThingDef[defName="ED_Laptop"]/uiIconOffset</xpath>
  180.         <value>
  181.           <uiIconOffset>-0.03, 0.10</uiIconOffset>
  182.         </value>
  183.       </li>
  184.       <li Class="PatchOperationReplace">
  185.         <!-- Adjust the UI scale so it is larger and more visible. -->
  186.         <xpath>/Defs/ThingDef[defName="ED_Laptop"]/uiIconScale</xpath>
  187.         <value>
  188.           <uiIconScale>1.85</uiIconScale>
  189.         </value>
  190.       </li>
  191.       <!-- Paper -->
  192.       <li Class="PatchOperationReplace">
  193.         <!-- Adjust the UI offset so it is centred. -->
  194.         <xpath>/Defs/ThingDef[defName="ED_Paper"]/uiIconOffset</xpath>
  195.         <value>
  196.           <uiIconOffset>-0.02, 0.07</uiIconOffset>
  197.         </value>
  198.       </li>
  199.       <li Class="PatchOperationReplace">
  200.         <!-- Adjust the UI scale so it is larger and more visible. -->
  201.         <xpath>/Defs/ThingDef[defName="ED_Paper"]/uiIconScale</xpath>
  202.         <value>
  203.           <uiIconScale>1.60</uiIconScale>
  204.         </value>
  205.       </li>
  206.       <!-- Papers -->
  207.       <li Class="PatchOperationReplace">
  208.         <!-- Adjust the UI offset so it is centred. -->
  209.         <xpath>/Defs/ThingDef[defName="ED_Papers"]/uiIconOffset</xpath>
  210.         <value>
  211.           <uiIconOffset>-0.05, 0.10</uiIconOffset>
  212.         </value>
  213.       </li>
  214.       <li Class="PatchOperationReplace">
  215.         <!-- Adjust the UI scale so it is larger and more visible. -->
  216.         <xpath>/Defs/ThingDef[defName="ED_Papers"]/uiIconScale</xpath>
  217.         <value>
  218.           <uiIconScale>1.60</uiIconScale>
  219.         </value>
  220.       </li>
  221.       <!-- Book -->
  222.       <li Class="PatchOperationReplace">
  223.         <!-- Adjust the UI offset so it is centred. -->
  224.         <xpath>/Defs/ThingDef[defName="ED_Book"]/uiIconOffset</xpath>
  225.         <value>
  226.           <uiIconOffset>0, 0.10</uiIconOffset>
  227.         </value>
  228.       </li>
  229.       <li Class="PatchOperationReplace">
  230.         <!-- Adjust the UI scale so it is larger and more visible. -->
  231.         <xpath>/Defs/ThingDef[defName="ED_Book"]/uiIconScale</xpath>
  232.         <value>
  233.           <uiIconScale>2.10</uiIconScale>
  234.         </value>
  235.       </li>
  236.       <!-- Pile of books -->
  237.       <li Class="PatchOperationReplace">
  238.         <!-- Adjust the UI offset so it is centred. -->
  239.         <xpath>/Defs/ThingDef[defName="ED_PileofBooks"]/uiIconOffset</xpath>
  240.         <value>
  241.           <uiIconOffset>-0.02, 0.10</uiIconOffset>
  242.         </value>
  243.       </li>
  244.       <li Class="PatchOperationReplace">
  245.         <!-- Adjust the UI scale so it is larger and more visible. -->
  246.         <xpath>/Defs/ThingDef[defName="ED_PileofBooks"]/uiIconScale</xpath>
  247.         <value>
  248.           <uiIconScale>2.00</uiIconScale>
  249.         </value>
  250.       </li>
  251.       <!-- Cat tower -->
  252.       <li Class="PatchOperationReplace">
  253.         <!-- Adjust the UI offset so it is centred. -->
  254.         <xpath>/Defs/ThingDef[defName="ED_CatTower"]/uiIconOffset</xpath>
  255.         <value>
  256.           <uiIconOffset>-0.03, -0.10</uiIconOffset>
  257.         </value>
  258.       </li>
  259.       <li Class="PatchOperationReplace">
  260.         <!-- Adjust the UI scale so it is larger and more visible. -->
  261.         <xpath>/Defs/ThingDef[defName="ED_CatTower"]/uiIconScale</xpath>
  262.         <value>
  263.           <uiIconScale>1.15</uiIconScale>
  264.         </value>
  265.       </li>
  266.       <!-- Dog house -->
  267.       <li Class="PatchOperationReplace">
  268.         <!-- Adjust the UI offset so it is centred. -->
  269.         <xpath>/Defs/ThingDef[defName="ED_DogHouse"]/uiIconOffset</xpath>
  270.         <value>
  271.           <uiIconOffset>0.00, 0.00</uiIconOffset>
  272.         </value>
  273.       </li>
  274.       <li Class="PatchOperationReplace">
  275.         <!-- Adjust the UI scale so it is larger and more visible. -->
  276.         <xpath>/Defs/ThingDef[defName="ED_DogHouse"]/uiIconScale</xpath>
  277.         <value>
  278.           <uiIconScale>1.00</uiIconScale>
  279.         </value>
  280.       </li>
  281.       <!-- Bin -->
  282.       <li Class="PatchOperationReplace">
  283.         <!-- Adjust the UI offset so it is centred. -->
  284.         <xpath>/Defs/ThingDef[defName="ED_Bin"]/uiIconOffset</xpath>
  285.         <value>
  286.           <uiIconOffset>-0.05, -0.17</uiIconOffset>
  287.         </value>
  288.       </li>
  289.       <li Class="PatchOperationReplace">
  290.         <!-- Adjust the UI scale so it is larger and more visible. -->
  291.         <xpath>/Defs/ThingDef[defName="ED_Bin"]/uiIconScale</xpath>
  292.         <value>
  293.           <uiIconScale>1.50</uiIconScale>
  294.         </value>
  295.       </li>
  296.     </operations>
  297.   </Operation>
  298. </Patch>
  299.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement