高级玩家

- 贡献度
- 0
- 金元
- 5974
- 积分
- 597
- 精华
- 0
- 注册时间
- 2013-11-10
|
本帖最后由 GamerBlank 于 2018-9-3 16:47 编辑
《七日杀》A16.4_b8-30乘10等于300格背包外加状态常显
使用的游戏版本:
http://dl.3dmgame.com/201710/117186.html
汉化用的是:
《七日杀》A16.4_b8汉化补丁【游乐园汉化出品】
背包:
10行30列共计300
常显示状态:
食物
水
等级(经验)
温度
风速
高度
链接:https://pan.baidu.com/s/1NmSQOGYLEoPdtH162fq8VQ 密码:1cwj
使用本修改文件后UI界面(影响字体、图标等)大概会变成原来的70%,请注意食用!!!
添加\Data\config\ui\windows.xml
<window name="HUDLeftStatBars">
<!-- ··· -->
<!-- // 食物、水、等级 // -->
<rect width="168" height="43" controller="HUDStatBar" stat_type="Food" visible="{statvisible}">
<sprite depth="1" name="border" color="0,0,0,100" height="43" type="sliced" />
<sprite depth="2" pos="3,-3" name="background" height="37" width="162" color="64,64,64,100" type="sliced" />
<sprite depth="3" pos="3,-3" name="BarContent" type="filled" height="37" width="162" color="52,174,86" fill="0" />
<sprite depth="4" name="Icon" atlas="{staticonatlas|once}" sprite="ui_game_symbol_fork" size="32,32" pos="8,-6" foregroundlayer="true"/>
<label depth="6" name="lblFood" pos="10,-8" font_size="28" color="[white]" justify="center" pivot="topleft" text="{playerfood}%[-]" height="30" controller="PlayerStatsWindow"/>
</rect>
<rect width="168" height="43" controller="HUDStatBar" stat_type="Water" visible="{statvisible}">
<sprite depth="1" name="border" color="0,0,0,100" height="43" type="sliced" />
<sprite depth="2" pos="3,-3" name="background" height="37" width="162" color="64,64,64,100" type="sliced" />
<sprite depth="3" pos="3,-3" name="BarContent" type="filled" height="37" width="162" color="52,137,167" fill="0" />
<sprite depth="4" name="Icon" atlas="{staticonatlas|once}" sprite="ui_game_symbol_water" size="32,32" pos="8,-6" foregroundlayer="true"/>
<label depth="6" name="lblWater" pos="10,-8" font_size="28" color="[white]" justify="center" pivot="topleft" text="{playerwater}%[-]" height="30" controller="PlayerStatsWindow"/>
</rect>
<rect width="168" height="43" controller="PlayerStatsWindow">
<sprite depth="1" name="border" color="0,0,0,100" height="43" type="sliced"/>
<sprite depth="2" pos="3,-3" name="background" height="37" width="162" color="64,64,64,100" type="sliced" />
<sprite depth="2" width="162" pos="3, -3" height="37" type="filled" color="240,200,80" fill="{playerlevelfill}" />
<sprite depth="4" name="tempIcon" atlas="{staticonatlas|once}" sprite="ui_game_symbol_trophy" size="32,32" pos="8,-6" foregroundlayer="true"/>
<label depth="6" name="levelNumber" pos="10,-8" font_size="28" color="[white]" justify="center" pivot="topleft" text="{playerlevel}[-]" height="30" controller="PlayerStatsWindow"/>
</rect>
<!-- // 温度、风速、海拔栏 // -->
<rect width="168" height="43" controller="HUDStatBar">
<sprite depth="1" name="border" color="0,0,0,100" height="43" type="sliced"/>
<sprite depth="2" pos="3,-3" name="background" height="37" width="162" color="64,64,64,100" type="sliced" />
<sprite depth="4" name="tempIcon" atlas="{staticonatlas|once}" sprite="ui_game_symbol_temperature" size="32,32" pos="8,-6" foregroundlayer="true"/>
<label depth="6" name="tempLabel" pos="10,-8" font_size="28" color="[white]" justify="center" pivot="topleft" text="{playercoretemp}[-]" height="30" controller="MapStats"/>
</rect>
<rect width="168" height="43" controller="HUDStatBar">
<sprite depth="1" name="border" color="0,0,0,100" height="43" type="sliced"/>
<sprite depth="2" pos="3,-3" name="background" height="37" width="162" color="64,64,64,100" type="sliced" />
<sprite depth="4" name="windIcon" atlas="{staticonatlas|once}" sprite="ui_game_symbol_wind" size="32,32" pos="8,-6" foregroundlayer="true"/>
<label depth="6" name="windLabel" pos="50,-8" font_size="28" color="[white]" pivot="topleft" text="{mapwind} MPH[-]" height="30" controller="MapStats"/>
</rect>
<rect width="168" height="43" controller="HUDStatBar">
<sprite depth="1" name="border" color="0,0,0,100" height="43" type="sliced"/>
<sprite depth="2" pos="3,-3" name="background" height="37" width="162" color="64,64,64,100" type="sliced" />
<sprite depth="4" name="elevIcon" atlas="{staticonatlas|once}" sprite="ui_game_symbol_climb" size="32,32" pos="8,-6" foregroundlayer="true"/>
<label depth="6" name="elevLabel" pos="50,-8" font_size="28" color="[white]" pivot="topleft" text="{mapelevation} M[-]" height="30" controller="MapStats"/>
</rect>
</grid>
<!-- ··· -->
</window>
修改文件
\Data\Config\xui.xml
<ruleset name="default" scale="0.7" stackpanel_scale="1.05">
\Data\config\ui\windows.xml
<!-- 修改<window name="windowBackpack" width="2254" height="646" panel="Center" controller="BackpackWindow" cursor_area="true" > 中width
修改rows="10" cols="30"
-->
<window name="windowBackpack" width="2254" height="646" panel="Center" controller="BackpackWindow" cursor_area="true" >
<!--#$-IGS END.-$#-->
<panel name="header" height="43" depth="1" backgroundspritename="ui_game_panel_header">
<button depth="3" name="btnSort" style="icon32px, press, hover" pivot="center" pos="21,-21" sprite="ui_game_symbol_backpack" tooltip_key="lblSortInventory" sound="[paging_click]" />
<label depth="3" name="windowName" pos="42,-6" width="250" height="32" text="INVENTORY" text_key="xuiInventory" font_size="32" />
<label depth="2" pos="472,-8" width="100" height="28" text="{currencyamount}" color="[mediumGrey]" justify="right" />
<sprite depth="4" name="costIcon" sprite="ui_game_symbol_coin" size="24,24" pos="577,-10" color="[white]" foregroundlayer="true" />
</panel>
<panel name="content" width="100%" height="603" depth="0" pos="0,-46" disableautobackground="true">
<!-- <sprite name="background" color="[black]" type="sliced" globalopacity="true"/> -->
<sprite depth="8" name="backgroundMain" sprite="menu_empty3px" pos="0,0" width="603" height="303" color="[black]" type="sliced" fillcenter="false" on_press="true" />
<grid depth="1" name="inventory" rows="10" cols="30" pos="3,-3" cell_width="75" cell_height="75" controller="Backpack" repeat_content="true" >
<item_stack name="0"/>
</grid>
</panel>
</window>
<!-- 修改rows="11" cols="31" -->
<window name="windowLooting" width="2296" height="753" controller="LootWindow" panel="Left" anchor_side="bottomright" visible="false" cursor_area="true" >
<!--#$-IGS END.-$#-->
<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" >
<grid depth="12" name="queue" rows="11" cols="31" cell_width="75" cell_height="75" repeat_content="true" controller="LootContainer">
<item_stack name="0"/>
</grid>
</rect>
</window>
\Data\Config\loot.xml
<!-- 修改size"31,11" -->
<!-- player dropped backpacks, they only destroy on close when they are empty -->
<lootcontainer id="41" count="0" size="31,11" destroy_on_close="true" sound_open="UseActions/open_backpack" sound_close="UseActions/close_backpack" open_time="1" loot_quality_template="baseTemplate">
<item name="cobweb" count="1,2" prob="0.01"/>
</lootcontainer>
\7DaysToDie_Data\Managed\Assembly-CSharp.dll
Bag类中
GetSlots()
SetSlots()
AddItem()
各个中的一个32为300
PlayerDataFile类中:
Read()的前3个32为300
|
|