高级玩家

- 贡献度
- 0
- 金元
- 5974
- 积分
- 597
- 精华
- 0
- 注册时间
- 2013-11-10
|
本帖最后由 GamerBlank 于 2018-12-15 15:55 编辑
本大背包使用Xpath,来制作。
UI为原来的85%
链接:https://pan.baidu.com/s/1yhzZwd27lfFpcT1wjfdakQ
提取码:5cpb
使用方法为
将文件解压到七日杀目录下的Mods文件夹中。
本mod文件结构
7 Days To Die\Mods\S200_BiggerBackpack
ModInfo.xml
<?xml version="1.0" encoding="UTF-8" ?>
<xml>
<ModInfo>
<Name value="S200_BiggerBackpack" />
<Description value="" />
<Author value="ANYAN" />
<Version value="1.0" />
<Website value="" />
</ModInfo>
</xml>
7 Days To Die\Mods\S200_BiggerBackpack\Config
entityclasses.xml
<configs>
<!-- 玩家(库存)背包大小,公200,可用173,技能解锁27 -->
<set xpath="/entity_classes/entity_class[@name='playerMale']/effect_group/passive_effect[@name='CarryCapacity'][@value='18']/@value">173</set>
<set xpath="/entity_classes/entity_class[@name='playerMale']/effect_group/passive_effect[@name='BagSize'][@value='45']/@value">200</set>
</configs>
loot.xml
<configs>
<!-- 玩家掉落背包15*15-->
<set xpath="/lootcontainers/lootcontainer[@id='2']/@size">15,15</set>
</configs>
7 Days To Die\Mods\S200_BiggerBackpack\Config\XUi
windows.xml
<configs>
<!-- 搜刮窗口 -->
<append xpath="/windows">
<window name="S200windowLooting" width="378" height="378" controller="LootWindow" panel="Left" anchor_side="bottomright" visible="false" cursor_area="true" >
<panel name="header" height="43" depth="0" disableautobackground="true">
<sprite depth="1" name="headerbackground" sprite="ui_game_panel_header"/>
<button depth="3" name="btnSort" style="icon32px, press, hover" pivot="center" pos="21,-21" sprite="ui_game_symbol_loot_sack" tooltip_key="lblSortContainer" sound="[paging_click]" />
<label depth="2" name="lootName" pos="39,-6" width="172" height="32" text="LOOT" text_key="xuiLoot" font_size="32" />
<label depth="2" name="takeAllLabel" width="32" height="30" font_size="30" color="[mediumGrey]" justify="left" pos="260,-8"/>
<sprite depth="2" name="takeAllIcon" style="icon32px" sprite="ui_game_symbol_hand" color="[mediumGrey]" pos="220, -4"/>
</panel>
<sprite depth="0" name="gridBackground" color="255,255,255,1" type="sliced" pos="0, 0" globalopacity="true" on_press="true" />
<rect name="content" pos="3,-49" >
<!-- 玩家死亡掉落背包rows(行)15、cols(列)15 -->
<grid depth="12" name="queue" rows="15" cols="15" cell_width="75" cell_height="75" repeat_content="true" controller="LootContainer">
<item_stack name="0"/>
</grid>
</rect>
</window>
</append>
<!-- 玩家背包窗口-->
<!--宽=每列格子列宽(67)乘以 列数,(67*20)+3-->
<set xpath="/windows/window[@name='windowBackpack']/@width">1343</set>
<!--高=每行格子列宽(67)乘以 行数,(67*10)+14-->
<set xpath="/windows/window[@name='windowBackpack']/@height">684</set>
<!--高=每行格子列宽(67)乘以 行数,(67*10)-32-->
<set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/@height">638</set>
<!--宽=每列格子列宽(67)乘以 列数,(67*20)+3-->
<set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/sprite[@name='backgroundMain']/@width">1343</set>
<!--高=每行格子列宽(67)乘以 行数,(67*10)+1-->
<set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/sprite[@name='backgroundMain']/@height">671</set>
<!--行数-->
<set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']/@rows">10</set>
<!--列数-->
<set xpath="/windows/window[@name='windowBackpack']/panel[@name='content']/grid[@name='inventory']/@cols">20</set>
</configs>
xui.xml
<configs>
<!-- 用户主界面窗口UI -->
<set xpath="/xui/ruleset[@name='default']/@scale">1.05</set>
<set xpath="/xui/ruleset[@name='default']/@stackpanel_scale">0.85</set>
<!-- 搜刮窗口 -->
<set xpath="/xui/ruleset[@name='default']/window_group[@name='looting']/window[@name='windowLooting']/@name">S200windowLooting</set>
</configs>
|
评分
-
1
查看全部评分
-
|