Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In controls.xml (.\TheEqualizer\Config\XUi) add the code below in append section
- <pzg_backpack_item_stack_50 controller="ItemStack" on_scroll="false" allow_dropping="true" prefix_id="false" show_favorites="false">
- <rect controller="${controller}"
- width="50" height="50"
- style="itemStack, hover"
- collider_scale="1.0"
- on_scroll="${on_scroll}"
- allow_dropping="${allow_dropping}"
- prefix_id="${prefix_id}"
- show_favorites="${show_favorites}"
- tooltip="{tooltip}"
- enabled="{# !defined('userlockmode') or !userlockmode}" >
- <!-- 50x50 -->
- <sprite depth="2" name="backgroundMain" sprite="menu_empty3px"
- pos="0,0" width="50" height="50"
- color="[black]" type="sliced" fillcenter="false" />
- <sprite depth="3" name="background" sprite="menu_empty3px"
- pos="1,-1" width="48" height="48"
- color="{selectionbordercolor}" type="sliced" globalopacity="true" fillcenter="false"/>
- <sprite depth="2" name="highlightOverlay"
- pos="2,-2" width="46" height="46"
- color="{backgroundcolor}" type="sliced" globalopacity="true"/>
- <texture depth="3" name="backgroundTexture"
- material="Materials/Transparent Colored"
- globalopacity="true" size="48,48" />
- <!-- Icons for 50x50 -->
- <sprite depth="8" name="favoriteIcon"
- width="16" height="16" sprite="server_favorite"
- pos="2,-2" foregroundlayer="true" visible="{isfavorite}"/>
- <sprite depth="8" name="lockTypeIcon"
- width="16" height="16" sprite="{locktypeicon}"
- pos="2,-2" foregroundlayer="true"/>
- <sprite depth="8" name="itemtypeicon"
- width="16" height="16" sprite="ui_game_symbol_{itemtypeicon}"
- pos="2,-2" foregroundlayer="true" visible="{hasitemtypeicon}" color="{itemtypeicontint}" />
- <!-- Main icon, centered -->
- <sprite depth="6" name="itemIcon"
- width="42" height="42"
- atlas="ItemIconAtlas" sprite="{itemicon}"
- pivot="center" foregroundlayer="true" color="{iconcolor}"
- pos="25,-23" />
- <!-- Durability 50x50 -->
- <sprite depth="3" name="durabilityBackground" sprite="menu_empty3px"
- color="[darkGrey]" type="sliced" foregroundlayer="true" visible="{hasdurability}"
- width="46" height="8" pos="2,-42" />
- <filledsprite depth="4" name="durability" sprite="menu_empty2px"
- color="{durabilitycolor}" fill="{durabilityfill}" type="filled"
- foregroundlayer="true" visible="{hasdurability}"
- width="46" height="8" pos="2,-42" />
- <!-- Quantity -->
- <label depth="7" name="stackValue"
- height="20" width="46"
- text="{itemcount}" font_size="18" effect="outline"
- justify="{#hasdurability ? 'Center' : 'Right'}"
- pos="2,-32" />
- <!-- Timer -->
- <label depth="7" name="timer"
- height="20" width="46"
- font_size="18" justify="center" pivot="center"
- color="[beige]" effect="outline"
- pos="25,-25" />
- <!-- Assemble icon: 50x50 -->
- <sprite depth="13" name="assembleIcon"
- sprite="{stacklockicon}" color="{stacklockcolor}"
- visible="{isassemblelocked}"
- pos="10,-10" foregroundlayer="true" size="22,22" />
- </rect>
- </pzg_backpack_item_stack_50>
- So it will look like:
- <pzg_craft_queue_stack>
- ...
- </pzg_craft_queue_stack>
- <pzg_backpack_item_stack>
- ...
- </pzg_backpack_item_stack>
- <pzg_backpack_item_stack_50>
- ...
- </pzg_backpack_item_stack_50>
- And change the code in windows.xml to use pzg_backpack_item_stack_50 instead of pzg_backpack_item_stack
- Was (wrong for me):
- <!-- ============================================ -->
- <!-- BACKPACK: 72 slots (8 rows) + move up 40px -->
- <!-- ============================================ -->
- <set xpath="/windows/window[@name='windowBackpack']/@width">606</set>
- <set xpath="/windows/window[@name='windowBackpack']/@height">352</set>
- <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/@height">306</set>
- <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/sprite[@name='backgroundMain']/@width">606</set>
- <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/sprite[@name='backgroundMain']/@height">306</set>
- <!-- 72 slots: 12 columns by 6 rows -->
- <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']/@rows">6</set>
- <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']/@cols">12</set>
- <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']/@cell_height">50</set>
- <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']/@cell_width">50</set>
- <!-- Use the new stack control -->
- <remove xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']/backpack_item_stack"/>
- <append xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']">
- <pzg_backpack_item_stack_50 name="0"/>
- </append>
- New, working:
- <!-- ============================================ -->
- <!-- BACKPACK: 72 slots (8 rows) + move up 40px -->
- <!-- ============================================ -->
- <set xpath="/windows/window[@name='windowBackpack']/@width">606</set>
- <set xpath="/windows/window[@name='windowBackpack']/@height">352</set>
- <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/@height">306</set>
- <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/sprite[@name='backgroundMain']/@width">606</set>
- <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/sprite[@name='backgroundMain']/@height">306</set>
- <!-- 72 slots: 12 columns by 6 rows -->
- <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']/@rows">6</set>
- <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']/@cols">12</set>
- <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']/@cell_width">50</set>
- <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']/@cell_height">50</set>
- <!-- pos vanilla -->
- <set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']/@pos">3,-3</set>
- <remove xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']/backpack_item_stack"/>
- <append xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']">
- <pzg_backpack_item_stack_50 name="0"/>
- </append>
Add Comment
Please, Sign In to add comment