Skip to content

Commit

Permalink
Add BBM.
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Oct 31, 2018
1 parent 1a90df2 commit 0fd2d6e
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 7 deletions.
Binary file added 7DaysToDie_Data/Managed/Assembly-CSharp.dll
Binary file not shown.
28 changes: 27 additions & 1 deletion Data/Config/XUi/controls.xml
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,35 @@
</item_stack>
<!--*#$-IGS END.-$#-->

<backpack_item>
<rect controller="ItemStack" style="backpack_itemStack, hover" collider_scale="1.1">
<sprite depth="2" name="backgroundMain" sprite="menu_empty3px" pos="-3,3" width="53" height="53" color="[black]" type="sliced" fillcenter="false" />
<sprite depth="3" name="background" sprite="menu_empty3px" width="48" height="48" color="[darkGrey]" type="sliced" globalopacity="true" fillcenter="false"/>
<sprite depth="2" name="highlightOverlay" width="47" height="47" color="[darkGrey]" pos="0,0" type="sliced" globalopacity="true"/>

<texture depth="3" name="backgroundTexture" material="Materials/Transparent Colored" size="48,48" globalopacity="true"/>

<sprite depth="4" name="itemIcon" width="45" height="35" atlas="ItemIconAtlas" sprite="{itemicon}" pos="23,-18" pivot="center" foregroundlayer="true" color="{iconcolor}" />
<sprite depth="8" name="lockTypeIcon" width="14" height="14" sprite="" pos="2,-2" foregroundlayer="true"/>

<sprite depth="3" name="durabilityBackground" width="46" height="7" sprite="menu_empty3px" color="[darkGrey]" type="sliced" pos="1, -42" foregroundlayer="true"/>
<sprite depth="4" name="durability" width="46" height="7" sprite="menu_empty2px" color="[transparent]" type="filled" pos="1, -42" foregroundlayer="true"/>

<sprite depth="5" name="disabledOverlay" width="47" height="47" color="[darkGrey_half_alpha]" pos="1,-1" type="sliced" visible="false"/>

<label depth="7" name="stackValue" pos="-1,-32" width="48" height="28" text="{itemcount}" font_size="14" effect="outline" justify="center" />
<label depth="7" name="timer" pos="35,-38" width="45" height="24" font_size="24" justify="center" pivot="center" effect="outline" color="[beige]"/>
<sprite depth="9" name="cancel" sprite="ui_game_symbol_x" width="45" height="45" color="255,0,0,255" type="sliced" visible="false" foregroundlayer="true"/>
<!--#$-IGS BEGIN: Setting itemName above the soft cursor. -$#-->
<label depth="12" name="itemName" pos="23,-22" width="0" height="0" text="" font_size="26" justify="center" overflow="resizefreely" effect="outline" pivot="center" above_soft_cursor="true"/>
<!--*#$-IGS END.-$#-->
<sprite depth="13" name="assembleIcon" size="18,18" sprite="ui_game_symbol_lock" visible="{isassemblelocked}" pos="14,-14" foregroundlayer="true" />
</rect>
</backpack_item>

<required_item_stack>
<rect controller="RequiredItemStack" style="itemStack, hover">
<sprite depth="2" name="backgroundMain" sprite="menu_empty3px" pos="-3,3" width="78" height="78" color="[black]" type="sliced" fillcenter="false" />
<sprite depth="2" name="backgroundMain" sprite="menu_empty3px" pos="-3,3" width="78" height="78" color="[black]" type="sliced" fillcenter="false" />
<sprite depth="3" name="background" sprite="menu_empty3px" width="73" height="73" color="[darkGrey]" type="sliced" globalopacity="true" fillcenter="false"/>
<sprite depth="2" name="highlightOverlay" width="72" height="72" color="[darkGrey]" pos="0,0" type="sliced" globalopacity="true"/>

Expand Down
16 changes: 16 additions & 0 deletions Data/Config/XUi/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,22 @@
<style_entry name="place_sound" value="[place_click]"/>
</style>

<style name="backpack_itemStack">
<style_entry name="select_color" value="[beige]"/>
<style_entry name="press_color" value="[limeGreen]"/>
<style_entry name="final_pressed_color" value="[lightGrey]"/>
<style_entry name="background_color" value="[mediumGrey]"/>
<style_entry name="highlight_color" value="[hoverColor]"/>
<style_entry name="holding_color" value="[white]"/>
<style_entry name="width" value="49"/>
<style_entry name="height" value="49"/>
<style_entry name="hover_icon_grow" value="1.5"/>
<style_entry name="on_press" value="true"/>
<style_entry name="sound_volume" value="0.75"/>
<style_entry name="pickup_sound" value="[pickup_click]"/>
<style_entry name="place_sound" value="[place_click]"/>
</style>

<style name="vehicleStack">
<style_entry name="background_color" value="[darkGrey]"/>
<style_entry name="highlight_color" value="[lightGrey]"/>
Expand Down
7 changes: 2 additions & 5 deletions Data/Config/XUi/windows.xml
Original file line number Diff line number Diff line change
Expand Up @@ -437,16 +437,13 @@
<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="303" 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="4" cols="8" pos="3,-3" cell_width="75" cell_height="75" controller="Backpack" repeat_content="true" >
<item_stack name="0"/>
<grid depth="1" name="inventory" rows="6" cols="12" pos="3,-3" cell_width="50" cell_height="50" controller="Backpack" repeat_content="true" >
<backpack_item name="0"/>
</grid>
</panel>
</window>
Expand Down
2 changes: 1 addition & 1 deletion Data/Config/loot.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2288,7 +2288,7 @@
</lootcontainer>

<!-- player dropped backpacks, they only destroy on close when they are empty -->
<lootcontainer id="41" count="0" size="5,10" destroy_on_close="true" sound_open="UseActions/open_backpack" sound_close="UseActions/close_backpack" open_time="1" loot_quality_template="baseTemplate">
<lootcontainer id="41" count="0" size="9,10" 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>

Expand Down

0 comments on commit 0fd2d6e

Please sign in to comment.