Ulabael

7DTD The Equalizer / Extended inventory fix

Dec 30th, 2025
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 6.70 KB | Gaming | 0 0
  1. In controls.xml (.\TheEqualizer\Config\XUi) add the code below in append section
  2.  
  3. <pzg_backpack_item_stack_50 controller="ItemStack" on_scroll="false" allow_dropping="true" prefix_id="false" show_favorites="false">
  4.             <rect controller="${controller}"
  5.                   width="50" height="50"
  6.                   style="itemStack, hover"
  7.                   collider_scale="1.0"
  8.                   on_scroll="${on_scroll}"
  9.                   allow_dropping="${allow_dropping}"
  10.                   prefix_id="${prefix_id}"
  11.                   show_favorites="${show_favorites}"
  12.                   tooltip="{tooltip}"
  13.                   enabled="{# !defined('userlockmode') or !userlockmode}" >
  14.  
  15.                 <!-- 50x50 -->
  16.                 <sprite depth="2" name="backgroundMain" sprite="menu_empty3px"
  17.                         pos="0,0" width="50" height="50"
  18.                         color="[black]" type="sliced" fillcenter="false" />
  19.  
  20.                 <sprite depth="3" name="background" sprite="menu_empty3px"
  21.                         pos="1,-1" width="48" height="48"
  22.                         color="{selectionbordercolor}" type="sliced" globalopacity="true" fillcenter="false"/>
  23.  
  24.                 <sprite depth="2" name="highlightOverlay"
  25.                         pos="2,-2" width="46" height="46"
  26.                         color="{backgroundcolor}" type="sliced" globalopacity="true"/>
  27.  
  28.                 <texture depth="3" name="backgroundTexture"
  29.                          material="Materials/Transparent Colored"
  30.                          globalopacity="true" size="48,48" />
  31.  
  32.                 <!-- Icons for 50x50 -->
  33.                 <sprite depth="8" name="favoriteIcon"
  34.                         width="16" height="16" sprite="server_favorite"
  35.                         pos="2,-2" foregroundlayer="true" visible="{isfavorite}"/>
  36.  
  37.                 <sprite depth="8" name="lockTypeIcon"
  38.                         width="16" height="16" sprite="{locktypeicon}"
  39.                         pos="2,-2" foregroundlayer="true"/>
  40.  
  41.                 <sprite depth="8" name="itemtypeicon"
  42.                         width="16" height="16" sprite="ui_game_symbol_{itemtypeicon}"
  43.                         pos="2,-2" foregroundlayer="true" visible="{hasitemtypeicon}" color="{itemtypeicontint}" />
  44.  
  45.                 <!-- Main icon, centered -->
  46.                 <sprite depth="6" name="itemIcon"
  47.                         width="42" height="42"
  48.                         atlas="ItemIconAtlas" sprite="{itemicon}"
  49.                         pivot="center" foregroundlayer="true" color="{iconcolor}"
  50.                         pos="25,-23" />
  51.  
  52.                 <!-- Durability 50x50 -->
  53.                 <sprite depth="3" name="durabilityBackground" sprite="menu_empty3px"
  54.                         color="[darkGrey]" type="sliced" foregroundlayer="true" visible="{hasdurability}"
  55.                         width="46" height="8" pos="2,-42" />
  56.                 <filledsprite depth="4" name="durability" sprite="menu_empty2px"
  57.                               color="{durabilitycolor}" fill="{durabilityfill}" type="filled"
  58.                               foregroundlayer="true" visible="{hasdurability}"
  59.                               width="46" height="8" pos="2,-42" />
  60.  
  61.                 <!-- Quantity -->
  62.                 <label depth="7" name="stackValue"
  63.                        height="20" width="46"
  64.                        text="{itemcount}" font_size="18" effect="outline"
  65.                        justify="{#hasdurability ? 'Center' : 'Right'}"
  66.                        pos="2,-32" />
  67.  
  68.                 <!-- Timer -->
  69.                 <label depth="7" name="timer"
  70.                        height="20" width="46"
  71.                        font_size="18" justify="center" pivot="center"
  72.                        color="[beige]" effect="outline"
  73.                        pos="25,-25" />
  74.  
  75.                 <!-- Assemble icon: 50x50 -->
  76.                 <sprite depth="13" name="assembleIcon"
  77.                         sprite="{stacklockicon}" color="{stacklockcolor}"
  78.                         visible="{isassemblelocked}"
  79.                         pos="10,-10" foregroundlayer="true" size="22,22" />
  80.  
  81.             </rect>
  82.         </pzg_backpack_item_stack_50>
  83.  
  84. So it will look like:
  85. <pzg_craft_queue_stack>
  86.     ...
  87. </pzg_craft_queue_stack>
  88. <pzg_backpack_item_stack>
  89.     ...
  90. </pzg_backpack_item_stack>
  91. <pzg_backpack_item_stack_50>
  92.     ...
  93. </pzg_backpack_item_stack_50>
  94.  
  95.  
  96. And change the code in windows.xml to use pzg_backpack_item_stack_50 instead of pzg_backpack_item_stack
  97. Was (wrong for me):
  98.     <!-- ============================================ -->
  99.     <!-- BACKPACK: 72 slots (8 rows) + move up 40px  -->
  100.     <!-- ============================================ -->
  101.     <set xpath="/windows/window[@name='windowBackpack']/@width">606</set>
  102.     <set xpath="/windows/window[@name='windowBackpack']/@height">352</set>
  103.     <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/@height">306</set>
  104.     <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/sprite[@name='backgroundMain']/@width">606</set>
  105.     <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/sprite[@name='backgroundMain']/@height">306</set>
  106.  
  107.     <!-- 72 slots: 12 columns by 6 rows -->
  108.     <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']/@rows">6</set>
  109.     <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']/@cols">12</set>
  110.     <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']/@cell_height">50</set>
  111.     <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']/@cell_width">50</set>
  112.    
  113.     <!-- Use the new stack control -->
  114.     <remove xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']/backpack_item_stack"/>
  115.     <append xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']">
  116.         <pzg_backpack_item_stack_50 name="0"/>
  117.     </append>
  118.  
  119. New, working:
  120.     <!-- ============================================ -->
  121.     <!-- BACKPACK: 72 slots (8 rows) + move up 40px  -->
  122.     <!-- ============================================ -->
  123.     <set xpath="/windows/window[@name='windowBackpack']/@width">606</set>
  124.     <set xpath="/windows/window[@name='windowBackpack']/@height">352</set>
  125.     <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/@height">306</set>
  126.     <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/sprite[@name='backgroundMain']/@width">606</set>
  127.     <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/sprite[@name='backgroundMain']/@height">306</set>
  128.  
  129.     <!-- 72 slots: 12 columns by 6 rows -->
  130.     <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']/@rows">6</set>
  131.     <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']/@cols">12</set>
  132.     <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']/@cell_width">50</set>
  133.     <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']/@cell_height">50</set>
  134.  
  135.     <!-- pos vanilla -->
  136.     <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']/@pos">3,-3</set>
  137.  
  138.     <remove xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']/backpack_item_stack"/>
  139.     <append xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']">
  140.       <pzg_backpack_item_stack_50 name="0"/>
  141.     </append>
Add Comment
Please, Sign In to add comment